LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-25-2009, 04:28 PM   #1
kingkashif
Member
 
Registered: May 2009
Posts: 94

Rep: Reputation: 16
php 5.2.11 source make install problem


hello everyone..

well i had PHP 5.1.6 installed using yum on my centos 5.3 system but i wanted 5.2.x so i downloaded it's source and compiled installed it ..

The make install process went on successfully but in the end i did see some warnings .. now
when i do
Code:
/usr/local/bin/php --version
then i get it's version but with following warnings..
Code:
PHP Warning:  PHP Startup: dbase: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: dom: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: gd: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: imap: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: mbstring: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: mysql: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: mysqli: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: PDO: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: pdo_mysql: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: pdo_sqlite: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: SQLite: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: xmlreader: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: xmlwriter: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: xsl: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
 in Unknown on line 0
PHP 5.2.11 (cli) (built: Sep 25 2009 23:09:30) 
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
don't know why

i configure php with following

Code:
./configure –with-config-file-path=/etc –with-config-file-scan-dir=/etc/php.d –with-apxs2 –with-libdir=lib –with-mysql –with-mysqli –with-zlib
Thanks in advance for looking at the post and your help ..


regards
 
Old 09-26-2009, 06:12 AM   #2
kingkashif
Member
 
Registered: May 2009
Posts: 94

Original Poster
Rep: Reputation: 16
any one ?
 
Old 09-26-2009, 08:20 PM   #3
erikig
LQ Newbie
 
Registered: Sep 2009
Posts: 2

Rep: Reputation: 0
PHP Compile/Installation Error

Quote:
Originally Posted by kingkashif View Post
any one ?
Hey kingkashif,

I was having the exact same issue with my newly compiled PHP install .
"Module compiled with module"
etc etc
"These options need to match"

This happens because when PHP is being compiled it generates new modules (*.a and *.so) files (in your case dbase.a & so, dom.a & so, gd, imap etc).

In order not to overwrite the original .so files it places a copy of the new (*.a & *.so) files in a different folder during "make install"

In my case "make install" copied the new modules to: /usr/lib/20060613/
The default modules directory was: /usr/lib/php/modules

If you want to know where make install will be copying the files do a dry run of make install thusly:

Code:
make install -n
All I had to do was backup the orginal modules:

Code:
cd /usr/lib/php/modules
tar -cvzf 20090926.php-modules.tgz
mv 20090926.php-modules.tgz /safe/backup/directory
Then copy the new modules in:

Code:
cp -a /usr/lib/20060613/* /usr/lib/php/modules
I was a little thrown off and I came across your question, hope that helps.

Thanks

Eric
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
php source install require flex 2.5.4 ?? hottdogg Programming 2 06-29-2006 09:09 PM
Problem extracting PHP 5.1.2 source CrashedItAgain Mandriva 0 03-06-2006 08:19 AM
package compiling from source, make & make install concepts shujja Linux - Newbie 2 09-20-2005 12:18 AM
Problem with Configure, Make, Make Install n8tgc Linux - Newbie 2 07-13-2004 03:16 PM
Problems running make install for php jimieee Linux - Software 5 12-30-2003 03:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:31 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