installing php and apache in ubuntu

Written By smart| 6 July 2009| No Comment

If you want to configure web server then you need to install php and apache.

to install php and apache in ubuntu ,run this command in terminal

$sudo apt-get install apache2 php5 libapache2-mod-php5

now you need to create test.php by write small code in test.php

$sudo gedit /var/www/test.php

<?

phpinfo();

?>

after saving the above code in test.php saved in /var/www next in browser url type

http://localhost/test.php

below result appears in the browser

php

if you won’t get above message think installation got failed,try again

Related Posts with Thumbnails

Share With Others

Leave your response!




Comment moderation is enabled. Your comment may take some time to appear.