Jump to content

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/38502-wamp-not-processing-php-file/
Share on other sites

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.