Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: libphp5.so not generated
PostPosted: Wed Aug 11, 2010 4:15 am 
Offline
Newbie

Joined: Wed Aug 11, 2010 4:10 am
Posts: 3
I have been battling with this for a while now, and was hoping someone who's faced a similar issue could help me out.

I had installed apache2 and php5 (from source) on my centos 5.5 system, and the php5 shared object got created perfectly fine at that time.

Then, I later realized that I needed curl support, so I recompiled and re-installed php, but, this time the shared object just does not get generated. And i dont get any errors either.

Here are the configure options I used for php:
./configure --with-apxs2=/usr/local/apache2/bin/apxs --enable-safe-mode --with-mysql=/usr/local/mysql --with-gd --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --enable-gd-native-ttf --with-ttf –with-freetype-dir=/usr/lib --enable-exif --with-openssl --with-curl

php version:php-5.2.13
apache version:httpd-2.2.15

Any help on this would be highly appreciated!
Thanks,
Sapna


Top
   
 Post subject:
PostPosted: Wed Aug 11, 2010 4:24 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Did you recompile from a clean source? not one that's already been compiled?


Top
   
 Post subject:
PostPosted: Wed Aug 11, 2010 4:32 am 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
Why would you pick CentOS if you are going to compile your own apps?

It complete breaks the stability and security that is the core of RHEL/CentOS.


Top
   
 Post subject:
PostPosted: Wed Aug 11, 2010 4:32 am 
Offline
Newbie

Joined: Wed Aug 11, 2010 4:10 am
Posts: 3
Yeah I tried that as well. But that didn't help either.


Top
   
 Post subject:
PostPosted: Wed Aug 11, 2010 5:53 am 
Offline
Newbie

Joined: Wed Aug 11, 2010 4:10 am
Posts: 3
I figured that that would give me a more secure environment - being able to configure the options I wanted at compile time, rather than run time.
Anything I can do to fix this now?


Top
   
 Post subject:
PostPosted: Wed Aug 11, 2010 8:03 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
The problem with compiling from source is that you are then on the hook to handle any security updates that are required, without any leadtime the distribution vendors might have. This is particularly critical for things that are accessed remotely, like (for example) Apache or PHP.

In other words, you've just defeated the security benefits of CentOS (or any other distro). Not a good idea.

Unless you can pick out the compiled bits and reinstall the RPMs to restore things to their stock state, your best bet would be to redeploy a fresh CentOS image and start from there (or restore from a backup).

Also, per the CentOS forums and perhaps verifiable by phpinfo();, curl is already in there.


Top
   
 Post subject:
PostPosted: Fri Aug 13, 2010 4:12 pm 
Offline
Senior Member

Joined: Sun Aug 31, 2008 4:29 pm
Posts: 177
hoopycat wrote:
The problem with compiling from source is that you are then on the hook to handle any security updates that are required, without any leadtime the distribution vendors might have. This is particularly critical for things that are accessed remotely, like (for example) Apache or PHP.

In other words, you've just defeated the security benefits of CentOS (or any other distro). Not a good idea.


I tend to agree in principle but, to some extent, not agree in practice. Yes it is best to stick to software releases provided by your distribution. But sometimes that doesn't work out.

If you know what you're doing, and recognize (and accept) the responsibility for updating manually, there's nothing really "wrong" with installing from source. I build Apache from source, primarily because the CentOS way of doing suexec doesn't work for me. I monitor for new Apache releases and when one appears I build in a sandbox, test, watch for discussion, and eventually deploy. Yes it's a bit more work for me, but I don't think "I've defeated the security benefits" of my CentOS system.


Top
   
 Post subject:
PostPosted: Fri Aug 13, 2010 4:23 pm 
Offline
Junior Member

Joined: Tue Jul 13, 2010 8:28 pm
Posts: 28
I agree with sleddog. Just because you're using CentOS doesn't mean you have to stick with the given packages. Even if you compile one of your own, there are hundreds of other packages you still track.

I'm pretty certain the CentOS php comes with curl, but then I always pull in the remi repo to get the latest php (+mysql,apache), so I can't confirm with personal evidence. Unless the original poster is targeting php5.2 for some reason, I'd suggest following suit - the remi repo is pretty high quality.


Top
   
 Post subject:
PostPosted: Fri Aug 13, 2010 6:35 pm 
Offline
Senior Member

Joined: Sat Mar 28, 2009 4:23 pm
Posts: 415
Website: http://jedsmith.org/
Location: Out of his depth and job-hopping without a clue about network security fundamentals
sleddog wrote:
hoopycat wrote:
The problem with compiling from source is that you are then on the hook to handle any security updates that are required, without any leadtime the distribution vendors might have. This is particularly critical for things that are accessed remotely, like (for example) Apache or PHP.

In other words, you've just defeated the security benefits of CentOS (or any other distro). Not a good idea.


I tend to agree in principle but, to some extent, not agree in practice. Yes it is best to stick to software releases provided by your distribution. But sometimes that doesn't work out.

If you know what you're doing, and recognize (and accept) the responsibility for updating manually, there's nothing really "wrong" with installing from source. I build Apache from source, primarily because the CentOS way of doing suexec doesn't work for me. I monitor for new Apache releases and when one appears I build in a sandbox, test, watch for discussion, and eventually deploy. Yes it's a bit more work for me, but I don't think "I've defeated the security benefits" of my CentOS system.

I see this as the advantage of PPAs.

_________________
Disclaimer: I am no longer employed by Linode; opinions are my own alone.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


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

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group