Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

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

1 Answer 1

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
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! –  Darth Android Aug 10 '12 at 17:09

Your Answer

 
discard

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.