Search code examples
phpapache2lampubuntu-9.10

Apache doesn't execute my copied PHP files, but testing.php works


I've just installed LAMP on my Ubuntu 9.10 machine, and everything works fine except when I copy my PHP files from another computer.

The LAMP guides I've followed also made me create a phpinfo() test file, which works, but when I try to type in e.g. index.php absolutely nothing happens - just a blank page in FireFox. :( The files are in the exact same directory.

I'm thinking it's probably something with permissions and so on, but since I'm new to both PHP and Ubuntu, I'm kind of lost. It's like I can't create a PHP file with my file browser, but only by using the terminal - like when I created the testing.php from the LAMP guide.


Solution

  • Whaddayaknow... I made an error, tried to:

    echo "Hello" world

    which, even though I'm a PHP noob, I clearly know is wrong.

    I think I'll have to figure out how to enable some sort of error reporting, a blank page is clearly not good enough.