Installing PHP5 - Scripting Language, PHP Website = http://www.php.net/, Additional information about installing PHP5 in Ubuntu 9.04 = https://help.ubuntu.com/9.04/serverguide/C/php5.html
1. Open Terminal, then type the following command:
sudo apt-get install php5 libapache2-mod-php5
--> This command installs PHP5 and the Apache2 PHP5 module.
2. Next, restart Apache2 web server with the following command:
sudo /etc/init.d/apache2 restart
**Make a test PHP file to make sure PHP5 is working properly**
1. At the terminal, open Gedit to create the test file firstphp.php with the following command:
sudo gedit /var/www/firstphp.php
2. Type the following PHP code in the document and save:
<? phpInfo(); ?>
3. Next, direct your browser to the following address:
http://localhost/firstphp.php
**If you see information about the PHP installation, it has been installed successfully**
0 comments:
Post a Comment