1

So I am installed php but now whenever I go to the url in the browser, e.g. test.php, it is not an executable file and it prompts me to download it. I have this in my httpd.conf file:

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

And this is what I have had on my servers in the past that has allowed me to have my php execute. Any idea what I could be doing wrong? Here is a link to the url:

http://108.166.126.202/test.php

Thanks!

Update: The issue was in my browser, not on the server. I opened the url in Firefox (instead of chrome) and it gave me no issues.

3
  • HERE I IS -- has it been repaired since posting? Commented Jan 22, 2012 at 23:50
  • @sarnold, it was an issue with my browser. Not a server issue. Commented Jan 23, 2012 at 0:45
  • wow, crazy, I've never seen that be anything other than a server misconfiguration. Good thing Rick aimed you at the right path. Commented Jan 23, 2012 at 0:48

1 Answer 1

1

It works fine for me, perhaps you should try it with a different browser? Sounds like a faulty setting on your side and not the server's.

Sign up to request clarification or add additional context in comments.

5 Comments

wow, thanks a lot! I tried it in firefox and it worked fine. You saved me hours of torment! Guess now I just have to find out what's wrong with chrome...many thanks!
@srchulo - were you originally using a local file url? did you restart apache? what did you do different that made it work? other people could learn from your mistake/experience
@HorusKol, I did not change anything. I loaded the url in Firefox and it worked for me. It was not a server issue, but a local browser issue. It will not load correctly in my chrome browser, but it will load fine in others.
@srchulo - hmm... technically, changing the browser is changing something ;) it sounds like there could be mime-type issue - Chrome is not reading your output as text/html (or whatever) for some reason, and prompting the download
@HorusKol, I guess it is an issue, but it is not one I have fixed, so as of now I have nothing to report :p

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.