Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


so close! | 55 comments | Create New Account
Click here to return to the 'so close!' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
so close!
Authored by: Diggory on Apr 03, '01 11:29:25AM

when trying to restart apache I get:
Syntax error on line 240 of /etc/httpd/httpd.conf:
API module structure `php4_module' in file /usr/libexec/httpd/libphp4.so is garbled - perhaps this is not an Apache module DSO?
/usr/sbin/apachectl start: httpd could not be started

any clues? anyone had success?



[ Reply to This | # ]
fixed now. stepwise good.
Authored by: Diggory on Apr 03, '01 12:37:16PM

followed instructions on stepwise and it worked.



[ Reply to This | # ]
so close!
Authored by: vipm on Apr 03, '01 01:21:20PM

What I think you did (as did I in the beginning) was run the resulting PHP package. Well, for some reason it doesn't work and I got the same error message you got. You have to do it manually. Just follow the instructions in the article. That is, mount the PHP disk image, and copy the tar file, forget about the .pkg file.

Care take.



[ Reply to This | # ]
so close!
Authored by: Anonymous on Apr 03, '01 03:48:45PM

yes I'm guessing there is a bug with php4.0.4 and apache .19 and Darwin.

I had the same problem, commenting out the php loadmodule and addmodule made apache launch.

FYI, I added to compile with mysql but I doubt that had any effect.

mysql and apache are working though.



[ Reply to This | # ]
so close!
Authored by: Anonymous on Apr 03, '01 10:31:06PM

Yeah. I got this error also. I tried recompiling PHP again and the second time it went in and correctly updated my httpd.conf file. Perhaps the first time I hadn't compiled it as root or something. Strange.



[ Reply to This | # ]
so close!
Authored by: edenwaith on Apr 12, '01 04:58:27PM
I also had this problem on two different computers, but I eventually got PHP, MySQL and Apache to all work on an iMac and a G4 PowerMac.

The installations seems somewhat nit-picky in which order some of the programs are installed. I think this is what worked for me.

Install MySQL.
Install Apache.
Install PHP, using the ./configure, make, and make install options.

If PHP is still having problems, saying that the shared object file is unreadable (that would be the .so file), try reinstalling PHP again. I found I had to install PHP twice before it worked. But now that it does work, I'm very happy! Just remember to turn MySQL on before trying to connect PHP to it.

[ Reply to This | # ]