1

PHP doesn't render pages in Ubuntu 11.10

Installed apache/PHP using

sudo apt-get install php5 mysql-server apache2

my file (info.php):

<?php
    phpinfo();
    echo "test";
?>

opens in browser, but shows a blank white page.

1
  • Is there anything relevant in the logs? /var/log/apache2/ is where they're located. PHP should be printing any errors into the error log. Aug 10, 2012 at 16:50

2 Answers 2

3

You'll have to enable PHP5 module in Apache. Guide here

sudo a2enmod php5
sudo service apache2 restart
1
  • 1
    @Kazzy If this worked for you, you should indicate such by clicking the outlined checkmark on the left-hand side of the question. This allows others to quickly see that the question was answered. Welcome to Super User! Aug 10, 2012 at 17:09
-2

Confirm if your server is running.

You can do that by typing localhost or the loopback address in your safari (127.0.0.1).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .