[Ilugc] PHP - rpm binary creation from source - doubt

  • From: bhuvaneswaran@xxxxxxxxx (Bhuvaneswaran A)
  • Date: Wed Mar 16 11:23:24 2005

Dear friends,
I compiled php 4.3.10 source with mysql,pgsql,db2 support. Later, I
created RPM using checkinstall. When I try to install the created RPM
- php-4.3.10-1.rpm, I get an error:
failed -> /etc/httpd/conf/hhtpd.conf from rpm php-4.3.10.rpm conflicts
with installed package httpd-2.0.51.

httpd.conf belongs to apache rpm. How would it be part of php your php
rpm ? Please double check your compilation process.

If you are using redhat/fedora linux, IMO you wouldn't require to
re-compile php to support mysql, pgsql. With regard to db2 please
check though. If you wish to install php and if you are not
customizing the package, just walk through the following steps to
install & configure php with mysql & pgsql support:

1) Locate php rpm for your distribution & install (rpm -ivh)
2) Locate php-mysql rpm & install
3) Locate php-pgsql rpm & install
4) Open /etc/php.ini & locate for following lines

;extension=mysql.so
;extension=pgsql.so

Uncomment them, now it should look like:

extension=mysql.so
extension=pgsql.so

5) Configure httpd.conf (refer apache manual for details)
6) Test your apache & php installation using phpinfo().

-- 
Regards,
Bhuvaneswaran A

Other related posts: