Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mnkeybsness

macrumors 68030
Original poster
Jun 25, 2001
2,511
0
Moneyapolis, Minnesota
any *nix and php guys out there know why i'm getting this error?

[shannon:~] paularms% apachectl configtest
Syntax error on line 368 of /etc/httpd/httpd.conf:
Cannot add module via name 'mod_php4.c': not in list of loaded modules

when i check out the httpd.conf file all it says on line 368 is "Addmodule mod_php4.c"
 

mnkeybsness

macrumors 68030
Original poster
Jun 25, 2001
2,511
0
Moneyapolis, Minnesota
i think i found the problem on the FAQs section of this page

it says

"Will this run on Mac OS X Server?"
Yes, seems it will run on OS X Server 10.2 if you disable the "apple_auth_module" in the Apache server config file. Big thanks to Arnold Schwaighofer for this tip.

note: this is on an os x server machine

my question now is...where is the apache server config file?
 

Rower_CPU

Moderator emeritus
Oct 5, 2001
11,219
2
San Diego, CA
Open httpd.conf in pico and hit ctrl+w to search for a term.
Enter apple_auth_module and hit return, and you will be taken directly to the line containing the module.
Comment out the line by adding the # at the start.
Save the changes.
Restart Apache.
 

mnkeybsness

macrumors 68030
Original poster
Jun 25, 2001
2,511
0
Moneyapolis, Minnesota
[shannon:/etc/httpd] username% sudo apachectl graceful
/usr/sbin/apachectl graceful: httpd not running, trying to start
Syntax error on line 368 of /etc/httpd/httpd.conf:
Cannot add module via name 'mod_php4.c': not in list of loaded modules
/usr/sbin/apachectl graceful: httpd could not be started

i don't understand what this problem is now...i added the # symbol like you said rower, but now it gives me this...and i don't see why mod_php4.c is not in the list
 

mnkeybsness

macrumors 68030
Original poster
Jun 25, 2001
2,511
0
Moneyapolis, Minnesota
ok i found a problem...the install did not place libphp4.so in the right directory and that was causing it to not understand the php mod. i think i need to restart now though because every time i try to load a page it says that no data could be loaded. i restarted apache and the webserver, but still no dice...i think i may need a full restart on this one.
 

mnkeybsness

macrumors 68030
Original poster
Jun 25, 2001
2,511
0
Moneyapolis, Minnesota
sorry for the triple-post, but

the problem is that the web server will not stay turned on. when i start it up through the server settings, it shows that it is running for about 15 seconds and then shuts down...what's the deal?
 

mnkeybsness

macrumors 68030
Original poster
Jun 25, 2001
2,511
0
Moneyapolis, Minnesota
nope...by all means, apache is up and running, no errors. the web server says it is up for just a little bit until it realized that it is not running...i'm so confused...moreso no than before
 

mnkeybsness

macrumors 68030
Original poster
Jun 25, 2001
2,511
0
Moneyapolis, Minnesota
he he....found it

here seems to be the recurring error that it's been giving me for the last two days

[Fri Apr 25 22:58:32 2003] [notice] caught SIGTERM, shutting down
dyld: /usr/sbin/httpd Undefined symbols:
_XML_ErrorString
_XML_GetErrorCode
_XML_Parse
_XML_ParserCreate
_XML_ParserFree
_XML_SetCharacterDataHandler
_XML_SetElementHandler
_XML_SetUserData
_checkpw

after that, it just keeps repeating...

dyld: /usr/sbin/httpd Undefined symbols:
_XML_ErrorString
_XML_GetErrorCode
_XML_Parse
_XML_ParserCreate
_XML_ParserFree
_XML_SetCharacterDataHandler
_XML_SetElementHandler
_XML_SetUserData
 

Rower_CPU

Moderator emeritus
Oct 5, 2001
11,219
2
San Diego, CA
I haven't updated my servers with it, since I'm waiting for Apple to release the package themselves.

In your case, there's a chance it'll fix something. There's also a chance that it will mess things up even worse.

It's your call. I'm pretty sure you can get the update at the same place you grabbed the PHP install (odd that you did that, BTW, since X Server already comes with PHP4). If not, you can grab it at Apache's website.
 

mnkeybsness

macrumors 68030
Original poster
Jun 25, 2001
2,511
0
Moneyapolis, Minnesota
it doesn't come with php4...it was running php3.something...also...it would not work...when you install an update, it actually installs it in a different place, so the old php is still there...but it won't let me enable it.
 

mnkeybsness

macrumors 68030
Original poster
Jun 25, 2001
2,511
0
Moneyapolis, Minnesota
ha ha...good idea...

and thanks for all the help rower!..even though nothing really was able to get fixed...i learned where i made some errors and i won't make them again
 

mnkeybsness

macrumors 68030
Original poster
Jun 25, 2001
2,511
0
Moneyapolis, Minnesota
ok, i'm still having a problem...

only this time it's probably more simple...everything is on, php is enabled (in the server settings)...

but when i try to load a php page from the server, it just downloads the index.php file...it won't display anything...just starts downloading...what is going on? how do i fix it?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.