Bug 23567

Summary: adding PDF support causes Apache startup failure
Product: [Retired] Red Hat Raw Hide Reporter: Lee Howard <faxguy>
Component: phpAssignee: Nalin Dahyabhai <nalin>
Status: CLOSED NOTABUG QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-01-08 07:39:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Lee Howard 2001-01-08 07:39:44 UTC
In order to compile-in PDF support into PHP, the RPMs must be built with:
--with-pdflib
option in the configure script after installing pdflib-3.x.  Due to the 
bug mentioned at:
http://bugs.php.net/bugs-php3.php?id=7487
the compile --with-pdflib fails on anything less than php-4.0.4

So, grabbing the php-4.0.4-1 src.rpm from Rawhide, adding --with-pdflib to 
the configure script in the spec file, installing pdflib-3.03 (--enable-
shared-pdflib because the java components fail during make otherwise), and 
then building the RPMs - all goes well.

Because pdflib wasn't installed via RPM, the pdflib.so.0 file dependency 
is complained about, so the RPMs are installed via: 'rpm -Uvh --nodeps'

Then try restarting Apache, and you'll notice the problem:
[root@providence i386]# /etc/rc.d/init.d/httpd restart
Shutting down http: [  OK  ]
Starting httpd: Syntax error on line 256 of /etc/httpd/conf/httpd.conf:
Cannot load /etc/httpd/modules/libphp4.so into server: shared object not 
open
[FAILED]
[root@providence i386]#

This occurs when php-4.0.4 is compiled/installed via RPM or directly using 
configure, make, make install.  Uninstalling the new RPMs and then using 
the php-4.0.3pl1-2 RPMs allows Apache to restart properly, but obviously 
there is no PDF support there.

How can this be resolved?

Comment 1 Lee Howard 2001-01-09 05:36:48 UTC
needed to add /usr/local/lib to /etc/ld.so.conf and then run /sbin/ldconfig 
because pdflib installs itself by default into /usr/local/lib rather 
than /usr/lib