Tuesday 24 March 2009

Installing LAMP Package Server on Ubuntu

There are 2 way if you want to install LAMP in your ubuntu, first you can install one by one, PHP5, MySQL, Apache2, the second is simple way, you can install the package of this all software.
First you go to Terminal (Alt +F2) than type this command :

sudo tasksel install lamp-server


than you can see this window terminal change same as below.



After that you must restart your php to see if its work. Type this command :

sudo /etc/init.d/apache2 restart


To ensure there are no issues with PHP let's give it a quick test run. In the terminal copy/paste the following line:

sudo gedit /var/www/index.php


write this code, dont forget to add < ? and ? > after and before coding :

php phpinfo();


Save and close the file. Now open you're web browser and type the following into the web address: http://localhost/index.php. This will open up a file called phptest.php, you can see it might like this image :



If this file appear, so you have great full install php5 on your apache.
This package is include those software :
# apache2
# php5
# mysql-server
# php5-mysql

0 comments:

Post a Comment