store | blogs | forums | twitter | facebook | wiki | mailing lists | downloads | support portal
Atomic Secure Linux
It is currently Sat May 25, 2013 12:57 pm

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic Share/Bookmark  [ 5 posts ] 
Author Message
 Post subject: php vs libphp5.so shows different ./configure options
Unread postPosted: Tue Nov 15, 2011 11:13 am 
Offline
New Forum User
New Forum User

Joined: Tue Nov 15, 2011 11:04 am
Posts: 2
Location: Canada
Hi, I try to troubleshoot a hosting setup I built on Centos6 with php packages from Atomic Rocket Turtle (I needed to have php 5.2.17 so I used these instead of stock CentOS php version )

Now I notice while comparing a phpinfo output from command line (php -f phpinfo.php) and one from my browser (interpreted by httpd using libphp5.so) that the configure command section shows differences ('--without-unixODBC' '--disable-pdo' on my browser, --enable-pdo=shared --with-pdo-odbc=shared,unixODBC,/usr --with-pdo-mysql=shared,/usr --with-pdo-pgsql=shared,/usr --with-pdo-sqlite=shared,/usr --with-pdo-dblib=shared,/usr --with-unixODBC=shared,/usr from the command line) there may be other differences I didn't notice, but these options are important to me so it caught my attention first.

Any clue why is that ? Any test I should do or complementary information I should provide ?


Top
 Profile  
 
 Post subject: Re: php vs libphp5.so shows different ./configure options
Unread postPosted: Tue Nov 15, 2011 5:48 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7429
Location: earth
because phpinfo() lies :P Look at the php.spec file for the real details


Top
 Profile  
 
 Post subject: Re: php vs libphp5.so shows different ./configure options
Unread postPosted: Wed Nov 16, 2011 10:49 am 
Offline
New Forum User
New Forum User

Joined: Tue Nov 15, 2011 11:04 am
Posts: 2
Location: Canada
Thanks for your answer Scott,

I don't have the php.spec file in my filesystem since I didn't manage to find the corresponding .src.rpm package on the Atomic Rocket Turtle repository but anyways if the error lies in the display of the configure options and since the client tested the odbc support and it seems to work it's all good for now.

I'm somewhat confused and surprised not to be able to rely on phpinfo () to have an overview of the available features and compile options and other stuff, how could I avoid being lied at lol


Top
 Profile  
 
 Post subject: Re: php vs libphp5.so shows different ./configure options
Unread postPosted: Wed Nov 16, 2011 2:35 pm 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Sat Aug 20, 2005 9:30 am
Posts: 2812
Location: The Netherlands
The PHP src.rpm and spec files can be found in the /channels/source/php/ dir on the hosts that serve the atomic yum repository. So for instance: http://www2.atomicorp.com/channels/source/php/

_________________
Lemonbit Internet Dedicated Server Management


Top
 Profile  
 
 Post subject: Re: php vs libphp5.so shows different ./configure options
Unread postPosted: Wed Nov 16, 2011 5:27 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7429
Location: earth
Its actually been returning inaccurate data since php 5.0.x. Has to do with modular wibbly wobbly timey wimey stuff


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic Share/Bookmark  [ 5 posts ] 

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group