Originally Posted by Ramurd
I am making a customized for myself (eg with postgreSQL support) php package.
If you are only trying to add postgreSQL support there is an easier way!
Here are my own notes - I do this occasionally, just last week in fact:
Postgresql and PHP in Slackware
Slackware ships with PHP compiled wihtout Postgresql support.
To enable it you obviously need to build the postgresql package, then...
You can rebuild PHP using the --with-pgsql=shared,/usr directive, but all you really need is the module, so an easy way is to rebuild PHP using ONLY the --with-pgsql... directive, copy the module to the php extensions path and possibly edit the /etc/httpd/php.ini to enable it's use... like this:
1. Untar the php source that ships with Slackware, cd to the directory
2. ./configure --with-pgsql=shared,/usr
3. make (DO NOT RUN make install!)
4. copy .../modules/pgsql.so to /usr/lib/php/extensions/pgsql.so
5. Edit /etc/httpd/php.ini and add line 'extension=pgsql.so'
Restart apache and you should be done!
(NOTE: It is NOT necessary to edit /etc/php/php.ini to use the module!)