Click to See Complete Forum and Search --> : [Resolved] getting cURL going
I have installed cURL and recompiled PHP with cURL support. However, when I restart apache I get a "PHP4_module is already loaded, skipping" message. Apache restarts and I can access PHPINFO, but the curl module is not loaded, and the Configure Command listing does not show the most recent configure command that included, --with-curl=. Php recompiled with no error, any ideas?
planetsim
06-20-2005, 10:51 PM
You didnt remove the LoadModule php4_module line before you recompiled, PHP will automatically add the line and wont check if its already installed. Comment one of them out and restart.
I tried this already with no luck. I commented out the second php4_module line and restarted Apache. It restarted with no error but when I look at PHPinfo(), it still does not show the '--with-curl' option. Should I try to recompile again? Thanks.
planetsim
06-21-2005, 09:47 AM
The second one is probably the newer compile with curl (so just check to make sure). If not then just remove both LoadModules for php and do a recompile.
I tried changing which line is getting commented out with no luck. I decided to try recompiling and am now getting the following error. I have this exact error on two machines (RHES3.0 and SuSe Pro 9.1) which probably means I am consitently doing the same thing wrong. I shut down apache and am using the following for configure:
./configure --with-apxs=/opt/oracle/product/10gR3/Apache/Apache/bin/apxs --prefix=/opt/oracle/product/10gR3 --with-config-file-path=/opt/oracle/product/10gR3/Apache/Apache/conf --with-oci8=/opt/oracle/product/10gR3 --with-curl=/home/myhp/curl-7.14.0 --disable-rpath
I'm stumped?
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS...
Sorry, I was not able to successfully run APXS. Possible reasons:
1. Perl is not installed;
2. Apache was not compiled with DSO support (--enable-module=so);
3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs
The output of /opt/oracle/product/10gR3/Apache/Apache/bin/apxs follows
/opt/oracle/product/10gR3/Apache/Apache/bin/httpd: error while loading shared libraries: libdms2.so: cannot open shared object file: No such file or directory
apxs:Error: Sorry, no DSO support for Apache available
apxs:Error: under your platform. Make sure the Apache
apxs:Error: module mod_so is compiled into your server
apxs:Error: binary `/opt/oracle/product/10gR3/Apache/Apache/bin/httpd'.
configure: error: Aborting
This problem was solved by copying libdms2.so into /usr/lib. This solved one problem, still having others. Will start a new thread.
PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved.