I'm following these instructions exactly: http://wiki.debian.org/LaMp
But my test PHP file, created at:
# nano /var/www/apache2-default/test.php
wants to download in the browser, not display as a PHP file.
|
I'm following these instructions exactly: http://wiki.debian.org/LaMp But my test PHP file, created at:
wants to download in the browser, not display as a PHP file.
| ||||
|
feedback
|
|
You can also use the AddHandler and AddType directives in your conf files. There's no need to make files executable when they really don't need to be.
| |||
|
feedback
|
|
You must tell apache that the file is a cgi script (don't forget to chmod +x it). Usually, apache is set up the think of everything in [wwwdir]/cgi-bin as a script, so just try putting it in there. Otherwise, you'll need something like this in your apache configuration (inside the VirtiualHost section):
| |||||||||
feedback
|