php-install Digest 18 May 2001 10:43:20 -0000 Issue 314 Topics (messages 3195 through 3198): PHP4/Apache Module compile problems 3195 by: PHP Mailing List User windows 2k pro and PHP 3196 by: McShen DSO installation 3197 by: cel1 3198 by: Matthew Schroebel Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] ----------------------------------------------------------------------
I'm trying to install PHP4 as an Apache Module by following the instructions in the PHP manual. Here are the specifics of my install: Apache: 1.3.19 Configuration options: ./configure --bindir=/usr/local/apache/bin --sbindir=/usr/local/apache/bin --libexecdir=/usr/local/apache/libexec --datadir=/data/httpd --enable-module=so PHP: 4.04pl1 Configuration options: ./configure --with-mysql --with-apache=/tmp/apache_1.3.19 --with-ldap --with-imap --enable-track-vars --enable-magic-quotes --with-ldap --enable-trans-sid --enable-force-cgi-redirect I do all of the associated makes on PHP, then add the PHP4 module into Apache by running ./configure --activate-module=src/modules/php4/libphp4.a That runs without a hitch. However, when I try a make on Apache, I get collect2: ld returned 1 exit status make[2]: *** [target_static] Error 1 make[2]: Leaving directory `/tmp/apache_1.3.19/src' make[1]: *** [build-std] Error 2 make[1]: Leaving directory `/tmp/apache_1.3.19' make: *** [build] Error 2 Any Ideas? HELP!!! Thanks.
i was trying to install php on windows 2k pro. i got this message when i was trying to run the test scrpt "PHP CGI binary (\php) is not executable. Please compile PHP as a CGI executable and try again. " why is that? and should i read the instruction for IIS 4.0+ (isapi) or IIS 4.0+ (CGI)
I want to call a Java applet from PHP on the server, and receive its string output: $javaClass = new Java("MyJavaClass"); $string = $javaClass->MethodWhichReturnsString(); According to Blake Schwandiman in "PHP4 Developer's Guide" (and other sources) I need to install as DSO, not static. Here's what I did: Download Apache and PHP sources into /usr/local/src, then cd to /usr/local/src. tar -zxvf apache_1.3.19.tar.gz tar -zxvf php-4.0.5.tar.gz cd apache_1.3.19 ./configure --enable-module=so --prefix=/www make make install All goes well. Next: cd ../php-4.0.5 ./configure --with-apxs=/www/bin/apxs --with-java=/usr/local/jdk118_v1 --with-perl=/usr/bin/perl --with-mysql=/usr/local/mysql -enable-track-vars make make install All goes well. Next: cd ../apache_1.3.19 ./configure --prefix=/www --activate-module=src/modules/php4/libphp4.a make Here's the trouble: . . . <===src/module/standard ===>src/module/php4 /bin/sh: php4: No such file or directory make[3]: *** [all] Error 1 make[2]: *** [subdirs] Error 1 make[2]: Leaving directory '/usr/local/src/apache_1.3.19/src make[1]: *** [build-std] Error 2 make[1]: Leaving directory '/usr/local/src/apache_1.3.19 make: *** [build] Error 2 [root@localhost apache_1.3.19# I thought that the re-configure in apache_1.3.19 was supposed to create the items it needs. What's missing here? Curtis Lacy [EMAIL PROTECTED] [That fourth character is the digit 'one', not the letter 'ell'.]
> From: cel1 <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, May 18, 2001 1:42 AM > I need to install as DSO, not static. Here's what I did: >Next: > > cd ../apache_1.3.19 > ./configure --prefix=/www --activate-module=src/modules/php4/libphp4.a > make > > Here's the trouble: > . > . > . > <===src/module/standard > ===>src/module/php4 > /bin/sh: php4: No such file or directory > make[3]: *** [all] Error 1 > make[2]: *** [subdirs] Error 1 > make[2]: Leaving directory '/usr/local/src/apache_1.3.19/src > make[1]: *** [build-std] Error 2 > make[1]: Leaving directory '/usr/local/src/apache_1.3.19 > make: *** [build] Error 2 > [root@localhost apache_1.3.19# > You were done when you did a make install of php. You don't need to build apache again (you were trying to build a static installation in step 3). After installing php, just edit the httpd.conf file, adding the AddType and LoadModule directives. Matt