CentOS Bug Tracker
CentOS Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001481CentOS-3centos-releasepublic2006-08-31 19:292014-01-10 18:50
Reporterhobbitten 
PrioritynormalSeveritycrashReproducibilityalways
StatusclosedResolutionopen 
PlatformOSOS Version
Product Version3.8 
Target VersionFixed in Version 
Summary0001481: httpd will not start after update due to php error
Description[root@video /]# /etc/rc.d/init.d/httpd restart
Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 6 of /etc/httpd/conf.d/php.conf:
Cannot load /etc/httpd/modules/libphp4.so into server: /lib/tls/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.5)
                                                           [FAILED]
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0003892)
Sav (reporter)
2006-09-02 13:23
edited on: 2006-09-02 13:24

For me, the error was due to an upgrade from PHP4 to PHP5. By doing the following change I was able to get the service up and running once again.

<Change to /etc/httpd/conf.d/php.conf>
Change:
LoadModule php4_module modules/libphp4.so
to:
#LoadModule php4_module modules/libphp4.so

and add the following ".inc .php5 .php4 .php3 .phtml" to the line "AddType application/x-httpd-php .php"
</Change>

Sav

(0004018)
tru (administrator)
2006-09-25 09:21

what version ?
rpm -q httpd php

show the relevant part of your /etc/httpd/conf.d/php.conf file (around line 6)
(0004021)
hobbitten (reporter)
2006-09-25 15:14

[root@video CVideo]# rpm -q httpd php
httpd-2.0.46-61.ent.centos3
php-4.3.2-36.ent

The change to php.conf did work ....
(0004023)
hobbitten (reporter)
2006-09-25 15:15

/etc/httpd/conf.d/php.conf

#
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#

#LoadModule php4_module modules/libphp4.so

AddType application/x-httpd-php .php .inc .php5 .php4 .php3 .phtml

#
# Cause the PHP interpreter handle files with a .php extension.
#
<Files *.php>
    SetOutputFilter PHP
    SetInputFilter PHP
    LimitRequestBody 524288
</Files>

#
# Add index.php to the list of files that will be served as directory
# indexes.
#
(0004027)
tru (administrator)
2006-09-25 20:17

I can't reproduce your problem:

[tru@carrington ~]$ service httpd status
httpd is stopped
[tru@carrington ~]$ rpm -q php httpd
php-4.3.2-33.ent.i386
httpd-2.0.46-61.ent.centos3.i386
[tru@carrington ~]$ sudo service httpd start
Starting httpd: [ OK ]

<upgrading php/yum while httpd running>
[tru@carrington ~]$ sudo yum -y update php
...
I will do the following:
[update: php 4.3.2-36.ent.i386]
Downloading Packages
Running test transaction:
Test transaction complete, Success!
php 100 % done 1/2
Completing update for php - 2/2
Updated: php 4.3.2-36.ent.i386
Transaction(s) Complete
[tru@carrington ~]$ rpm -q php httpd
php-4.3.2-36.ent.i386
httpd-2.0.46-61.ent.centos3.i386
[tru@carrington ~]$ service httpd status
httpd (pid 5086 5085 5084 5083 5082 5081 5080 5079 5076) is running...

[tru@carrington ~]$ sudo service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]

/etc/httpd/conf.d/php.conf has not been modified in any way

[tru@carrington ~]$ cat /etc/httpd/conf.d/php.conf
#
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#

LoadModule php4_module modules/libphp4.so

#
# Cause the PHP interpreter handle files with a .php extension.
#
<Files *.php>
    SetOutputFilter PHP
    SetInputFilter PHP
    LimitRequestBody 524288
</Files>

#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php
(0018835)
Evolution (administrator)
2014-01-10 18:50

Closing Due to Project EOL.

- Issue History
Date Modified Username Field Change
2006-08-31 19:29 hobbitten New Issue
2006-08-31 19:29 hobbitten Status new => assigned
2006-09-02 13:23 Sav Note Added: 0003892
2006-09-02 13:24 Sav Note Edited: 0003892
2006-09-02 13:24 Sav Note Edited: 0003892
2006-09-25 09:21 tru Note Added: 0004018
2006-09-25 09:21 tru Status assigned => feedback
2006-09-25 15:14 hobbitten Note Added: 0004021
2006-09-25 15:15 hobbitten Note Added: 0004023
2006-09-25 20:17 tru Note Added: 0004027
2014-01-10 18:50 Evolution Note Added: 0018835
2014-01-10 18:50 Evolution Status feedback => closed


Copyright © 2000 - 2014 MantisBT Team
Powered by Mantis Bugtracker