Apache serves PHP files without parsing them
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php5 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: libapache2-mod-php5
Installed Apache and PHP by just installing the "php5" package in Synaptic Package Manager. Apache, PHP, and the Apache PHP module were all installed, and are enabled, yet any request for a PHP file just returns the source code of the PHP file. There are no error messages in the Apache logs.
Process:
1. sudo apt-get install php5
2. Place any *.php file in /var/www
3. Browse to http://
What is expected: The PHP file gets parsed by the PHP interpreter and result is returned to Apache and then served to the requesting web browser.
What happens: The PHP file doesn't get parsed, and is just read by Apache directly and sent to the requesting browser.
ProblemType: Bug
Architecture: amd64
CheckboxSubmission: ef4cb2e02f8820e
CheckboxSystem: edda5d4f616ca79
Date: Sat Feb 20 14:27:18 2010
DistroRelease: Ubuntu 10.04
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Alpha amd64 (20100203.1)
NonfreeKernelMo
Package: libapache2-mod-php5 5.2.12.
ProcEnviron:
LANG=en_CA.utf8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: php5
Uname: Linux 2.6.32-14-generic x86_64
Does it help if you restart apache2?
$ sudo /etc/init.d/apache2 restart
When I try your recipe I do receive unparsed php code until I restart apach
Wondering if bug #403599 is still haunting us, or if this is a new issue.