licentious radio

January 2003
Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  
Dec   Feb

   Click here to visit the Radio UserLand website.
   Click to see the XML version of this web page.


"What kind of peace do I mean? What kind of peace do we seek? Not a Pax Americana enforced on the world by American weapons of war. Not the peace of the grave or the security of the slave. I am talking about genuine peace, the kind of peace that makes life on earth worth living, the kind that enables men and nations to grow and to hope and to build a better life for their children - not merely peace for Americans but peace for all men and women - not merely peace in our time but peace for all time." -- JFK
 
Home | Stories | Politics/Humor | Web Usability/Humor | ipaq 3800 Linux | RadioRadio | Typography | About | Contact
Usability/Usability humor
Saturday, January 11, 2003
[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.