Re: [PHP] PHP 4.3.6
Martin, Stanley G [Contractor for Sprint] wrote: I recently updated my Apache to 1.3.31 and when it was finished, none of my PHP scripts are working correctly. They seem to stop in the middle of displaying a page. On some pages, my footer doesn't come up, it just quits before it gets there. I got on the PHP website to get the instructions for building PHP and followed them, but that didn't help. Here is the configure line I used for PHP: ./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs Now nothing works right. Anything in you Apache error logs? Do you have error reporting turned on in the php.ini? -- John C. Nichel KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP 4.3.6
I'm getting a segmentation fault in the Apache error log whenever I access a page the doesn't finish. Stanley G. Martin System Administrator Sprint - EAS Business Intelligence [EMAIL PROTECTED] -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: Thursday, May 20, 2004 11:45 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] PHP 4.3.6 Martin, Stanley G [Contractor for Sprint] wrote: I recently updated my Apache to 1.3.31 and when it was finished, none of my PHP scripts are working correctly. They seem to stop in the middle of displaying a page. On some pages, my footer doesn't come up, it just quits before it gets there. I got on the PHP website to get the instructions for building PHP and followed them, but that didn't help. Here is the configure line I used for PHP: ./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs Now nothing works right. Anything in you Apache error logs? Do you have error reporting turned on in the php.ini? -- John C. Nichel KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP 4.3.6
Martin, Stanley G [Contractor for Sprint] wrote: I'm getting a segmentation fault in the Apache error log whenever I access a page the doesn't finish. Dear Contractor for Sprint, What john meant was for you to share it (error message) with us. Martin, Stanley G [Contractor for Sprint] wrote: I recently updated my Apache to 1.3.31 and when it was finished, none of my PHP scripts are working correctly. They seem to stop in the middle of displaying a page. On some pages, my footer doesn't come up, it just quits before it gets there. I got on the PHP website to get the instructions for building PHP and followed them, but that didn't help. Here is the configure line I used for PHP: ./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs Now nothing works right. Anything in you Apache error logs? Do you have error reporting turned on in the php.ini? -- Raditha Dissanayake. - http://www.raditha.com/megaupload/upload.php Sneak past the PHP file upload limits. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP 4.3.6
OK. Here it is [Thu May 20 11:52:41 2004] [notice] child pid 19615 exit signal Segmentation fault (11) Stanley G. Martin System Administrator Sprint - EAS Business Intelligence [EMAIL PROTECTED] -Original Message- From: raditha dissanayake [mailto:[EMAIL PROTECTED] Sent: Thursday, May 20, 2004 12:01 PM Cc: [EMAIL PROTECTED] Subject: Re: [PHP] PHP 4.3.6 Martin, Stanley G [Contractor for Sprint] wrote: I'm getting a segmentation fault in the Apache error log whenever I access a page the doesn't finish. Dear Contractor for Sprint, What john meant was for you to share it (error message) with us. Martin, Stanley G [Contractor for Sprint] wrote: I recently updated my Apache to 1.3.31 and when it was finished, none of my PHP scripts are working correctly. They seem to stop in the middle of displaying a page. On some pages, my footer doesn't come up, it just quits before it gets there. I got on the PHP website to get the instructions for building PHP and followed them, but that didn't help. Here is the configure line I used for PHP: ./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs Now nothing works right. Anything in you Apache error logs? Do you have error reporting turned on in the php.ini? -- Raditha Dissanayake. - http://www.raditha.com/megaupload/upload.php Sneak past the PHP file upload limits. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP 4.3.6
Martin, Stanley G [Contractor for Sprint] wrote: OK. Here it is [Thu May 20 11:52:41 2004] [notice] child pid 19615 exit signal Segmentation fault (11) Was php4.3.6 compiled with the same options as your previous version? Just a guess here, but your scripts may be calling a function that existed in your old version, but isn't in your new version. This would usually just throw an error, but stranger things have happened. If this is on *nix, you could strace Apache. -- John C. Nichel KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP 4.3.6
When I ran configure for PHP I tried to use the --with-apache and pointed it to /usr/local/apache but it told me it couldn't find httpd.h anywhere under there and it is there (/usr/local/apache/include/httpd.h). So, I ran it with --with-apxs=/usr/local/apache/bin/apxs. It creates the file libphp4.so and I'm loading it in Apache (which I didn't have to change because it was there before). I did notice before the changes that when I executed httpd -l to list loaded modules, PHP was listed and it's not now. I didn't have mod_so loaded before, but I loaded it this time. Stanley G. Martin System Administrator Sprint - EAS Business Intelligence 913.762.8667 913.221.8241 PCS [EMAIL PROTECTED] -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: Thursday, May 20, 2004 1:05 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] PHP 4.3.6 Martin, Stanley G [Contractor for Sprint] wrote: OK. Here it is [Thu May 20 11:52:41 2004] [notice] child pid 19615 exit signal Segmentation fault (11) Was php4.3.6 compiled with the same options as your previous version? Just a guess here, but your scripts may be calling a function that existed in your old version, but isn't in your new version. This would usually just throw an error, but stranger things have happened. If this is on *nix, you could strace Apache. -- John C. Nichel KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP 4.3.6
Martin, Stanley G [Contractor for Sprint] wrote: When I ran configure for PHP I tried to use the --with-apache and pointed it to /usr/local/apache but it told me it couldn't find httpd.h anywhere under there and it is there (/usr/local/apache/include/httpd.h). So, I ran it with --with-apxs=/usr/local/apache/bin/apxs. It creates the file libphp4.so and I'm loading it in Apache (which I didn't have to change because it was there before). I did notice before the changes that when I executed httpd -l to list loaded modules, PHP was listed and it's not now. I didn't have mod_so loaded before, but I loaded it this time. Was Apache configured with apxs? I don't think you can load mod_so if it wasn't configured with it. -- John C. Nichel KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP 4.3.6
Yes. I used --enable-module=so. Stanley G. Martin System Administrator Sprint - EAS Business Intelligence 913.762.8667 913.221.8241 PCS [EMAIL PROTECTED] -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: Thursday, May 20, 2004 1:21 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] PHP 4.3.6 Martin, Stanley G [Contractor for Sprint] wrote: When I ran configure for PHP I tried to use the --with-apache and pointed it to /usr/local/apache but it told me it couldn't find httpd.h anywhere under there and it is there (/usr/local/apache/include/httpd.h). So, I ran it with --with-apxs=/usr/local/apache/bin/apxs. It creates the file libphp4.so and I'm loading it in Apache (which I didn't have to change because it was there before). I did notice before the changes that when I executed httpd -l to list loaded modules, PHP was listed and it's not now. I didn't have mod_so loaded before, but I loaded it this time. Was Apache configured with apxs? I don't think you can load mod_so if it wasn't configured with it. -- John C. Nichel KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP 4.3.6
Martin, Stanley G [Contractor for Sprint] wrote: -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: Thursday, May 20, 2004 1:21 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] PHP 4.3.6 Martin, Stanley G [Contractor for Sprint] wrote: When I ran configure for PHP I tried to use the --with-apache and pointed it to /usr/local/apache but it told me it couldn't find httpd.h anywhere under there and it is there (/usr/local/apache/include/httpd.h). So, I ran it with --with-apxs=/usr/local/apache/bin/apxs. It creates the file This is a guess... did you run a make clean between your first and second configure attempts? -- Aaron Gould Parts Canada - Web Developer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP 4.3.6
I went back to PHP 4.3.1. I still had the src directory from when I installed it. When I configured PHP 4.3.6 like this: ./configure --with-apache=/app_source/Apache/apache_1.3.31 --with-mysql it's supposed to create libmodphp4.a library in /app_source/Apache/apache_1.3.31/src/modules/php4, but it didn't. I went to my old installation of Apache 1.3.27 and found the files there that were generated when I installed PHP 4.3.1, so I copied those to my Apache 1.3.31 source tree and recompiled Apache using : ./configure --activate-module=src/modules/php4/libphp4.a --enable-module=so I have everything back to normal now, but was wondering if this is a bug in the 4.3.6 installation where it doesn't create the needed library files. Stanley G. Martin System Administrator Sprint - EAS Business Intelligence [EMAIL PROTECTED] -Original Message- From: Aaron Gould [mailto:[EMAIL PROTECTED] Sent: Thursday, May 20, 2004 1:46 PM To: Martin, Stanley G [Contractor for Sprint] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] PHP 4.3.6 Martin, Stanley G [Contractor for Sprint] wrote: -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: Thursday, May 20, 2004 1:21 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] PHP 4.3.6 Martin, Stanley G [Contractor for Sprint] wrote: When I ran configure for PHP I tried to use the --with-apache and pointed it to /usr/local/apache but it told me it couldn't find httpd.h anywhere under there and it is there (/usr/local/apache/include/httpd.h). So, I ran it with --with-apxs=/usr/local/apache/bin/apxs. It creates the file This is a guess... did you run a make clean between your first and second configure attempts? -- Aaron Gould Parts Canada - Web Developer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [PHP 4.3.6] Compiling agaisnt MySQL 4.0.18 on Redhat 8
* Thus wrote Aaron Axelsen ([EMAIL PROTECTED]): Greetings, I compiled and installed mysql from source, and now I am trying to recompile php agaisnt the new version of MySQL (was previous running 3.23.53). Here is the configure string I used: ./configure --with-apxs2=/usr/local/apache/bin/apxs --prefix=/usr/local/php --with-mysql=/usr/local/mysql --with-pgsql=/usr/local/pgsql --with-gettext ... ext/mysql/php_mysql.lo: In function `zif_mysql_create_db': /home/aaron/php-4.3.6/ext/mysql/php_mysql.c:1158: undefined reference to `mysql_create_db' That sound like php used a 3.x mysql_version.h file to include but is trying to link against the real 4.x mysqlclient.so (since 4.x does not have mysql_create_db). At what prefix was mysql 3.x installed? /usr or /usr/local? Couple quick commands to find your mysql files locate mysql.h locate mysql_version.h find / find / -type f -name mysql*.h #last resort Curt -- I used to think I was indecisive, but now I'm not so sure. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] [PHP 4.3.6] Compiling agaisnt MySQL 4.0.18 on Redhat 8
The mysql 3.x was installed with prefix /usr/local/mysql -- Aaron Axelsen Email: [EMAIL PROTECTED] -Original Message- From: Curt Zirzow [mailto:[EMAIL PROTECTED] Sent: Thursday, May 20, 2004 7:08 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] [PHP 4.3.6] Compiling agaisnt MySQL 4.0.18 on Redhat 8 * Thus wrote Aaron Axelsen ([EMAIL PROTECTED]): Greetings, I compiled and installed mysql from source, and now I am trying to recompile php agaisnt the new version of MySQL (was previous running 3.23.53). Here is the configure string I used: ./configure --with-apxs2=/usr/local/apache/bin/apxs --prefix=/usr/local/php --with-mysql=/usr/local/mysql --with-pgsql=/usr/local/pgsql --with-gettext ... ext/mysql/php_mysql.lo: In function `zif_mysql_create_db': /home/aaron/php-4.3.6/ext/mysql/php_mysql.c:1158: undefined reference to `mysql_create_db' That sound like php used a 3.x mysql_version.h file to include but is trying to link against the real 4.x mysqlclient.so (since 4.x does not have mysql_create_db). At what prefix was mysql 3.x installed? /usr or /usr/local? Couple quick commands to find your mysql files locate mysql.h locate mysql_version.h find / find / -type f -name mysql*.h #last resort Curt -- I used to think I was indecisive, but now I'm not so sure. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [PHP 4.3.6] Compiling agaisnt MySQL 4.0.18 on Redhat 8
Aaron Axelsen wrote: The mysql 3.x was installed with prefix /usr/local/mysql So why are you pointing to the 3.x path when compiling with 4.x? And since you are going through all this trouble might as well use a very recent version of mysql -- Aaron Axelsen Email: [EMAIL PROTECTED] Greetings, I compiled and installed mysql from source, and now I am trying to recompile php agaisnt the new version of MySQL (was previous running 3.23.53). Here is the configure string I used: ./configure --with-apxs2=/usr/local/apache/bin/apxs --prefix=/usr/local/php --with-mysql=/usr/local/mysql --with-pgsql=/usr/local/pgsql --with-gettext ... ext/mysql/php_mysql.lo: In function `zif_mysql_create_db': /home/aaron/php-4.3.6/ext/mysql/php_mysql.c:1158: undefined reference to `mysql_create_db' That sound like php used a 3.x mysql_version.h file to include but is trying to link against the real 4.x mysqlclient.so (since 4.x does not have mysql_create_db). At what prefix was mysql 3.x installed? /usr or /usr/local? Couple quick commands to find your mysql files locate mysql.h locate mysql_version.h find / find / -type f -name mysql*.h #last resort Curt -- I used to think I was indecisive, but now I'm not so sure. -- Raditha Dissanayake. - http://www.raditha.com/megaupload/upload.php Sneak past the PHP file upload limits. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] [PHP 4.3.6] Compiling agaisnt MySQL 4.0.18 on Redhat 8
I was trying to upgrade over the older one, which is why the paths are the same. I want to stick with the stable realease -- Aaron Axelsen Email: [EMAIL PROTECTED] -Original Message- From: raditha dissanayake [mailto:[EMAIL PROTECTED] Sent: Thursday, May 20, 2004 7:47 PM Cc: [EMAIL PROTECTED] Subject: Re: [PHP] [PHP 4.3.6] Compiling agaisnt MySQL 4.0.18 on Redhat 8 Aaron Axelsen wrote: The mysql 3.x was installed with prefix /usr/local/mysql So why are you pointing to the 3.x path when compiling with 4.x? And since you are going through all this trouble might as well use a very recent version of mysql -- Aaron Axelsen Email: [EMAIL PROTECTED] Greetings, I compiled and installed mysql from source, and now I am trying to recompile php agaisnt the new version of MySQL (was previous running 3.23.53). Here is the configure string I used: ./configure --with-apxs2=/usr/local/apache/bin/apxs --prefix=/usr/local/php --with-mysql=/usr/local/mysql --with-pgsql=/usr/local/pgsql --with-gettext ... ext/mysql/php_mysql.lo: In function `zif_mysql_create_db': /home/aaron/php-4.3.6/ext/mysql/php_mysql.c:1158: undefined reference to `mysql_create_db' That sound like php used a 3.x mysql_version.h file to include but is trying to link against the real 4.x mysqlclient.so (since 4.x does not have mysql_create_db). At what prefix was mysql 3.x installed? /usr or /usr/local? Couple quick commands to find your mysql files locate mysql.h locate mysql_version.h find / find / -type f -name mysql*.h #last resort Curt -- I used to think I was indecisive, but now I'm not so sure. -- Raditha Dissanayake. - http://www.raditha.com/megaupload/upload.php Sneak past the PHP file upload limits. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [PHP 4.3.6] Compiling agaisnt MySQL 4.0.18 on Redhat 8
Aaron Axelsen wrote: I was trying to upgrade over the older one, which is why the paths are the same. I want to stick with the stable realease 4.0.18 is stable. Generally you should not install a new version of a software over the older tree, it leads to many a conflict as you have just found ;-) -- Aaron Axelsen Email: [EMAIL PROTECTED] -Original Message- From: raditha dissanayake [mailto:[EMAIL PROTECTED] Sent: Thursday, May 20, 2004 7:47 PM Cc: [EMAIL PROTECTED] Subject: Re: [PHP] [PHP 4.3.6] Compiling agaisnt MySQL 4.0.18 on Redhat 8 Aaron Axelsen wrote: The mysql 3.x was installed with prefix /usr/local/mysql So why are you pointing to the 3.x path when compiling with 4.x? And since you are going through all this trouble might as well use a very recent version of mysql -- Aaron Axelsen -- Raditha Dissanayake. - http://www.raditha.com/megaupload/upload.php Sneak past the PHP file upload limits. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [PHP 4.3.6] Compiling agaisnt MySQL 4.0.18 on Redhat 8
* Thus wrote Aaron Axelsen ([EMAIL PROTECTED]): I was trying to upgrade over the older one, which is why the paths are the same. I want to stick with the stable realease Overwritting versions like that might not work very well, file names have changed accross the versions. I usually update my server with something like: cd /usr/local mv mysql mysql.3.x cd /source/mysql.4.x make install cd /usr/local mv mysql.3.x/var/* mysql/data/var/ Curt -- I used to think I was indecisive, but now I'm not so sure. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php