Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Apache problem - please help

Apache problem - please help
Thread Tools
kremmit
Junior Member
Join Date: Dec 2004
Status: Offline
Reply With Quote
Dec 30, 2004, 11:50 PM
 
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. )
     
Phil Sherry
Dedicated MacNNer
Join Date: Nov 2004
Location: Stockholm, Sweden
Status: Offline
Reply With Quote
Dec 31, 2004, 09:19 AM
 
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?
     
Millennium
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Dec 31, 2004, 09:54 AM
 
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!
     
Chris O'Brien
Grizzled Veteran
Join Date: Nov 2003
Location: Hebburn, UK
Status: Offline
Reply With Quote
Dec 31, 2004, 10:13 AM
 
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
     
timmerk
Mac Elite
Join Date: Jan 2001
Status: Offline
Reply With Quote
Dec 31, 2004, 04:02 PM
 
Localhost you say? Try going to your ip and then the folder
( Last edited by timmerk; Dec 31, 2004 at 04:15 PM. )
     
kremmit  (op)
Junior Member
Join Date: Dec 2004
Status: Offline
Reply With Quote
Dec 31, 2004, 04:19 PM
 
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 Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 03:48 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,