Hi, I hope someone can help.. Check out the stared line I am running into a problem like this
Not sure what he is meaning by SYMLINK -- I'm trying to get PHP 4.0.6 to work on a Cobalt RaQ3i server with Java support like so: ./configure --with-apxs=/usr/sbin/apxs --with-mysql --with-java=/usr/jdk1.2. 2 --enable-track-vars ******************************************** I THINK THE BELOW IS MY PROBLEM ???? HOW DO I DO THE FOLLOWING LINE ***************************************************** Cobalt chose to put the httpd daemon in /usr/sbin as oppose to /usr/bin so I had to create a symlink in /usr/bin for the make install to work properly (otherwise you get a nasty apxs:Warning: /usr/bin/httpd not found or not executable Continuing anyway...No shared object support for Apache available under your platform. Make sure the Apache module mod_so is compiled into your server binary `/usr/bin/httpd'. Continuing anyway...) ************************************************************ Once the ./configure, make, make install was done I moved the libphp_java.so and php_java.jar to the extensions directory, copied php.ini-dist to /usr/local/lib/php.ini and edited the [Java] section as so: [Java] java.home=/usr/jdk1.2.2 java.class.path=/usr/jdk1.2.2/jre/lib/i386/rt.jar:/usr/jdk1.2.2/jre/lib/:/us r/jdk1.2.2/jre/lib/i386:/usr/local/lib/php/extensions/php_java.jar java.library.path=/usr/local/lib:/usr/jdk1.2.2/jre/lib/i386:/usr/jdk1.2.2/jr e/lib/i386/classic:/usr/jdk1.2.2/jre/lib/i386/native_threads java.library=/usr/jdk1.2.2/jre/lib/i386/libjava.so extension=/usr/local/lib/php/extensions/libphp_java.so I'm confident PHP4 is working as phpinfo gives me some useful output but there is definately something not right with the DSO/PHPJava side of things. I tried various different setups in this section to no avail... when I try and call up jver.php or anything that tries to call an instance of JVM the browser gives me a 'Website found..waiting reply..' and eventually times out. I've turned Apache logging up to debug which tells me nothing useful and PHP logging doesn't even seem to be working so not many clues as to why its toiling so much. I've checked for the correct entries in the httpd.conf and restarted Apache after every php.ini tweak. I have noticed that unless I specify the LD_LIBRARY_PATH from the shell and stop and start Apache I get the error message: Fatal error: Unable to load Java Library /usr/jdk1.2.2/jre/lib/i386/libjava.so, error: libhpi.so: cannot open shared object file: No such file or directory in /webroot/jver.php on line 4 Incidentally, I did try to use the shipped JRE (Blackdown Java-Linux port of the Java 2 SDK to Linux) but when I tried to compile PHP using just --with-java=/usr it could not find the required libraries.. if I tried --with-java=/usr/jre1.2 it always tried to append /include to the path and could not find what it was looking for. So I ended up using the Sun JDK 1.2.2 and configuring with --with-java=/usr/jdk1.2.2 gives no problems at all. I'd appreciate any input/suggestions y'all might have, I'm still working away at it and I'm sure its going to be a simple fix in the end, it usually works out that way! Many thanks in advance Paul Milne ICT Consultant Digit Limited ----- Original Message ----- From: "Rasmus Lerdorf" <[EMAIL PROTECTED]> To: "Kacey A. Murphy" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, October 17, 2001 3:23 AM Subject: Re: [PHP] Error starting Apache 1.3.22 with PHP 4.0.6. > Your Apache install is a mess. How did you install it? > > > Just out of curiousity when I run MAKE INSTALL > > Laste couple lines says > > > > /home/packages/php-4.0.6/build/shtool mkdir -p "/usr/lib/apache" && > > /usr/sbin/ao > > apxs:Warning: /usr/bin/httpd not found or not executable > > apxs:Warning: Continuing anyway... > > apxs:Warning: No shared object support for Apache > > apxs:Warning: available under your platform. Make sure > > apxs:Warning: the Apache module mod_so is compiled into > > apxs:Warning: your server binary `/usr/bin/httpd'. > > apsx:Warning: Continuing anyway... > > apxs:Error: Unknown option: S > > Usage: apxs -g -n <modname> > > apxs -q <query> ... > > apxs -c [-o <dsofile>] [-D <name>[=<value>]] [-I <incdir>] > > [-L <libdir>] [-l <libname>] [-Wc,<flags>] [-Wl,<flags>] > > <files> ... > > apxs -i [-a] [-A] [-n <modname>] <dsofile> ... > > make[1]: *** [install-sapi] Error 1 > > make[1]: Leaving directory `/home/packages/php-4.0.6' > > make: *** [install-recursive] Error 1 > > [root@ns php-4.0.6]# > > > > Is this a problem > > "Stefen Lars" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > Hello all > > I have just compiled and installed Apache 1.3.22 (with module support) onto > a freshly installed Red Hat 7.1. I have also compiled and installed PHP > 4.0.6. > > I have edited the httpd.conf script so that PHP parses .php files and also > loads the PHP module like this: > > # Example: > # LoadModule foo_module libexec/mod_foo.so > LoadModule php4_module libexec/libphp4.so > > However, when I check the configuration file with > > /usr/local/apache/bin/apachectl configtest > > I get the following error message: > > Syntax error on line 205 of /usr/local/apache/conf/httpd.conf: > Cannot load /usr/local/apache/libexec/libphp4.so into server: > /usr/local/apache/libexec/libphp4.so: undefined symbol: uncompress > > Likewise, when I try to start Apache, I get the same error message. This > message does not make sense to me :-( > > Line 205 is the LoadModule line above. > > I have installed this combination of web server and PHP many times on many > different servers, but have never come across that particular error message. > > Would someone be able to explain to me what is going on and how I can > successfully load the libphp4.so module? > > Thank you very much in advance > > Stefen Lars > > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp > -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]