|
|
|
|
||||||
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 (permalink) |
|
Messages: n/a
Hébergeur: |
Dear all,
I hope you can me. I am running FreeBSD 6.2 and I decided to upgrade from php 4.4.7_1 to php5-5.2.3_1. However, after removing php4 and installing php5 and php5-extensions I am unable to start apache. php -v: PHP 5.2.3 with Suhosin-Patch 0.9.6.2 (cli) (built: Sep 12 2007 08:59:52) Copyright (c) 1997-2007 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies Segmentation fault (core dumped) pkg_info | grep php5 php5-5.2.3_1 PHP Scripting Language (Apache Module and CLI) php5-bcmath-5.2.3_1 The bcmath shared extension for php php5-bz2-5.2.3_1 The bz2 shared extension for php php5-calendar-5.2.3_1 The calendar shared extension for php php5-ctype-5.2.3_1 The ctype shared extension for php php5-curl-5.2.3_1 The curl shared extension for php php5-dbase-5.2.3_1 The dbase shared extension for php php5-dom-5.2.3_1 The dom shared extension for php php5-exif-5.2.3_1 The exif shared extension for php php5-extensions-1.1 A "meta-port" to install PHP extensions php5-ftp-5.2.3_1 The ftp shared extension for php php5-gd-5.2.3_1 The gd shared extension for php php5-gettext-5.2.3_1 The gettext shared extension for php php5-gmp-5.2.3_1 The gmp shared extension for php php5-iconv-5.2.3_1 The iconv shared extension for php php5-imap-5.2.3_1 The imap shared extension for php php5-mbstring-5.2.3_1 The mbstring shared extension for php php5-mcrypt-5.2.3_1 The mcrypt shared extension for php php5-mhash-5.2.3_1 The mhash shared extension for php php5-mysql-5.2.3_1 The mysql shared extension for php php5-mysqli-5.2.3_1 The mysqli shared extension for php php5-openssl-5.2.3_1 The openssl shared extension for php php5-pcre-5.2.3_1 The pcre shared extension for php php5-pdo-5.2.3_1 The pdo shared extension for php php5-pdo_sqlite-5.2.3_1 The pdo_sqlite shared extension for php php5-posix-5.2.3_3 The posix shared extension for php php5-pspell-5.2.3_1 The pspell shared extension for php php5-session-5.2.3_1 The session shared extension for php php5-simplexml-5.2.3_1 The simplexml shared extension for php php5-soap-5.2.3_1 The soap shared extension for php php5-sockets-5.2.3_1 The sockets shared extension for php php5-spl-5.2.3_1 The spl shared extension for php php5-sqlite-5.2.3_1 The sqlite shared extension for php php5-tokenizer-5.2.3_1 The tokenizer shared extension for php php5-xml-5.2.3_1 The xml shared extension for php php5-xmlreader-5.2.3_1 The xmlreader shared extension for php php5-xmlrpc-5.2.3_1 The xmlrpc shared extension for php php5-xmlwriter-5.2.3_1 The xmlwriter shared extension for php php5-zlib-5.2.3_1 The zlib shared extension for php httpd -v Server version: Apache/1.3.39 (Unix) Server built: Sep 11 2007 20:48:37 Many thanks for your ! Zbigniew Szalbot |
|
|
|
#2 (permalink) |
|
Messages: n/a
Hébergeur: |
> Dear all, > > I hope you can me. I am running FreeBSD 6.2 and I decided to > upgrade from php 4.4.7_1 to php5-5.2.3_1. However, after removing php4 > and installing php5 and php5-extensions I am unable to start apache. What do the Apache error logs say? Edward |
|
|
|
#3 (permalink) |
|
Messages: n/a
Hébergeur: |
Hello,
2007/9/12, Edward Kay <edward@labhut.com>: > > > Dear all, > > > > I hope you can me. I am running FreeBSD 6.2 and I decided to > > upgrade from php 4.4.7_1 to php5-5.2.3_1. However, after removing php4 > > and installing php5 and php5-extensions I am unable to start apache. > > What do the Apache error logs say? Nothing that would be of : httpd-error.log [Wed Sep 12 09:04:17 2007] [notice] mod_security/1.9.4 configured A new such line is added when I try to start apache. Apache does not start even when I use non-ssl option (apachectl start). messages: Sep 12 12:04:44 szalbot kernel: pid 26602 (httpd), uid 0: exited on signal 11 (core dumped) Many thanks! |
|
|
|
#4 (permalink) |
|
Messages: n/a
Hébergeur: |
Zbigniew Szalbot wrote:
> Hello, > > 2007/9/12, Edward Kay <edward@labhut.com>: >> >> What do the Apache error logs say? > > Nothing that would be of : > > httpd-error.log > [Wed Sep 12 09:04:17 2007] [notice] mod_security/1.9.4 configured > > A new such line is added when I try to start apache. Apache does not > start even when I use non-ssl option (apachectl start). > > messages: > Sep 12 12:04:44 szalbot kernel: pid 26602 (httpd), uid 0: exited on > signal 11 (core dumped) Migrating from v4 to v5 is not necessarily straight forward. Depending on what features you've used, you may have to rewrite some of your code. For instance, we used the xslt sablotron interface, which no longer exists in php5. Had to rewrite, which as it turns out was not too much effort, but I'm sure there are other more complex examples. /Per Jessen, Zürich |
|
|
|
#5 (permalink) |
|
Messages: n/a
Hébergeur: |
Hi there,
2007/9/12, Per Jessen <per@computer.org>: > Zbigniew Szalbot wrote: > > > Hello, > > > > 2007/9/12, Edward Kay <edward@labhut.com>: > >> > >> What do the Apache error logs say? > > > > Nothing that would be of : > > > > httpd-error.log > > [Wed Sep 12 09:04:17 2007] [notice] mod_security/1.9.4 configured > > > > A new such line is added when I try to start apache. Apache does not > > start even when I use non-ssl option (apachectl start). > > > > messages: > > Sep 12 12:04:44 szalbot kernel: pid 26602 (httpd), uid 0: exited on > > signal 11 (core dumped) > > Migrating from v4 to v5 is not necessarily straight forward. > Depending on what features you've used, you may have to rewrite some of > your code. For instance, we used the xslt sablotron interface, which > no longer exists in php5. Had to rewrite, which as it turns out was > not too much effort, but I'm sure there are other more complex > examples. No, basically I just use wordpress on this site and that's all. No fancy or advanced scripting, etc. It is family machine for family issues. I can try and go back to v4 but I do think v5 should work just as fine. At least I hope so. Thank you! |
|
|
|
#6 (permalink) |
|
Messages: n/a
Hébergeur: |
Zbigniew Szalbot wrote:
> No, basically I just use wordpress on this site and that's all. No > fancy or advanced scripting, etc. It is family machine for family > issues. I can try and go back to v4 but I do think v5 should work just > as fine. At least I hope so. Hi Zbigniew Maybe it's worth doing some googling for wordpress and php5? If it's not your code, it's not easy to debug. I have seen the apache core dump many times, sometimes caused by obvious errors, other times by something obscure and difficult to find. /Per Jessen, Zürich |
|
|
|
#7 (permalink) |
|
Messages: n/a
Hébergeur: |
Zbigniew Szalbot wrote:
> Hi there, > > No, basically I just use wordpress on this site and that's all. No > fancy or advanced scripting, etc. It is family machine for family > issues. I can try and go back to v4 but I do think v5 should work just > as fine. At least I hope so. Does phpinfo work? What does it say? Also, when you have problems like this, he best to do is put error reporting to E_ALL and display_errors=on. -- 21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37, 0.18 --------------------------------------------------------- Lic. Martín Marqués | SELECT 'mmarques' || Centro de Telemática | '@' || 'unl.edu.ar'; Universidad Nacional | DBA, Programador, del Litoral | Administrador --------------------------------------------------------- |
|
|
|
#8 (permalink) |
|
Messages: n/a
Hébergeur: |
Per Jessen wrote:
> Zbigniew Szalbot wrote: > >> No, basically I just use wordpress on this site and that's all. No >> fancy or advanced scripting, etc. It is family machine for family >> issues. I can try and go back to v4 but I do think v5 should work just >> as fine. At least I hope so. > > Hi Zbigniew > > Maybe it's worth doing some googling for wordpress and php5? If it's > not your code, it's not easy to debug. I have seen the apache core > dump many times, sometimes caused by obvious errors, other times by > something obscure and difficult to find. Come on guys, use your heads. PHP is segfaulting when trying to display its version number - that's not going to have anything to do with Wordpress. To the OP: This probably means you've got a rogue extension in the mix. Edit /usr/local/etc/php/extensions.ini and put a # in front of every line. Try php -v again. If it works then you need to uncomment (remove the #) each line in that file one by one checking php -v each time until you find the one that's a problem. If it's an extension you need I suggest you uninstall and rebuild it. If not then just leave it commented and move on to the next. If php -v still segfaults with all the extensions disabled then you need to uninstall PHP and all the extensions completely and start again because something obviously went wrong when you built them. -Stut -- http://stut.net/ |
|
![]() |
| Outils de la discussion | |
|
|