Go to Terminal Window and run sudo apt-get install php5 libapache2-mod-php5
Now restart the Apache Server ( sudo /etc/init.d/apache2 restart )
To test if installation was successful or not, lets create one test file, run the following command. sudo gedit /var/www/test_file.php . This will open up gedit editor. Type . Save the file and close gedit.
Now open your favorite Web Browser and go to the URL http://localhost/test_file.php
You should see something like this.
Source: http://ubuntuexperiment.wordpress.com/2008/11/10/installing-apache-php-mysql/
Sunday, March 1, 2009
Installing PHP5 on Ubuntu
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment