LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-20-2012, 02:15 AM   #1
redhat19
Member
 
Registered: Jan 2012
Posts: 45

Rep: Reputation: Disabled
Error running phpize: Cannot find config.m4


Greetings all,

I have CentOS 6.2 (upgraded to 6.3) installed on our server.
I have LAMP running on it too.
The installed PHP Version 5.4.6
The installed Apache version is: 2.2.15

I am currently trying to get json installed but running into problems running phpize

Here's what I have done so far:
Code:
[root@myserver1 tmp]# pecl install json
downloading json-1.2.1.tgz ...
Starting to download json-1.2.1.tgz (17,780 bytes)
......done: 17,780 bytes
11 source files, building
running: phpize
Cannot find config.m4.
Make sure that you run '/usr/bin/phpize' in the top level source directory of the module

ERROR: `phpize' failed

When I do: "yum install m4",I get
"Package m4-1.4.13-5.el6.i686 already installed and latest version
Nothing to do"

The following commands return nothing:
1#. yum search php | grep json
2#. cd / find -name 'config.m4'

Yet, "yum install m4" gives me
"Package m4-1.4.13-5.el6.i686 already installed and latest version
Nothing to do"

Echo $PATH gives me
Code:
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
phpize is actually in usr/bin. While trying to troubleshoot, I have also copied it (phpize) into /usr/local/bin but with no success.

This command "php -v" gives me
Code:
PHP:  syntax error, unexpected BOOL_FALSE in /etc/php.ini on line 1001
PHP 5.4.6 (cli) (built: Aug 16 2012 14:26:44)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
I would appreciate any help I can get in solving this issue. Google has not offered much help.

Thanks.
 
Old 08-20-2012, 02:45 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

It should be already installed. To verify run
Code:
php -i|grep -i json
Regards
 
Old 08-20-2012, 02:55 AM   #3
redhat19
Member
 
Registered: Jan 2012
Posts: 45

Original Poster
Rep: Reputation: Disabled
Thanks a lot @bathory
You are right

When I did
[root@myserver1 /]# php -i|grep -i json
I got
Code:
PHP:  syntax error, unexpected BOOL_FALSE in /etc/php.ini on line 1001
Configure Command =>  './configure'  '--build=i686-pc-linux-gnu' '--host=i686-pc-linux-gnu' '--target=i686-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--without-pear' '--with-bz2' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--enable-gd-native-ttf' '--with-t1lib=/usr' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--with-kerberos' '--enable-ucd-snmp-hack' '--enable-shmop' '--enable-calendar' '--with-libxml-dir=/usr' '--enable-xml' '--with-system-tzdata' '--with-mhash' '--enable-force-cgi-redirect' '--libdir=/usr/lib/php' '--enable-pcntl' '--with-imap=shared' '--with-imap-ssl' '--enable-mbstring=shared' '--enable-mbregex' '--with-gd=shared' '--enable-bcmath=shared' '--enable-dba=shared' '--with-db4=/usr' '--with-xmlrpc=shared' '--with-ldap=shared' '--with-ldap-sasl' '--enable-mysqlnd=shared' '--with-mysql=shared,mysqlnd' '--with-mysqli=shared,mysqlnd' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-oci8=shared,instantclient,/usr/lib/oracle/11.2/client/lib,11.2' '--with-pdo-oci=shared,instantclient,/usr,11.2' '--with-interbase=shared,/usr/lib/firebird' '--with-pdo-firebird=shared,/usr/lib/firebird' '--enable-dom=shared' '--with-pgsql=shared' '--enable-wddx=shared' '--with-snmp=shared,/usr' '--enable-soap=shared' '--with-xsl=shared,/usr' '--enable-xmlreader=shared' '--enable-xmlwriter=shared' '--with-curl=shared,/usr' '--enable-fastcgi' '--enable-pdo=shared' '--with-pdo-odbc=shared,unixODBC,/usr' '--with-pdo-mysql=shared,mysqlnd' '--with-pdo-pgsql=shared,/usr' '--with-pdo-sqlite=shared,/usr' '--with-pdo-dblib=shared,/usr' '--with-sqlite3=shared,/usr' '--enable-json=shared' '--enable-zip=shared' '--without-readline' '--with-libedit' '--with-pspell=shared' '--enable-phar=shared' '--with-mcrypt=shared,/usr' '--with-tidy=shared,/usr' '--with-mssql=shared,/usr' '--enable-sysvmsg=shared' '--enable-sysvshm=shared' '--enable-sysvsem=shared' '--enable-posix=shared' '--with-unixODBC=shared,/usr' '--enable-fileinfo=shared' '--enable-intl=shared' '--with-icu-dir=/usr' '--with-enchant=shared,/usr' '--with-recode=shared,/usr'
/etc/php.d/json.ini,
json
json support => enabled
json version => 1.2.1
But the reason I am trying to install it is because in my phpinfo file displays:

Code:
Configure Command :  './configure' '--build=i686-pc-linux-gnu' '--host=i686-pc-linux-gnu' '--target=i686-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--without-pear' '--with-bz2' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--enable-gd-native-ttf' '--with-t1lib=/usr' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--with-kerberos' '--enable-ucd-snmp-hack' '--enable-shmop' '--enable-calendar' '--with-libxml-dir=/usr' '--enable-xml' '--with-system-tzdata' '--with-mhash' '--with-apxs2=/usr/sbin/apxs' '--libdir=/usr/lib/php' '--enable-pdo=shared' '--with-mysql=shared,/usr' '--with-mysqli=shared,/usr/lib/mysql/mysql_config' '--with-pdo-mysql=shared,/usr/lib/mysql/mysql_config' '--with-pdo-sqlite=shared,/usr' '--without-gd' '--disable-dom' '--disable-dba' '--without-unixODBC' '--disable-xmlreader' '--disable-xmlwriter' '--without-sqlite3' '--disable-phar' '--disable-fileinfo' '--disable-json' '--without-pspell' '--disable-wddx' '--without-curl' '--disable-posix' '--disable-sysvmsg' '--disable-sysvshm' '--disable-sysvsem'
i.e json is disabled

Also,
I also have in phpinfo:
Code:
json support	enabled
json version	1.2.1
php files are not being parsed properly on our server.
 
Old 08-20-2012, 03:32 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi again,

json is compiled-in by default for php-5.2.20 and above.
I see that you've disabled it in your 1st ./configured options, but the output of "php -i" shows it's enabled. The phpinfo ./configure line also says that you've enabled json as a shared module (--enable-json=shared). In this case you might need to add in php.ini
Code:
extension=json.so
if it's not already there.
Anyway from the 2 different ./configure options posted, looks like the 1st one is for php installed as a fast-cgi, while the 2nd is for php installed as an apache DSO. Dunno which one you use, so check httpd.conf. I guess your're using the DSO, that's why phpinfo shows json enabled.


BTW
Quote:
PHP: syntax error, unexpected BOOL_FALSE in /etc/php.ini on line 1001
Go to line 1001 and correct the error there.

Regards
 
1 members found this post helpful.
Old 08-20-2012, 06:32 AM   #5
redhat19
Member
 
Registered: Jan 2012
Posts: 45

Original Poster
Rep: Reputation: Disabled
Thanks a lot @bathory
I have added "extension=json.so"
but, I am unable to figure out the BOOL-FALSE error.

[root@myserver1]# php -i | grep 'json support'
PHP: syntax error, unexpected BOOL_FALSE in /etc/php.ini on line 1002
json support => enabled
[root@myserver1]#

Here's the portion of php.ini being referred to:
Code:
1001	[Pdo]
1002	; Whether to pool ODBC connections. Can be one of "strict", "relaxed" or "off"
1003	; http://www.php.net/manual/en/ref.pdo-odbc.php#ini.pdo-odbc.connection-pooling
1004	;pdo_odbc.connection_pooling=strict
1005
1006 	[Phar]
1007	; http://www.php.net/manual/en/phar.configuration.php#ini.phar.readonly
1008	;phar.readonly = On
1009
1002 is a commented line, don't see why it should cause an error.

Last edited by redhat19; 08-20-2012 at 06:35 AM.
 
Old 08-20-2012, 07:56 AM   #6
redhat19
Member
 
Registered: Jan 2012
Posts: 45

Original Poster
Rep: Reputation: Disabled
I have been able to fix the error..

The error was from the precedding line

936 extension=apc.so
937 extension=oauth.so"
938 extension=json.so

I removed the " on line 937 and the error disappeared
 
Old 08-21-2012, 01:15 AM   #7
redhat19
Member
 
Registered: Jan 2012
Posts: 45

Original Poster
Rep: Reputation: Disabled
I would still appreciate some help as the server setup still does not parse PHP files correctly.

Here's what I get when I try to view a PHP based website:

"Server error
The website encountered an error while retrieving http://mywebsite.com/. It may be down for maintenance or configured incorrectly.
Here are some suggestions:
Reload this webpage later.
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request."

Thanks
 
Old 08-21-2012, 02:25 AM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

Since you're getting a 500 error, take a look at apache error_log to see if you find the reason.

Regards
 
Old 08-21-2012, 11:16 AM   #9
redhat19
Member
 
Registered: Jan 2012
Posts: 45

Original Poster
Rep: Reputation: Disabled
Thanks @bathory

I am trying to make sense of the php and apache log files..


/var/log/httpd/error_log

Code:
...
....
.....
b720c000-b720d000 rw-p 00007000 ca:00 200922     /usr/lib/httpd/modules/mod_auth_digest.so
b720d000-b720f000 rw-p 00000000 00:00 0 
b720f000-b7258000 r-xp 00000000 ca:00 34357      /lib/libfreebl3.so
b7258000-b7259000 r--p 00048000 ca:00 34357      /lib/libfreebl3.so
b7259000-b725a000 rw-p 00049000 ca:00 34357      /lib/libfreebl3.so
b725a000-b725e000 rw-p 00000000 00:00 0 
b725e000-b7262000 r-xp 00000000 ca:00 34062      /lib/libuuid.so.1.3.0
b7262000-b7263000 rw-p 00003000 ca:00 34062      /lib/libuuid.so.1.3.0
b7263000-b7266000 r-xp 00000000 ca:00 34351      /lib/libdl-2.12.so
b7266000-b7267000 r--p 00002000 ca:00 34351      /lib/libdl-2.12.so
b7267000-b7268000 rw-p 00003000 ca:00 34351      /lib/libdl-2.12.so
b7268000-b73f8000 r-xp 00000000 ca:00 34348      /lib/i686/nosegneg/libc-2.12.so
b73f8000-b73fa000 r--p 00190000 ca:00 34348      /lib/i686/nosegneg/libc-2.12.so
b73fa000-b73fb000 rw-p 00192000 ca:00 34348      /lib/i686/nosegneg/libc-2.12.so
b73fb000-b73fe000 rw-p 00000000 00:00 0 
b73fe000-b7415000 r-xp 00000000 ca:00 34349      /lib/i686/nosegneg/libpthread-2.12.so
b7415000-b7416000 r--p 00016000 ca:00 34349      /lib/i686/nosegneg/libpthread-2.12.so
b7416000-b7417000 rw-p 00017000 ca:00 34349      /lib/i686/nosegneg/libpthread-2.12.so
b7417000-b741a000 rw-p 00000000 00:00 0 
b741a000-b7447000 r-xp 00000000 ca:00 49674      /usr/lib/libapr-1.so.0.3.9
b7447000-b7448000 rw-p 0002c000 ca:00 49674      /usr/lib/libapr-1.so.0.3.9
b7448000-b75bb000 r-xp 00000000 ca:00 34117      /lib/libdb-4.7.so
b75bb000-b75be000 rw-p 00172000 ca:00 34117      /lib/libdb-4.7.so
b75be000-b75e4000 r-xp 00000000 ca:00 34355      /lib/libexpat.so.1.5.2
b75e4000-b75e6000 rw-p 00025000 ca:00 34355      /lib/libexpat.so.1.5.2
b75e6000-b75ed000 r-xp 00000000 ca:00 34358      /lib/libcrypt-2.12.so
b75ed000-b75ee000 r--p 00007000 ca:00 34358      /lib/libcrypt-2.12.so
b75ee000-b75ef000 rw-p 00008000 ca:00 34358      /lib/libcrypt-2.12.so
b75ef000-b7616000 rw-p 00000000 00:00 0 
b7616000-b7638000 r-xp 00000000 ca:00 49763      /usr/lib/libaprutil-1.so.0.3.9
b7638000-b7639000 rw-p 00022000 ca:00 49763      /usr/lib/libaprutil-1.so.0.3.9
b7639000-b763a000 rw-p 00000000 00:00 0 
b763a000-b7657000 r-xp 00000000 ca:00 34362      /lib/libselinux.so.1
b7657000-b7658000 r--p 0001c000 ca:00 34362      /lib/libselinux.so.1
b7658000-b7659000 rw-p 0001d000 ca:00 34362      /lib/libselinux.so.1
b7659000-b7688000 r-xp 00000000 ca:00 34029      /lib/libpcre.so.0.0.1
b7688000-b7689000 rw-p 0002e000 ca:00 34029      /lib/libpcre.so.0.0.1
b7689000-b76b1000 r-xp 00000000 ca:00 34354      /lib/libm-2.12.so
b76b1000-b76b2000 r--p 00027000 ca:00 34354      /lib/libm-2.12.so
b76b2000-b76b3000 rw-p 00028000 ca:00 34354      /lib/libm-2.12.so
b76b3000-b76b4000 r-xp 00000000 ca:00 200948     /usr/lib/httpd/modules/mod_env.so
b76b4000-b76b5000 r--p 00000000 ca:00 200948     /usr/lib/httpd/modules/mod_env.so
b76b5000-b76b6000 rw-p 00001000 ca:00 200948     /usr/lib/httpd/modules/mod_env.so
b76b6000-b76b8000 r-xp 00000000 ca:00 200921     /usr/lib/httpd/modules/mod_auth_basic.so
b76b8000-b76b9000 r--p 00001000 ca:00 200921     /usr/lib/httpd/modules/mod_auth_basic.so
b76b9000-b76ba000 rw-p 00002000 ca:00 200921     /usr/lib/httpd/modules/mod_auth_basic.so
b76ba000-b76bb000 rw-p 00000000 00:00 0 
b76bb000-b76d9000 r-xp 00000000 ca:00 33869      /lib/ld-2.12.so
b76d9000-b76da000 r--p 0001d000 ca:00 33869      /lib/ld-2.12.so
b76da000-b76db000 rw-p 0001e000 ca:00 33869      /lib/ld-2.12.so
b76db000-b772d000 r-xp 00000000 ca:00 50480      /usr/sbin/httpd
b772d000-b772f000 rw-p 00051000 ca:00 50480      /usr/sbin/httpd
b772f000-b7732000 rw-p 00000000 00:00 0 
b7c3e000-b7d8e000 rw-p 00000000 00:00 0          [heap]
b7d8e000-b7eb7000 rw-p 00000000 00:00 0          [heap]
bfb3b000-bfb5c000 rw-p 00000000 00:00 0          [stack]
f57fe000-f57ff000 r-xp 00000000 00:00 0          [vdso]
[Tue Aug 21 14:53:47 2012] [notice] seg fault or similar nasty error detected in the parent process
[Tue Aug 21 14:53:47 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Aug 21 14:53:47 2012] [notice] Digest: generating secret for digest authentication ...
[Tue Aug 21 14:53:47 2012] [notice] Digest: done
[Tue Aug 21 14:53:47 2012] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.4.6 configured -- resuming normal operations



/var/log/php.log
Code:
...
.....
...........
[21-Aug-2012 14:41:03 UTC] PHP Warning:  Module 'OAuth' already loaded in Unknown on line 0
[21-Aug-2012 14:46:03 UTC] PHP Warning:  Module 'json' already loaded in Unknown on line 0
[21-Aug-2012 14:46:03 UTC] PHP Warning:  Module 'OAuth' already loaded in Unknown on line 0
[21-Aug-2012 14:46:03 UTC] PHP Warning:  Module 'json' already loaded in Unknown on line 0
[21-Aug-2012 14:46:03 UTC] PHP Warning:  Module 'OAuth' already loaded in Unknown on line 0
[21-Aug-2012 14:51:02 UTC] PHP Warning:  Module 'json' already loaded in Unknown on line 0
[21-Aug-2012 14:51:02 UTC] PHP Warning:  Module 'OAuth' already loaded in Unknown on line 0
[21-Aug-2012 14:51:02 UTC] PHP Warning:  Module 'json' already loaded in Unknown on line 0
[21-Aug-2012 14:51:02 UTC] PHP Warning:  Module 'OAuth' already loaded in Unknown on line 0

I believe some of these errors were being caused by these lines in php.ini. I have commented them out and restarted Apache..

Code:
...
.....
; If you only provide the name of the extension, PHP will look for it in its
; default extension directory.
extension=apc.so
;extension=oauth.so
;extension=json.so
I have done this but the error still remains..
Thanks
 
Old 08-21-2012, 03:49 PM   #10
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
[Tue Aug 21 14:53:47 2012] [notice] seg fault or similar nasty error detected in the parent process
Doh, apache segfaults somehow, but the log doesn't say much. To see if it's php the culprit, comment out the line:
Quote:
LoadModule php5_module ...
Then stop and start again apache to check.


Quote:
[21-Aug-2012 14:41:03 UTC] PHP Warning: Module 'OAuth' already loaded in Unknown on line 0
[21-Aug-2012 14:46:03 UTC] PHP Warning: Module 'json' already loaded in Unknown on line 0
These are just warnings. The modules are already loaded in php maybe by some other file (check /etc/php.d/*.conf or /etc/php.d/*.ini).
 
1 members found this post helpful.
Old 08-22-2012, 02:32 AM   #11
redhat19
Member
 
Registered: Jan 2012
Posts: 45

Original Poster
Rep: Reputation: Disabled
Thanks again @bathory

There is no such line in my httpd.conf file..

So, I did a search and saw that I have these two files
(1) libphp5.so
(2) libphp5-zts.so

at this location:
/usr/lib/httpd/modules/

so, I added them to httpd.conf like this:
LoadModule php5_module /usr/lib/httpd/modules/libphp5.so
LoadModule php5_module /usr/lib/httpd/modules/libphp5-zts.so

Restarted Apache, but it doesn't seem to have had any effect. I am still getting
Code:
Server error
The website encountered an error while retrieving http://mywebsite.com/. It may be down for maintenance or configured incorrectly.
Here are some suggestions:
Reload this webpage later.
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.
I also observed that I am getting
Code:
[root@myserver1 modules]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: [Wed Aug 22 07:42:21 2012] [warn] module php5_module is already loaded, skipping
Any ideas?

Last edited by redhat19; 08-22-2012 at 02:44 AM.
 
Old 08-22-2012, 03:06 AM   #12
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
There is no such line in my httpd.conf file..

So, I did a search and saw that I have these two files
(1) libphp5.so
(2) libphp5-zts.so

at this location:
/usr/lib/httpd/modules/

so, I added them to httpd.conf like this:
LoadModule php5_module /usr/lib/httpd/modules/libphp5.so
LoadModule php5_module /usr/lib/httpd/modules/libphp5-zts.so
In Centos the php module is loaded from /etc/httpd/conf.d/php.conf.
You cannot load both as the 1st one is loaded when apache runs in prefork mode (the default) and the other is for apache.worker.
Besides I've told you to comment out the php module loading, to check if that's giving the segfault.
 
1 members found this post helpful.
Old 08-22-2012, 05:31 AM   #13
redhat19
Member
 
Registered: Jan 2012
Posts: 45

Original Poster
Rep: Reputation: Disabled
Thanks once again @bathory

I commented out this line:
# AddHandler php5-script .php

and the PHP page got displayed, but with php code showing on the pages..

Here's the content of my php.conf file (which is located here: /etc/httpd/conf.d)

Code:
#
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#
<IfModule prefork.c>
  LoadModule php5_module modules/libphp5.so
</IfModule>
<IfModule !prefork.c>
  LoadModule php5_module modules/libphp5-zts.so
</IfModule>


#
# Cause the PHP interpreter to handle files with a .php extension.
#
# AddHandler php5-script .php
AddType text/html .php

#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php

#
# Uncomment the following line to allow PHP to pretty-print .phps
# files as PHP source code:
#
#AddType application/x-httpd-php-source .phps
Here's what my /var/log/httpd/error_log file looks like:

Code:
...
.....
.......
b72db000-b72dc000 rw-p 00007000 ca:00 200922     /usr/lib/httpd/modules/mod_auth_digest.so
b72dc000-b72de000 rw-p 00000000 00:00 0 
b72de000-b7327000 r-xp 00000000 ca:00 34357      /lib/libfreebl3.so
b7327000-b7328000 r--p 00048000 ca:00 34357      /lib/libfreebl3.so
b7328000-b7329000 rw-p 00049000 ca:00 34357      /lib/libfreebl3.so
b7329000-b732d000 rw-p 00000000 00:00 0 
b732d000-b7331000 r-xp 00000000 ca:00 34062      /lib/libuuid.so.1.3.0
b7331000-b7332000 rw-p 00003000 ca:00 34062      /lib/libuuid.so.1.3.0
b7332000-b7335000 r-xp 00000000 ca:00 34351      /lib/libdl-2.12.so
b7335000-b7336000 r--p 00002000 ca:00 34351      /lib/libdl-2.12.so
b7336000-b7337000 rw-p 00003000 ca:00 34351      /lib/libdl-2.12.so
b7337000-b74c7000 r-xp 00000000 ca:00 34348      /lib/i686/nosegneg/libc-2.12.so
b74c7000-b74c9000 r--p 00190000 ca:00 34348      /lib/i686/nosegneg/libc-2.12.so
b74c9000-b74ca000 rw-p 00192000 ca:00 34348      /lib/i686/nosegneg/libc-2.12.so
b74ca000-b74cd000 rw-p 00000000 00:00 0 
b74cd000-b74e4000 r-xp 00000000 ca:00 34349      /lib/i686/nosegneg/libpthread-2.12.so
b74e4000-b74e5000 r--p 00016000 ca:00 34349      /lib/i686/nosegneg/libpthread-2.12.so
b74e5000-b74e6000 rw-p 00017000 ca:00 34349      /lib/i686/nosegneg/libpthread-2.12.so
b74e6000-b74e9000 rw-p 00000000 00:00 0 
b74e9000-b7516000 r-xp 00000000 ca:00 49674      /usr/lib/libapr-1.so.0.3.9
b7516000-b7517000 rw-p 0002c000 ca:00 49674      /usr/lib/libapr-1.so.0.3.9
b7517000-b768a000 r-xp 00000000 ca:00 34117      /lib/libdb-4.7.so
b768a000-b768d000 rw-p 00172000 ca:00 34117      /lib/libdb-4.7.so
b768d000-b76b3000 r-xp 00000000 ca:00 34355      /lib/libexpat.so.1.5.2
b76b3000-b76b5000 rw-p 00025000 ca:00 34355      /lib/libexpat.so.1.5.2
b76b5000-b76bc000 r-xp 00000000 ca:00 34358      /lib/libcrypt-2.12.so
b76bc000-b76bd000 r--p 00007000 ca:00 34358      /lib/libcrypt-2.12.so
b76bd000-b76be000 rw-p 00008000 ca:00 34358      /lib/libcrypt-2.12.so
b76be000-b76e5000 rw-p 00000000 00:00 0 
b76e5000-b7707000 r-xp 00000000 ca:00 49763      /usr/lib/libaprutil-1.so.0.3.9
b7707000-b7708000 rw-p 00022000 ca:00 49763      /usr/lib/libaprutil-1.so.0.3.9
b7708000-b7709000 rw-p 00000000 00:00 0 
b7709000-b7726000 r-xp 00000000 ca:00 34362      /lib/libselinux.so.1
b7726000-b7727000 r--p 0001c000 ca:00 34362      /lib/libselinux.so.1
b7727000-b7728000 rw-p 0001d000 ca:00 34362      /lib/libselinux.so.1
b7728000-b7757000 r-xp 00000000 ca:00 34029      /lib/libpcre.so.0.0.1
b7757000-b7758000 rw-p 0002e000 ca:00 34029      /lib/libpcre.so.0.0.1
b7758000-b7780000 r-xp 00000000 ca:00 34354      /lib/libm-2.12.so
b7780000-b7781000 r--p 00027000 ca:00 34354      /lib/libm-2.12.so
b7781000-b7782000 rw-p 00028000 ca:00 34354      /lib/libm-2.12.so
b7782000-b7783000 r-xp 00000000 ca:00 200948     /usr/lib/httpd/modules/mod_env.so
b7783000-b7784000 r--p 00000000 ca:00 200948     /usr/lib/httpd/modules/mod_env.so
b7784000-b7785000 rw-p 00001000 ca:00 200948     /usr/lib/httpd/modules/mod_env.so
b7785000-b7787000 r-xp 00000000 ca:00 200921     /usr/lib/httpd/modules/mod_auth_basic.so
b7787000-b7788000 r--p 00001000 ca:00 200921     /usr/lib/httpd/modules/mod_auth_basic.so
b7788000-b7789000 rw-p 00002000 ca:00 200921     /usr/lib/httpd/modules/mod_auth_basic.so
b7789000-b778a000 rw-p 00000000 00:00 0 
b778a000-b77a8000 r-xp 00000000 ca:00 33869      /lib/ld-2.12.so
b77a8000-b77a9000 r--p 0001d000 ca:00 33869      /lib/ld-2.12.so
b77a9000-b77aa000 rw-p 0001e000 ca:00 33869      /lib/ld-2.12.so
b77aa000-b77fc000 r-xp 00000000 ca:00 50480      /usr/sbin/httpd
b77fc000-b77fe000 rw-p 00051000 ca:00 50480      /usr/sbin/httpd
b77fe000-b7801000 rw-p 00000000 00:00 0 
b7c72000-b7dc2000 rw-p 00000000 00:00 0          [heap]
b7dc2000-b7eeb000 rw-p 00000000 00:00 0          [heap]
b7eeb000-b7f0d000 rw-p 00000000 00:00 0          [heap]
bf8ee000-bf90f000 rw-p 00000000 00:00 0          [stack]
f57fe000-f57ff000 r-xp 00000000 00:00 0          [vdso]
[Wed Aug 22 10:21:55 2012] [notice] child pid 2745 exit signal Aborted (6)
Do you have a clue what this all means?

Thanks for all the help.
 
Old 08-22-2012, 06:12 AM   #14
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
I commented out this line:
# AddHandler php5-script .php
I told you to comment out the "LoadModule ..." line, so apache stops loading the php module, so we can verify if it's the culprit for the apache segfaults. I suspect it is, because it's of the php you've compiled yourself.


Quote:
Here's what my /var/log/httpd/error_log file looks like:
<snip>
Do you have a clue what this all means?
This is a backtrace of the apache segfaulting. I guess it's because of the php but cannot be sure.

BTW why don't you uninstall your php and install the centos php package? Is there any particular reason you want to use the latest php?
 
1 members found this post helpful.
Old 08-22-2012, 08:19 AM   #15
redhat19
Member
 
Registered: Jan 2012
Posts: 45

Original Poster
Rep: Reputation: Disabled
Thanks yet again @bathory

..not really. I must have updated PHP to the latest version while trying to troubleshoot.
I have a question/concern though: how does installing the centOS version of PHP affect my php.ini file?
Also, would you be kind enough to share the command for installing?
I am assuming it would be:

#yum remove php*
#yum install php*

right?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] ERROR: `phpize' failed konzo Linux - Software 6 01-06-2012 10:22 AM
problems running phpize Vikas Jayna Linux - Software 0 07-30-2007 02:43 AM
error when use phpize truongton Linux - General 0 09-15-2006 07:45 AM
can't find gnome-config while running ./configure on gnucash jtwJGuevara Slackware 2 03-28-2004 06:49 PM
Error when running ./config for ircd MarleyGPN Linux - Software 0 10-29-2003 10:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration