Thanks. I had forgot the last two lines but they are unquoted now and it still won�t work. (The preinstalled apache server this time...) The server starts up ok, so it seems to find the lib, but it just wont read and execute the code...
Other ideas? / per On torsdag, mars 7, 2002, at 11:28 , Chris Devers wrote: > On Thu, 7 Mar 2002, Per Rundblom wrote: > >> Could some one give me a hint about how a load the php-module >> under apache!? I have installed them bouth with fink, but a cant >> find the correct php-lib to add in /sw/etc/httpd/httpd.conf file? > > This isn't exactly what you're trying to do, but be aware that OSX comes > with PHP installed but disabled by default. I have it activated in my > httpd.conf file with the following lines: > > % grep php /etc/httpd/httpd.conf > LoadModule php4_module libexec/httpd/libphp4.so > AddModule mod_php4.c > AddType application/x-httpd-php .php > AddType application/x-httpd-php-source .phps > % > > If you want to use an Apache/PHP combo as supplied by Fink, that's fine. > Just activate it the same way as shown here. > > If your httpd.conf file is more or less standard, then somewhere near > the > top you will have a long series of lines (some commented out) reading > "LoadModule foo_module libexec/httpd/libfoo.so", and after this will > be a > series of "AddModule mod_foo.c" lines. Add the php lines -- making sure > that the file & path names match what Fink provides for you -- in a way > similar to what I show in the first two lines above. > > Then, again assuming that your configuration is more or less stock, > there > should be a series of AddType declarations around the middle of the > config > file. Add the php related mime types & the file name associations that > you > want to associate with those types (.php, .php4, .pokemon, whatever). > > Once these lines are added, run a "apachectl configtest" to make sure > that > everything is okay, and then "apachectl restart" to reinitialize the web > server process. > >> LoadModule libphp4_module lib/apache/1.3/libphp4.so >> ...and... >> AddModule mod_libphp4.c > > This looks close, but it doesn't quite match my config (in particular, > I'm > not sure if "libphp4_module" is right -- maybe try taking 'lib' out of > there...). But yeah, the following module path needs to be correct > relative to your ServerRoot directive. So for example, I've got: > > % grep -i '^ *ServerRoot' /etc/httpd/httpd.conf > ServerRoot "/usr" > % grep -i '^ *LoadModule.*php' /etc/httpd/httpd.conf > LoadModule php4_module libexec/httpd/libphp4.so > % ls /usr/libexec/httpd/libphp4.so > /usr/libexec/httpd/libphp4.so > % > > So in other words, the root is define as '/usr', I'm telling the server > to > look for the PHP library at 'libexec/httpd/libphp4.so' relative to that > root directory, and in fact that file exists at that place on my system. > > So, if your ServerRoot is e.g. /sw, then your PHP would have to be > installed at /sw/lib/apache/1.3/libphp4.so. Does that match what you see > on your system? > > > -- > Chris Devers [EMAIL PROTECTED] > Apache / mod_perl / http://homepage.mac.com/chdevers/resume/ > > > _______________________________________________ > Fink-users mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/fink-users _______________________________________________ Fink-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-users
