Any chance you are changing the content type header? Also note that if you have a. For example, if you got a copy of the site files from another server, your htaccess file could have a line like:. But in your actual server you may be running another version of PHP. So it would not excecute right. Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams?
Learn more. Asked 12 years, 5 months ago. Active 8 years, 8 months ago. Viewed 18k times. Improve this question. Add a comment. Active Oldest Votes. Improve this answer. Avery Payne Avery Payne Where to find the apache2 config? Thank you for clearing I faced the same problem today and what I did is change. If it worked for me then it is definitely a solution. Which is fine for your specific issue, but the. Here we just provide each and every possible solution because we are not completely sure which user is coming to this this thread with exactly what scenario.
I share my solution only after its worked for me. Hence it is possible it can help other users too. If it is fine for "specific" issue then it is fine to be here : — Muhammad Saqib. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown.
The Overflow Blog. Podcast Who is building clouds for the independent developer? Exploding turkeys and how not to thaw your frozen bird: Top turkey questions Featured on Meta. Now live: A fully responsive profile. Everything seems to be working fine except when I navigate to SOME not most pages Apache downloads php files instead of executing them. I wish I could give more details but the error logs don't output anything so I really have no idea why this is happening.
One thing that might be of significance is that only pages that don't query the database seem to work every time. Just discovered something strange that might give more insite into the problem. If I type the following URLs:.
I know that this was asked a long time ago, but I just encountered this problem so I thought I'd post what the cause was for me. Check your.
That is most likely your problem since Apache renders php for some sites but not others. It has to be at the directory level, which would point to a. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Apache downloads php files instead of executing script Ask Question.
Asked 10 years ago. Active 7 years, 3 months ago. Viewed 27k times.
0コメント