|
|
Apache problem - please help
|
|
|
|
Junior Member
Join Date: Dec 2004
Status:
Offline
|
|
Hi,
I just installed a ton of libraries, openssl, Apache 2, and PHP5.
Everything went fine and is running, but I have 2 folders on my site - both have index.php in them, one works fine, and loads the PHP and how the site when I go to sitefolder1/ but the other (sitefolder2/) downloads a file with the html of the site in it. I added the 2 lines to see php extensions, and added the thing to look for index.php when just going to a folder.
I don't understand why it works perfect, but not on the other. Any ideas?
Thanks!
UPDATE: even when i name the second site's index "index.html", it still downloads it.
I also renamed the folder to a different name, then it works normally. But when I make a new folder with the old name, it downloads it again. This is not a weird folder name. It also worked on the previous Apache2/PHP5 installation. I'm clueless!
New update: if I go to a file in the folder, it works, just not when I go to folder/
(
Last edited by kremmit; Dec 31, 2004 at 01:46 AM.
)
|
|
|
|
|
|
|
|
|
Dedicated MacNNer
Join Date: Nov 2004
Location: Stockholm, Sweden
Status:
Offline
|
|
do you actually need to run apache 2, or is it a case of "because i want to"? what's wrong with using the default installation, which you know works perfectly?
|
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Nov 1999
Status:
Offline
|
|
Do keep in mind that while Apache2 is multithreaded, PHP is not threadsafe (they say that this is because of some third-party libraries which PHP uses). That could cause problems.
|
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
|
|
|
|
|
|
|
|
Grizzled Veteran
Join Date: Nov 2003
Location: Hebburn, UK
Status:
Offline
|
|
There was an interesting story on slashdot about this a while back.
|
Just who are Britain? What do they? Who is them? And why?
Formerly Black Book
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Jan 2001
Status:
Offline
|
|
Localhost you say? Try going to your ip and then the folder
(
Last edited by timmerk; Dec 31, 2004 at 04:15 PM.
)
|
|
|
|
|
|
|
|
|
Junior Member
Join Date: Dec 2004
Status:
Offline
|
|
It works! Thanks timmerk!.
This must be a werid bug. Anyone else that has the latest Apache and PHP, make a folder named "okemos" in your root directory, put index.php (or html for that matter) in it, and go to localhost/okemos/ and see what happens.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|