Jump to content

Recommended Posts

Hello,

I am just learning all about building a PHP/MySQL site with Apache and I am using a book to learn from, the book uses a slightly older version I know but basicaly in my book it says I need to add the following line (AddType application/x-httpd-php .php) after (AddType application/x-gzip .gz .tgz) but I cannot find any part that has that it in, I have used the (ctrl+f) command to search for the line but I cannot find a thing.

Any help is much appreciated.
Link to comment
https://forums.phpfreaks.com/topic/32727-solved-apache-2-problem/
Share on other sites

You are editing the httpd.conf file from Apache aren't you? What version of Apache are you using? You can add [tt]AddType application/x-httpd-php .php[/tt] anywhere in the httpd.conf. However it is best to keep it in order. Just search for AddType and add [tt]AddType application/x-httpd-php .php[/tt] after it.
This is the file I am editing

"Program Files\Apache Software Foundation\Apache2.2\conf\httpd.txt"


However I have just found a folder in there called default and it also has a httpd.txt there and that one has the lines that I am looking for, should I cancel the one I have been editing and use the one I just found?
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.