Peter wrote: >> >howdy, >> > >> >i've got it all configured correctly .. well it doesn't spit any >> errors out >> >on make >> >but when i got to view a web page it opens a down load box ..so >> i added this >> > >> >LoadModule php4_module libexec/libphp4.so >> > >> >to httpd.conf as per the manual and restarted apache but it didn't start >> >saying it couldn't find libphp.so which leads me to my question >> .. that file >> >is created automatically correct? >> > >> >i havent been able to find that file on my machine any where.. so i >> >can't point it to another location ... any one got any ideas what i >> should do as i >> >have not seen any info any where that will direct me in this >> >situation... >> >> Do the "make install" again and pay attention to what scrolls by and see >> where it puts the libphp4.so file. >> >> Then, make sure that's where Apache expects it. >> >> the LoadModule directive acts in conjunction with the one above all the >> LoadModules that tells Apache where to start looking for Modules in the >> first place. >> >> Some folks set that in httpd.conf to include the "libexec" part, so then >> your libexec in the LoadModule line is ending up "doubling" the libexec >> in the path and that ain't gonna work. >> >> If there are any *working* LoadModule lines, you can try digging around >> to find them on your hard drive, and make sure libphp4.so is sitting next >> to them, and then do the LoadModule the same way as the working ones. >> >> http://apache.org will explain all the stuff I just said in >> formal language. >> :-) > > Ok i followed what you have suggested and Apache didn't spit out anything > on libphp4.so so I am lead to beleave it wasn't created.. > > my apache config like was > > > #./configure --enable-module=most --enable-shared=max > #--activate-module=src/ > modules/php4/libphp4.a > > cheers > Peter > > Peter - if you are still battling with this, perhaps you might try an alternate approach, where you first compile apache with dso support, then compile php as a loadable module.
For guidance, here are the configure files I use for each: Apache ./configure --prefix=/usr/local/apache --enable-module=most --enable-shared=max You'll possibly have apache in a different place so may need to change the value for prefix. PHP #! /bin/sh # # Created by configure "./configure" \ "--enable-debug=no" \ "--enable-gd-imgstrttf" \ "--enable-gd-nativett" \ "--enable-sysvsem=yes" \ "--enable-sysvshm=yes" \ "--enable-track-vars=yes" \ "--with-apxs=/usr/local/apache/bin/apxs" \ "--with-config-file-path" \ "--with-config-file-path=/usr/local/apache/conf" \ "--with-freetype-dir=/usr/X11R6" \ "--with-gd=/usr/local/src/gd-2.0.1" \ "--with-jpeg-dir=/usr" \ "--with-mysql=/usr/local/mysql" \ "--with-png-dir=/usr" \ "--with-xml" \ "--with-xpm-dir=/usr/X11R6" \ "--with-zlib" \ "--with-zlib-dir=/usr" \ "$@" #"--with-mnogosearch" \ The two things you need specifically here are --with-apxs which allows the loadable module to be built, and the two with-config-file entries. The latter of these points to the directory where you have installed apache configuration files, and allows the php install process to find the apache config file and add the necessary entries to get php up and running. So the order of play is Apache configure make make install optionally start to ensure its all working PHP configure make make install Apache restart to re-read the config file That should get you up and running. I just did the php part earlier today to upgrade my laptop to 4.2.2 and it only took a few minutes. Cheers -- David Robley NUMBER CRUNCHING: Jumping on a Computer. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php