1 Install ZendCore
2 Configure the ZendCore's apache as init.d/httpd
add the following file to init.d
sudo gedit /etc/init.d/httpd
add the following content to this file
# httpd auto-start
#
# description: Auto-starts httpd
# processname: httpd
case $1 in
start)
/usr/local/Zend/apache2/bin/apachectl -k start
;;
stop)
/usr/local/Zend/apache2/bin/apachectl -k stop
;;
restart)
/usr/local/Zend/apache2/bin/apachectl -k restart
;;
esac
exit 0
You'll need to make the script executable by running the chmod command:
sudo chmod 755 /etc/init.d/httpd
3 install mysql by apt-get
sudo apt-get install mysql-server mysql-clinet mysql-admin
4 config mysql socket
sudo gedit /usr/local/Zend/Core/etc/php.ini
make sure mysql driver,then modify php.ini. i.e. Mysqli
; Default socket name for local MySQL connects. If empty, uses the built-in
; MySQL defaults.
mysqli.default_socket =/var/run/mysqld/mysqld.sock
No comments:
Post a Comment