PDA

View Full Version : help!!! i can't run php files on my computer...


jvaska
Jan 20, 2004, 05:42 AM
i setup apache/php/mysql on my computer awhile back and all was working beautifully...

i created a fast test page which was located in Library/Apache2/htdocs/ that was parsing the php and querying mysql to perfection...

but now...it doesn't work...i'm not sure where to start to get this functioning again...

do i need to have my personal web-sharing turned ON? it was my understanding that this was for sharing with people who aren't on my computer...i'm not looking to share across the internet...just my computer...

when i set up apache i didn't need to do much...no edits to files or anything...it worked immediately...

i'm using panther...

ok, i just tried to restart panther and i got an error message - which just said an error occured...i found this in the error logs...

[Tue Jan 20 12:41:15 2004] [warn] child process 328 still did not exit, sending a SIGTERM
[Tue Jan 20 12:41:15 2004] [warn] child process 329 still did not exit, sending a SIGTERM
[Tue Jan 20 12:41:15 2004] [warn] child process 330 still did not exit, sending a SIGTERM
[Tue Jan 20 12:41:15 2004] [warn] child process 331 still did not exit, sending a SIGTERM
[Tue Jan 20 12:41:15 2004] [warn] child process 332 still did not exit, sending a SIGTERM
[Tue Jan 20 12:41:15 2004] [warn] child process 3179 still did not exit, sending a SIGTERM
[Tue Jan 20 12:41:16 2004] [warn] child process 328 still did not exit, sending a SIGTERM
[Tue Jan 20 12:41:16 2004] [warn] child process 329 still did not exit, sending a SIGTERM
[Tue Jan 20 12:41:16 2004] [warn] child process 330 still did not exit, sending a SIGTERM
[Tue Jan 20 12:41:16 2004] [warn] child process 331 still did not exit, sending a SIGTERM
[Tue Jan 20 12:41:16 2004] [warn] child process 332 still did not exit, sending a SIGTERM
[Tue Jan 20 12:41:16 2004] [warn] child process 3179 still did not exit, sending a SIGTERM
[Tue Jan 20 12:41:17 2004] [notice] caught SIGTERM, shutting down

thanks...v

jvaska
Jan 20, 2004, 05:56 AM
i'm going to drag this thread along...i'm reading about others with similar problems...

i managed to restart Apache by turning off my firewall and also turning off FTP Acess in the Sharing > Services preference...

however...it still won't parse the php...

a note i read is that routers have something to do with this...and sure enough, i set this up before i had my new router...

argh...v

jvaska
Jan 20, 2004, 06:33 AM
ok...i got lucky and found something in a weird place...but this makes sense...

so...if i use http://127.0.0.1/ i get the same as if i was trying to open the file the standard way...

v

sonofslim
Jan 20, 2004, 11:26 AM
you need to have web sharing turned on. personal web sharing is macintosh don't-look-under-the-hood speak for "run apache." you'll also need to stop and restart apache after any config changes to make them active.

also, mysql will not start on its own. if you downloaded your mysql package from entropy.ch, which is where a lot of people get their mysql packages, you may have downloaded an additional package that automatically runs the mysql server at startup. if you didn't, this may also be contributing to the problem.

not sure why monkeying with the FTP sharing and the firewall would have any effect if you're not running web sharing in the first place, but you should go back and set it up correctly. if you're sharing your web folder, you should make sure to turn your firewall back on -- safety first.

lastly... this thread will probably be moved to the web development forum in short time. we're not ignoring you -- it's just that you'll get much quicker responses if you post in the appropriate place.

jvaska
Jan 20, 2004, 11:52 AM
guess it wasn't clear that i resolved the problem...but was recoding it in the forum just in case anybody else has the same problem...v