Usability/Usability humor
[11:37:47 AM]
Getting PHP to run on SUSE Linux 7.2....
I knew PHP was installed, but I couldn't figure out how to make it go. There was nothing in the httpd.conf file for Apache. PHP documentation about installing and configuring all seems to assume you are about to compile Apache and PHP together. Not what I would want to compile them together in any case. I'd rather have a dynamic module, so I can remove it easily.
Turns out, all I needed to do was add the LoadModule and AddModule lines.
LoadModule php4_module /usr/lib/apache/libphp4.so ... AddModule mod_php4.c
I think Apache is very weird about these module configuration lines. You need to know where libphp4.so actually is. But I don't think mod_php4.c has to exist (anywhere), and the connection to php4_module is not obvious when you just look at the configuration file.
To find your libphp4.so file:
find /usr -name "libphp4.so*"
Then you can use the full path to it in the line above.
Once you update your .conf file, try running "apachectl configtest" at the command line to make sure apache can find your libphp4.so, and you have all the syntax stuff right. Then "apachectl graceful" will stop and restart apache -- gracefully.
Keywords: PHP PHP4 "Suse linux 7.2" Apache httpd.conf install configure start Load Add Module.
Copyright © 2003 Licentious Radio.
Last update: 2/1/03; 4:49:54 PM.