Thursday, 8 March 2012

Install php 5 in ubuntu

Install apache2
# sudo apt-get install apache2

Install php5
# sudo apt-get install php5 php5-cli php5-common php5-cgi php5-mysql

# sudo apt-get install libapache2-mod-php5
this package provide php5 module for the apache2 webserver.

Restart apache
# sudo /etc/init.d/apache2 restart

# php -v
display the php version

No comments:

Post a Comment