Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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):

    echo "test";

opens in browser, but shows a blank white page.

share|improve this question
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. – Darth Android Aug 10 '12 at 16:50
up vote 3 down vote accepted

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

sudo a2enmod php5
sudo service apache2 restart
share|improve this answer
Worked perfectly, thanks! – Kazzy Aug 10 '12 at 17:06
@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! – Darth Android Aug 10 '12 at 17:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.