php-install Digest 27 Mar 2001 04:12:52 -0000 Issue 235 Topics (messages 2584 through 2590): Installing php-4.0.4pl1, MySQL and using mod_auth_mysql 2584 by: Wesley Miles Problems compiling with t1lib 2585 by: Shane Wright Error running Apache with PHP4 2586 by: Jean-Rene Cormier ap_auth_type 2587 by: Mark de Groot openLDAP1.2.11 + 4.0.4pl1 + Apache 1.3.14 + Sol 7 2588 by: John McCoy, Jr. Error: "Premature end of script headers: /u01/httpd/cgi-bin/test.php" 2589 by: news.evansville.net Php installation error .....erro 127 2590 by: Aravind 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] ----------------------------------------------------------------------
Hi, I would appreciate any help on this subject as it has been driving me crazy. I have : 1) php-4.0.4pl1 (tar) 2) MySQL (4 rpm's) 3.23.35-1.i386 3) Redhat Linux 6.2 4) Using mod_auth_mysql in the apache httpd.conf I have rpm - i installed MySQL no problem. I then have to use the ./configure --with-mysql=/path --with-apxs=/path --with-imap --disable-debug I have read that to use mod_auth_mysql and PHP with MySQL I need to specify the path of MySQL and not use the PHP built-in support. This is because an error will appear on the website everytime MySQL is accessed. Fair enough......but I do not know which path to give MySQL. Therefore I have tried the path which includes the mysql.h file. I have tried the path that points to libmysql. Basically I have tried every path and they all come back with an error saying : Cannot find header files. The only path that works is /usr. This does not give any errors. However when the httpd.conf is reloaded the website still gives the same error as before. Stating that it cannot save the ResultSet. The commands are executed (e.g. SELECT) but this error always appears. I do not know what to do next. I have the latest version of everything but it still gives the error on the website. Thanks very much for any help W. Miles --
Hi, I'm having a helluva time trying to compile PHP 4.0.4pl1 with t1lib! The main problem initially is that I can't 'make install' t1lib as it needs to run on my ISPs machine which I can't control. I have 'configure'd it and compiled it (t1lib) successfully and I believe I have all the necessary library files, but PHP won't find them! Here is my debug.log: CONFIGURE: './configure' '--without-apache' '--with-gd' '--with-mysql' '--with-t1lib=/home/shivers/temp/T1-1.1.0/lib/.libs/' CC: gcc CFLAGS: -g -O2 CPPFLAGS: CXX: CXXFLAGS: INCLUDES: -I$(top_builddir)/Zend -I/include -I/home/shivers/temp/php-4.0.4pl1/ext/mysql/libmysql LDFLAGS: -Wl,-rpath,/lib -L/lib LIBS: -lt1 -lz -lpng -lgd -lresolv -lm -ldl -lcrypt -lnsl -lresolv -L/lib -lt1 DLIBS: SAPI: cgi PHP_RPATHS: /lib uname -a: Linux shivers.raa 2.2.16-22 #1 Tue Aug 22 16:49:06 EDT 2000 i686 unknown gcc -o conftest -g -O2 -Wl,-rpath,/lib -L/lib conftest.c -lt1 -lz -lpng -lgd -lresolv -lm -ldl -lcrypt -lnsl -lresolv -L/lib -lt1 1>&5 /usr/bin/ld: cannot find -lt1 collect2: ld returned 1 exit status (I have tried variations on the t1lib path - including anc excluding the lib/ and .libs/ portions - but all with no luck) I have also tried it on my home machine, where I was able to 'make install' t1lib - but it died with another error: CONFIGURE: './configure' '--without-apache' '--with-gd' '--with-mysql' '--with-t1lib=/usr/local/lib/' CC: gcc CFLAGS: -g -O2 CPPFLAGS: CXX: CXXFLAGS: INCLUDES: -I$(top_builddir)/Zend -I/include -I/home/shivers/temp/php-4.0.4pl1/ext/mysql/libmysql LDFLAGS: -Wl,-rpath,/lib -L/lib LIBS: -lt1 -lz -lpng -lgd -lresolv -lm -ldl -lcrypt -lnsl -lresolv -L/lib -lt1 DLIBS: SAPI: cgi PHP_RPATHS: /lib uname -a: Linux shivers.raa 2.2.16-22 #1 Tue Aug 22 16:49:06 EDT 2000 i686 unknown gcc -o conftest -g -O2 -Wl,-rpath,/lib -L/lib conftest.c -lt1 -lz -lpng -lgd -lresolv -lm -ldl -lcrypt -lnsl -lresolv -L/lib -lt1 1>&5 ./conftest: error while loading shared libraries: libt1.so.1: cannot load shared object file: No such file or directory (ok, so they're the same machine at the moment - but I can't make install on the ISP's one so I need to be able to get it working that way whatever the machine) I have also tried it with both v1.0.1 and v1.1.0 of t1lib. Anyone got any ideas on how to sort this? Any help appreciated. Regards Shane
I've tryed all the possible way (that I can think of) to install PHP4 with Apache when I run apache I get this error: Cannot load /var/lib/apache/libexec/libphp4.so into server: /var/lib/apache/libexec/libphp4.so: undefined symbol: uncompress is it some library I need or something?? TIA
(1) Basics: PHP Version: (Download date: March 21, 2001) PHP 4.0.4pl1 Compiler: gcc version: 2.95 19990728 (release) OS: Solaris 2.5.1 config string: env CFLAGS="-DSTRONGHOLD -I/web/ssl/include" ./configure --with-apache=/usr/local/apache --with-my sql \ --enable-module=all --enable-shared=max (2) The Issue: Everthing compiles fine if I comment out the following line from mod_php.c (line 398) : |-------- r->connection->ap_auth_type = "Basic"; |-------- If I leave it in as is on the distribution I get the following error: mod_php4.c: In function `init_request_info': mod_php4.c:398: structure has no member named `ap_auth_type' make[1]: *** [mod_php4.lo] Error 1 make[1]: Leaving directory `/usr/local/software/php-4.0.4pl1/sapi/apache' make: *** [all-recursive] Error 1 I'm not sure what its purpose is in this file but the API definition is: This function returns the name of the HTTP authentication method that applies to the specified request. The method is set by the AuthType directive. If no authentication menthod is applicable, this routine returns NULL. See: http://dev.apache.org/apidoc/apidoc_ap_auth_type.html (3) My question: Is this a bug or an error in my configuration ? -Md
I've been struggling with the Undefined Symbol Errors when trying to compile Apache. I added LIBS=-lldap to the configure command now I get this: Undefined first referenced symbol in file ber_dup /usr/local/lib/libldap.so ber_get_int /usr/local/lib/libldap.so <SNIP> ber_alloc_t /usr/local/lib/libldap.so ber_sockbuf_add_io /usr/local/lib/libldap.so ld: fatal: Symbol referencing errors. No output written to helpers/dummy collect2: ld returned 1 exit status LDAP works fine from command line and Windows based tools. PHP does have IMAP Patch applied for IMP website. http://www.horde.org/imp/contrib/php-4.0.4pl1-imap-patch.txt Thanks for any help. Complete config line: # SSL_BASE=../openssl-0.9.6 EAPI_MM=../mm-1.1.3 CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib LIBS=-lldap ./configure --prefix=/usr/local/apache --activate-module=src/modules/php4/li bphp4.a --enable-module=ssl --activate-module=src/modules/perl/libperl.a --e nable-module=perl ************************ John McCoy, Jr Central Systems Administrator Mills College, Oakland, CA 510-430-3321 [EMAIL PROTECTED] ************************
I have a new install under RedHat6.1/Apache1.3 using dso. All appeared to go smoothly but I get the error "Premature end of script headers: /u01/httpd/cgi-bin/test.php" in the Apache error_log file with a simple test file. Any suggestions? Thanks--Houston
Hi.. While installing php-3.0.11/14/15/16/18.tar.gz on a newly installed solaris 7 ultra 10 machine, after the gunzip -d php-3.0.*.tar.gz is made and then tar -xvf php-3.0.*.tar is run i get the folder created with all the files and dir tree . When i make the first error i get is pcrelib/libpcre.a not found, and when i check back to that dir, the file is not present there, so i manually add the file into that dir and when i run make again i get the error libmodphp3.a error 127, can anybody pls help me out in this as to what is the error all about and the dir where i need ot put libmopdphp3.a or is there anyother package that i have not installed, or probably its got to do something with my env which is not set correctly. The softwares i have installed are.. Flex Bison Gcc Perl bind gzip etc... I have my , mysql running on the machine so i only need php and apache to get up and running, Any suggestions and answer for this will be highly appreciated as i need a sol this at the earliest... Thanx in advance... Aravind