gobbly2100 Posted January 3, 2007 Share Posted January 3, 2007 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 Share on other sites More sharing options...
wildteen88 Posted January 3, 2007 Share Posted January 3, 2007 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. Link to comment Share on other sites More sharing options...
gobbly2100 Posted January 3, 2007 Author Share Posted January 3, 2007 That is my problem though, I have done a (ctrl+f) on "AddType" and there is really not a thing in there with it, I am using Apache 2.2 Link to comment Share on other sites More sharing options...
wildteen88 Posted January 3, 2007 Share Posted January 3, 2007 Where are you editing the httpd.conf from? You should be editing the httpd.conf located in the conf folder (C:/[path to apache2.2]/conf/httpd.conf). Link to comment Share on other sites More sharing options...
gobbly2100 Posted January 3, 2007 Author Share Posted January 3, 2007 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? Link to comment Share on other sites More sharing options...
wildteen88 Posted January 3, 2007 Share Posted January 3, 2007 Copy the one from default folder to the conf folder instead. Link to comment Share on other sites More sharing options...
Recommended Posts