Datasheet
P1: KTX
WY027-01 WY027-Mercer WY027-v2.cls June 5, 2004 0:44
Chapter 1
Figure 1-10
If there isn’t such a line, you need to add one; or if the path is wrong, you need to correct it. Find out
where the PHP compile put your libphp5.so file. Open Konqueror and choose Tools
➪ Find file. My
installation put the libphp5.so file in
/usr/lib/httpd/modules
You need this information to tell Apache how to run PHP scripts. In the Apache configuration file
httpd.conf, add the LoadModule instruction to load PHP5. Put it after any of the other LoadModule
lines, using the path you just obtained:
LoadModule php5_module /usr/lib/httpd/modules/libphp5.so
Now that Apache knows how to load PHP5, you need to activate PHP5 in Apache. There’s a section
farther down the file consisting of a lot of lines beginning with AddModule.Ifyoufind a
18