Closed Bug 250339 Opened 21 years ago Closed 11 years ago

Need documentation on configuring for PHP + Apache

Categories

(Tech Evangelism Graveyard :: Other, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: danielwang, Unassigned)

Details

It appears that Apache has problem with PHPs (and I don't know if that's Apache's fault or PHP's). With default configuration, .php files are sent as "application/x-httpd-php". <http://tranchant.plus.com/notes/multiviews> suggests using MultiViews, but I don't think hacking file extensions is really a good solution. The .php script itself should be configured to send the proper type, but I don't know PHP programming and how to set Apache not to try to override the MIME type. This is what I got today in the mail: > Glad to hear you use mozilla also. As far as the problem with my page, > I am already aware of it. What do you mean by "send it as text/html"? > I have allready contacted my host about this problem and they dont know > how to fix it (they recently had to re-build the server because it got > hacked) and after that it didnt worked. They should move my page to a > different server soon. (the page was sent as "text/html", and today it's "application/x-httpd-php") I've also heard that some adminstrators remove the default "AddType text/html html" from Apache. We really need a doc telling ITs what they did wrong and how to fix it.
I'm not sure what the issue is here, going to close as INVALID. Please reopen with steps to reproduce and a URL where this bug is seen. Thanks!
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.