Dear Wiki user, You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change notification.
The following page has been changed by noodl: http://wiki.apache.org/httpd/ScratchPad/PHPDownload The comment on the change is: Typoos & link to distros page ------------------------------------------------------------------------------ == Check if the proffered download contains untouched PHP code == Accept the download in your browser, open the saved file and see if it contains unparsed PHP code. If it does then your server isn't corrrectly configured for PHP. - To enable PHP, add the following to your apache config. + To enable PHP, add the following to your apache config. Distro package users may want to consult [:Info/DistrosDefaultLayout: the layouts page] to find the relevant config file paths. FIXME: Replace this with a dedicated page. @@ -28, +28 @@ == Check the Content-Type header == Using any of the methods documented in [:Recipes/WatchingHttpHeaders], check the value of the Content-Type: http header. - If it's application/x-httpd-php, you'll need to remove all erroneous references to that value as a mime type in your config. To do this, search your config file(s) for {{{AddType application/x-httpd-php}}} and also remove all references to this 'type' from the mime.types file. This is especially problematic for Debian/Ubuntu users who's configs contain multiple instances of this error. + If it's application/x-httpd-php, you'll need to remove all erroneous references to that value as a mime type in your config. To do this, search your config file(s) for {{{AddType application/x-httpd-php}}} and also remove all references to this 'type' from the mime.types file. This is especially problematic for Debian/Ubuntu users whose configs contain multiple instances of this error. If it's text/plain, go back to step one. If it's anything else, it could be that your script is setting its own type header, or else no type is being set and httpd's {{{DefaultType}}} value is being used.
