bromar Posted September 23, 2004 Report Share Posted September 23, 2004 What changes (if any) are needed to /etc/httpd/conf/httpd2.conf for PHP4? Is there any other files that need to be changed? The /etc/httpd/conf/httpd.conf file contains references to PHP but not the httpd2.conf file and when port 80 is hit by a web browser a message is displayed stating that it doesn't understand a application/x-httpd-php file. packages installed are: apache2-2.0.47-1.9.91mdk apache2-common-2.0.47-1.9.91mdk apache2-mod_php-2.0.44_4.3.1-2mdk apache2-modules-2.0.47-1.9.91mdk Thanks Mark Quote Link to comment Share on other sites More sharing options...
sir_max Posted September 23, 2004 Report Share Posted September 23, 2004 you have to modify the file: /etc/httpd/conf/httpd.conf (probably is somewhere else, but this address seems right to me ;) and remove tha # from this lines: #Addtype application/x-httpd-php .php #Addtype application/x-httpd-php-source .phps and it will look like this: Addtype application/x-httpd-php .php Addtype application/x-httpd-php-source .phps then save and exit after editing that file you have to restart yor apache daemon /etc/httpd/bin/apachectl stop /etc/httpd/bin/apachectl start apachectl may be at another location, be careful on that.. hope this helps you ;) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.