php-install Digest 10 Apr 2002 01:41:30 -0000 Issue 784
Topics (messages 6593 through 6609): cannot find the module php4apache.dll 6593 by: Yeung Ming Re: Error compiling Apache 1.3.24 with PHP 4.1.2 6594 by: Yasuo Ohgaki 6595 by: Yasuo Ohgaki 6600 by: Jasper Metselaar 6601 by: Hunter, Ray ldap_connect segmentation faults 6596 by: Ron Martinez pgsql.so 6597 by: Rob Dege FreeBSD4.5/Apache2.0.35/php4.1.2 install problem 6598 by: Jaco van Tonder includes 6599 by: Robert Abbate Apache 2.0.35 and PHP 4.1.2 6602 by: Richard Pyne Just displaying normal text 6603 by: Irby apache 2 install problems? 6604 by: Andy Smith Problem found 6605 by: CTC GD 2 after GD 1.8? What the hell? 6606 by: phpman 6607 by: Rasmus Lerdorf 6608 by: phpman php install problem 6609 by: Yao Minfeng 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] ----------------------------------------------------------------------
--- Begin Message ---my system is as follow: win2k php4 apache2 I can run apache2 without php smoothly. After I installed php manually, I follow the instructions in install.txt and restart my server, However, the following error occurs: Syntax error on line 181 of D:/Program Files/Apache2/conf/httpd.conf: Cannot load D:/php/sapi/php4apache.dll into server: cannot find the module what's wrong?--- End Message ---
--- Begin Message ---Hi Jasper, Search archive :) I've answered enough to say that, I think. -- Yasuo Ohgaki Jasper Metselaar wrote: > Hello, > > I am trying to compile Apache 1.3.24 with PHP 4.1.2, but when > compiling I get the following errors: > > modules/php4/libphp4.a(dns.o): In function `zif_checkdnsrr': > /home/admin/php-4.1.2/ext/standard/dns.c:223: undefined reference to `__res_search' > modules/php4/libphp4.a(dns.o): In function `zif_getmxrr': > /home/admin/php-4.1.2/ext/standard/dns.c:284: undefined reference to `__res_search' > /home/admin/php-4.1.2/ext/standard/dns.c:311: undefined reference to `__dn_expand' > collect2: ld returned 1 exit status > make[2]: *** [target_static] Error 1 > make[2]: Leaving directory `/home/admin/apache_1.3.24/src' > make[1]: *** [build-std] Error 2 > make[1]: Leaving directory `/home/admin/apache_1.3.24' > make: *** [build] Error 2 > > In the PHP bug tracking system and found #13565. In reply to this bug > ticket, it was said that it was probably a problem with > /lib/libresolv.so.2. > I reinstalled glibc-2.1.3-23 (Redhat RPM), which includes this > libresolv.so.2, but it did not help. > > I am running Redhat 6.2 on my system. > > Any suggestions and/or help would be really appreciated. > > Thanks in advance, > Jasper >--- End Message ---
--- Begin Message ---Sorry Jasper, I'm replying to wrong one. It seems you have problem with resolver lib. As someone already mentioned. rpm -qf /lib/libresolve.so.* to find out package name. The reinstall both resolver rpm and it's devel rpm (if any) Then your problem should be fixed. -- Yasuo Ohgaki Jasper Metselaar wrote: > Hello, > > I am trying to compile Apache 1.3.24 with PHP 4.1.2, but when > compiling I get the following errors: > > modules/php4/libphp4.a(dns.o): In function `zif_checkdnsrr': > /home/admin/php-4.1.2/ext/standard/dns.c:223: undefined reference to `__res_search' > modules/php4/libphp4.a(dns.o): In function `zif_getmxrr': > /home/admin/php-4.1.2/ext/standard/dns.c:284: undefined reference to `__res_search' > /home/admin/php-4.1.2/ext/standard/dns.c:311: undefined reference to `__dn_expand' > collect2: ld returned 1 exit status > make[2]: *** [target_static] Error 1 > make[2]: Leaving directory `/home/admin/apache_1.3.24/src' > make[1]: *** [build-std] Error 2 > make[1]: Leaving directory `/home/admin/apache_1.3.24' > make: *** [build] Error 2 > > In the PHP bug tracking system and found #13565. In reply to this bug > ticket, it was said that it was probably a problem with > /lib/libresolv.so.2. > I reinstalled glibc-2.1.3-23 (Redhat RPM), which includes this > libresolv.so.2, but it did not help. > > I am running Redhat 6.2 on my system. > > Any suggestions and/or help would be really appreciated. > > Thanks in advance, > Jasper >--- End Message ---
--- Begin Message ---Yasuo, Thanks for your reply. I did what you told me to do, but the package I had to reinstall was exactly the package I already installed earlier today: [root@mybox admin]# rpm -qf /lib/libresolv.so.* glibc-2.1.3-23 Unfortunately that did not solve the problem. Any other suggestions? Thanks! - Jasper "Yasuo Ohgaki" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Sorry Jasper, > > I'm replying to wrong one. > > It seems you have problem with resolver lib. > As someone already mentioned. > > rpm -qf /lib/libresolve.so.* > > to find out package name. > The reinstall both resolver rpm and it's devel rpm (if any) > > Then your problem should be fixed. > > -- > Yasuo Ohgaki > > > Jasper Metselaar wrote: > > Hello, > > > > I am trying to compile Apache 1.3.24 with PHP 4.1.2, but when > > compiling I get the following errors: > > > > modules/php4/libphp4.a(dns.o): In function `zif_checkdnsrr': > > /home/admin/php-4.1.2/ext/standard/dns.c:223: undefined reference to `__res_search' > > modules/php4/libphp4.a(dns.o): In function `zif_getmxrr': > > /home/admin/php-4.1.2/ext/standard/dns.c:284: undefined reference to `__res_search' > > /home/admin/php-4.1.2/ext/standard/dns.c:311: undefined reference to `__dn_expand' > > collect2: ld returned 1 exit status > > make[2]: *** [target_static] Error 1 > > make[2]: Leaving directory `/home/admin/apache_1.3.24/src' > > make[1]: *** [build-std] Error 2 > > make[1]: Leaving directory `/home/admin/apache_1.3.24' > > make: *** [build] Error 2 > > > > In the PHP bug tracking system and found #13565. In reply to this bug > > ticket, it was said that it was probably a problem with > > /lib/libresolv.so.2. > > I reinstalled glibc-2.1.3-23 (Redhat RPM), which includes this > > libresolv.so.2, but it did not help. > > > > I am running Redhat 6.2 on my system. > > > > Any suggestions and/or help would be really appreciated. > > > > Thanks in advance, > > Jasper > > > >--- End Message ---
--- Begin Message ---Instead of using the rpms you might want to build the packages from scratch and see if that works. I have greater success with build the packages I need then using the rpms. Plus, you can configure them for your system... RAY HUNTER Firmware Engineer ENTERASYS NETWORKS -----Original Message----- From: Jasper Metselaar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 3:54 PM To: [EMAIL PROTECTED] Subject: [PHP-INST] Re: Error compiling Apache 1.3.24 with PHP 4.1.2 Yasuo, Thanks for your reply. I did what you told me to do, but the package I had to reinstall was exactly the package I already installed earlier today: [root@mybox admin]# rpm -qf /lib/libresolv.so.* glibc-2.1.3-23 Unfortunately that did not solve the problem. Any other suggestions? Thanks! - Jasper "Yasuo Ohgaki" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Sorry Jasper, > > I'm replying to wrong one. > > It seems you have problem with resolver lib. > As someone already mentioned. > > rpm -qf /lib/libresolve.so.* > > to find out package name. > The reinstall both resolver rpm and it's devel rpm (if any) > > Then your problem should be fixed. > > -- > Yasuo Ohgaki > > > Jasper Metselaar wrote: > > Hello, > > > > I am trying to compile Apache 1.3.24 with PHP 4.1.2, but when > > compiling I get the following errors: > > > > modules/php4/libphp4.a(dns.o): In function `zif_checkdnsrr': > > /home/admin/php-4.1.2/ext/standard/dns.c:223: undefined reference > > to `__res_search' > > modules/php4/libphp4.a(dns.o): In function `zif_getmxrr': > > /home/admin/php-4.1.2/ext/standard/dns.c:284: undefined reference > > to `__res_search' > > /home/admin/php-4.1.2/ext/standard/dns.c:311: undefined reference > > to `__dn_expand' > > collect2: ld returned 1 exit status > > make[2]: *** [target_static] Error 1 > > make[2]: Leaving directory `/home/admin/apache_1.3.24/src' > > make[1]: *** [build-std] Error 2 > > make[1]: Leaving directory `/home/admin/apache_1.3.24' > > make: *** [build] Error 2 > > > > In the PHP bug tracking system and found #13565. In reply to this > > bug ticket, it was said that it was probably a problem with > > /lib/libresolv.so.2. I reinstalled glibc-2.1.3-23 (Redhat RPM), > > which includes this libresolv.so.2, but it did not help. > > > > I am running Redhat 6.2 on my system. > > > > Any suggestions and/or help would be really appreciated. > > > > Thanks in advance, > > Jasper > > > > -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php--- End Message ---
--- Begin Message ---Hi everyone, Just curious if anyone has come across this problem. I have Apache 1.3.23 installed on my system. Next, I installed OpenLDAP 2.0.23 on my system and subsequently installed PHP 4.1.2 with LDAP support. When I start my webserver, everything appears fine. When I view phpinfo(), it says that it has LDAP support. However, when I try to run a small php script where I run PHP's ldap_connect() function, I get the following segmentation fault in my error_log: [notice] child pid 14624 exit signal Segmentation fault (11) Here's the script: <?php echo "Connecting..."; $connection=ldap_connect("ldap_server_ip"); echo "connect result is " .$connection."<p>"; ?> The LDAP server I'm trying to connect to is a different box than my webserver. Another curious thing I noticed is if I try running other LDAP functions in the script, such as ldap_add() or ldap_bind(), and not give it any parameters; my error log will state the following: [error] PHP Warning: Wrong parameter count for ldap_add() in /usr/local/apache_1.3.23/htdocs/test.php on line 6 [error] PHP Warning: Wrong parameter count for ldap_bind() in /usr/local/apache_1.3.23/htdocs/test.php on line 6 However, if I try the same thing for ldap_connect(), not giving it any parameters, I still get the segmentation fault above. My system is as follows: AIX 4.3.3 Apache 1.3.23 PHP 4.1.2 OpenLDAP 2.0.23 Here's the configure lines: Apache: ./configure --prefix=/usr/local/apache_1.3.23 --enable-rule=SHARED_CORE --enable-module=so --enable-shared=max PHP: export CC="cc" export CFLAGS="-g -ma" ./configure --prefix=/usr/local/php_4.1.2 --with-apxs=/usr/local/apache_1.3.23/bin/apxs --with-ldap=/usr/local/openldap_2.0.23 --without-mysql OpenLDAP: ./configure --prefix=/usr/local/openldap_2.0.23 --disable-slapd --disable-slurpd Any help would be appreciated. Thanks, Ron--- End Message ---
--- Begin Message ---I have to compile & install php-4.0.6 src on a machine. I can configure & compile everything necessary, but when php looks for the pgsql.so library, it can't be found & exits abnormally. Upon further investigation, I discovered that this file was never compiled when I ran 'make'. I included --with-pgsql in my configure parameters. What am I missing? -Rob--- End Message ---
--- Begin Message ---Hi All, I am using FreeBSD 4.5 Release, Apache 2.0.35, and php 4.1.2. Is there any way to make php work with Apache 2.0.35 without using apxs? If so, can anyone please post a message here describing how it works? I tried the following: /tmp/apache_2.0.35> ./configure --prefix=/www /tmp/apache_2.0.35> cd ../php_4.1.2 /tmp/php_4.1.2> ./configure --with-apache=../apache_2.0.35 --enable-track-vars then I get this error and configure stops: configure: error: Invalid Apache directory - unable to find httpd.h under /tmp/apache_2.0.35 What am I doing wrong as I previously compiled php and apache 1.3.24 in exactly the same manner and it worked like a bomb. Any help appreciated Regards Jaco -- Jaco van Tonder Junior Magic Developer Premsoft Development (Pty) Ltd Tel: +27 11 312 2122 Fax: +27 11 312 2122 Email: [EMAIL PROTECTED] http://www.premsoft.co.za--- End Message ---
--- Begin Message ---I have a directory with php files that I incorporate into my website as libraries via a php_include() call, I would like the path to include my library directory so I can include the library files from any directory. There is no way to overload php's include path on a user by user basis? Thanks--- End Message ---
--- Begin Message ---I have sucessfully built PHP for Apache 2 using ./configure --prefix=/usr/local/php4.1.2 \--with-axps2=/usr/local/apache2/bin/apxs --with-psql --with-mysql Apache was built with ./configure --enable-ssl --with-ssl=/usr/local/openssl --enable-info \ --enable-so --enable-usertrack --prefix=/usr/local/apache2 --enable-rewrite The builds run with no errors, but when I add <Files *.php> SetOutputFilter PHP SetInputFilter PHP </Files> to my httpd.conf file, Apache dies on startup with this message in the error_log: [alert] Child 27723 returned a Fatal error... Apache is exiting! Commenting out the <Files *.php> section allows everything to run okay (except PHP stuff). Any hints on things to try or where to look would be greatly appreciated. --Richard -- Richard B. Pyne [EMAIL PROTECTED]--- End Message ---
--- Begin Message ---Hi When I completed my my first.php with the following code inside the file: 1: <?php 2: Print "Hello Web" ; 3: ?> To view it. You fire up a browser and then type: http://localhost/first.php However it displays this: 1: <?php 2: Print "Hello Web" ; 3: ?> Regards, E-Mail: [EMAIL PROTECTED]--- End Message ---
--- Begin Message ---Hello, Please could someone let me know if it is possible to install php with apache 2, either as DSO or statically compiled? I have searched google but not come up with anything conclusive. Statically just does not get anywhere, so I've tried using apxs2. Here's the configure line for php 4.1.2: ./configure --with-mysql=/usr --with-apxs2=/usr/local/apache2/bin/apxs --enable-track-vars And here's the one I used for apache 2.0.35: ./configure --enable-mods-shared=all --with-mpm=prefork php does appear to build and install OK, but once the AddModule and LoadModule lines are added to httpd.conf, the server segfaults on startup. strace shows the following: . . . open("/usr/local/apache2/conf/mime.types", O_RDONLY) = 8 fstat64(8, {st_mode=S_IFREG|0644, st_size=12322, ...}) = 0 read(8, "# This is a comment. I love comm"..., 4096) = 4096 read(8, "tool-message\napplication/vnd.gro"..., 4096) = 4096 read(8, "on/vnd.wt.stf\napplication/vnd.xa"..., 4096) = 4096 read(8, "ovie\nx-conference/x-cooltalk\t\tic"..., 4096) = 34 read(8, "", 4096) = 0 close(8) = 0 semget(IPC_PRIVATE, 1, IPC_CREAT|0x180|0600) = 589831 semctl(589831, 0, 0x110 /* SEM_??? */, 0xbffff6b8) = 0 getcwd("/", 4095) = 2 --- SIGSEGV (Segmentation fault) --- Is it even possible to use php with apache 2, or should I just forget about it for a while? -- <biot> mmmmmm * biot likes his reconfiguration hard--- End Message ---
msg05396/pgp00000.pgp
Description: PGP signature
--- Begin Message ---I have problems to run the code of PHP in the server, it's based on Windows 2000 Professional Version, i'am using Foxserv Beta 3, the computer is Pentium II, RAM 64 MB, HD 4 GB.--- End Message ---
--- Begin Message ---Does anybody know the "trick" to upgrading GD lib from 1.8 to 2b and having PHP recognize the upgrade and using it on the install. I tried everything I could find on it, I'm beginning to think I'm the only person who has a hard time installing gd lib 2. HELP!!!!!!!!!!!!!!!!!!!!!!!!!! -dave ps - what i've tried 1. configure php with gd, pointing to its install ir. --with-gd=../gd-2.0.1/ 2. changed line in GD lib 2 Makefile... LIBS=libgd.a -lpng -lz -ljpeg -lfreetype -lm then typed 'make libgd.a', compiled successfully, then did part 1 from above. Nope. 3. Tried going into /usr/lib/ and deleted all libgd files referencing 1.8 and did step 2 again. 4. Said "screw it", waited a day and tried it all over again, just to make sure.--- End Message ---
--- Begin Message ---make sure you: rm config.cache On Tue, 9 Apr 2002, phpman wrote: > Does anybody know the "trick" to upgrading GD lib from 1.8 to 2b and having > PHP recognize the upgrade and using it on the install. I tried everything I > could find on it, I'm > beginning to think I'm the only person who has a hard time installing gd lib > 2. > HELP!!!!!!!!!!!!!!!!!!!!!!!!!! > > -dave > > ps - what i've tried > > 1. configure php with gd, pointing to its install > ir. --with-gd=../gd-2.0.1/ > > 2. changed line in GD lib 2 Makefile... > LIBS=libgd.a -lpng -lz -ljpeg -lfreetype -lm > then typed 'make libgd.a', compiled successfully, then did part 1 from > above. Nope. > > 3. Tried going into /usr/lib/ and deleted all libgd files referencing 1.8 > and did step 2 again. > > 4. Said "screw it", waited a day and tried it all over again, just to make > sure. > > > > -- > PHP Install Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >--- End Message ---
--- Begin Message ---Alright, if you mean the config.cache file in the install directory of GDlib2, it should be deleted. I go into php,apache and gd install dir's and rm -f -R * (with an extra rm -f -R .* in the php install dir) then re-untar them (cool word) just to make sure. dave ----- Original Message ----- From: "Rasmus Lerdorf" <[EMAIL PROTECTED]> To: "phpman" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, April 09, 2002 8:14 PM Subject: Re: [PHP-INST] GD 2 after GD 1.8? What the hell? > make sure you: rm config.cache > > On Tue, 9 Apr 2002, phpman wrote: > > > Does anybody know the "trick" to upgrading GD lib from 1.8 to 2b and having > > PHP recognize the upgrade and using it on the install. I tried everything I > > could find on it, I'm > > beginning to think I'm the only person who has a hard time installing gd lib > > 2. > > HELP!!!!!!!!!!!!!!!!!!!!!!!!!! > > > > -dave > > > > ps - what i've tried > > > > 1. configure php with gd, pointing to its install > > ir. --with-gd=../gd-2.0.1/ > > > > 2. changed line in GD lib 2 Makefile... > > LIBS=libgd.a -lpng -lz -ljpeg -lfreetype -lm > > then typed 'make libgd.a', compiled successfully, then did part 1 from > > above. Nope. > > > > 3. Tried going into /usr/lib/ and deleted all libgd files referencing 1.8 > > and did step 2 again. > > > > 4. Said "screw it", waited a day and tried it all over again, just to make > > sure. > > > > > > > > -- > > PHP Install Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > >--- End Message ---
--- Begin Message ---Dear friends, I'm running RedHat 7.2, Apache 1.3.24 and PHP4. However, after I follow each instruction in the INSTALL file, the Apache server still can't recognize the .php file, ( .html files are OK). The compiling process is all right except I can't: LoadModule php4_module libexec/libphp4.so in httpd.conf, seems that I can't find this file in my system. Any help is welcome. Regards, Yao--- End Message ---