I have successfully installed php+apache by following steps..
Now I put a file known as script1.php in /var/www/ folder which containssudo apt-get install apache2
sudo apt-get install php5
sudo apt-get install libapache2-mod-php5
sudo /etc/init.d/apache2 restart
Code: Select all
<?php
print "hello World";
?>
it gave me following problem...
Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
Fatal error: Unknown: Failed opening required '/var/www/script1.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0