2011/05/26

How to install LAMP + Zend Ubuntu 11.04

It's super easy to install LAMP server in Ubuntu 11.04, just need to run the follow command,
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!

2 comments: