inVINCEable Posted February 14, 2007 Share Posted February 14, 2007 I just installed the newest version of wamp which includes PHP 5.2.0, and Apache. When I enter localhost in my browser it tried to download the file application/x-httpd-php instead of processing it. Now I looked up how to fix this problem, and everyone says add the lines in the Apache config file, which I have done, so I have no idea why my php file is not being processed. MySQL, Apache, and PHPMyAdmin all work fine. Any advice? AddType application/x-compress .Z AddType application/x-gzip .gz .tgz AddType application/x-httpd-php .php AddType application/x-httpd-php .php3 AddType application/x-httpd-php phtml pht php AddType application/x-httpd-php-source .phps Quote Link to comment https://forums.phpfreaks.com/topic/38502-wamp-not-processing-php-file/ Share on other sites More sharing options...
Balmung-San Posted February 14, 2007 Share Posted February 14, 2007 AddType? No, you want to use AddHandler. AddType will alter the mime value, which is just sent to the client. AddHandler will tell apache how to handle the file on the server side. Quote Link to comment https://forums.phpfreaks.com/topic/38502-wamp-not-processing-php-file/#findComment-184722 Share on other sites More sharing options...
inVINCEable Posted February 14, 2007 Author Share Posted February 14, 2007 Ok, I placed that in my Apache config file and it did not work... It still tries to download the stupid file... any suggestions? And it only does this when I type in Localhost.... When I type in 127.0.0.1 it says "It Works" in bold text. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/38502-wamp-not-processing-php-file/#findComment-184771 Share on other sites More sharing options...
suttercain Posted February 14, 2007 Share Posted February 14, 2007 I am having the same problem. I too just installed it, but I did not read anywhere that I had to change certain files in the config file. Can someone point me to the documentation? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/38502-wamp-not-processing-php-file/#findComment-184773 Share on other sites More sharing options...
suttercain Posted February 14, 2007 Share Posted February 14, 2007 I have been searching and no luck. I want to be able to switch from code view to design view, in DreamweaverMX, and view how php will look on the server. Anyone? Quote Link to comment https://forums.phpfreaks.com/topic/38502-wamp-not-processing-php-file/#findComment-184801 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.