libphp5.so not generated
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
8 Replies
It complete breaks the stability and security that is the core of RHEL/CentOS.
Anything I can do to fix this now?
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
@hoopycat:
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'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.
@sleddog:
@hoopycat: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.