sudo apt-get install lamp-server^
You may be asked to set up root password for mysql during the installation, other than that, everything is automatically. To restart apache, run the following command,
sudo /etc/init.d/apache2 restart
OK, install Zend is also easy, sudo apt-get install zend-framework
After that you have to make sure zend library path is included. Go to php.ini (@/etc/php5/apache2/), edit the following line,
; UNIX: "/path1:/path2"
include_path = ".:/usr/share/php:/usr/share/php/libzend-framework-php"
I also found, after added include_path in the php.ini, the Zend library is still not found if I run the php script in the command line. Not sure why, but the solution I found is uncomment the line at /etc/php5/conf.d/zend-framework.ini, [Zend] include_path=${include_path} ":/usr/share/php/libzend-framework-php"
Happy ubuntu!
Should it be /etc/php5.. not /var/php5..
ReplyDeleteThanks rt! Fixed.
ReplyDelete