note 7495 deleted from faq.installation by philip
| From: | philip@php.net | Date: | Tue, 21 Jan 2003 02:25:10 +0000 |
| Subject: | note 7495 deleted from faq.installation by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-42459@lists.php.net to get a copy of this message | ||
<p>Just a reflection of my PHP4 install process in RedHat 6.2 (hopefully somebody with my
level of experience will find this useful):</p>
<p>Configure couldn't find apxs. This is because RedHat didn't install it as part of
the server option install. Go figure. The solution to a missing apxs script is to install the
apache-devel-1.3.12-2.i386.rpm from your RedHat 6.2 install CD, which will put apxs in the right
spot with the right parameters inside.</p>
<p>Another problem I had was that since I'd upgraded PostgreSQL, and was trying to
compile PHP4 with PostgreSQL support, Apache couldn't find /usr/local/pgsql/lib/libpq.so.2.1
(needed to load modules/libphp4.so with PostgreSQL support) and so wouldn't start (when I did
./httpd restart in /etc/rc.d/init.d). The answer was to add /usr/local/pgsql/lib to the list of
places that library files are kept, in the file /etc/ld.so.conf, and then run ldconfig -v to update
the list of libraries.</p>
<p>Then, of course (in RedHat 6.2), cd /etc/rc.d/init.d and then do ./httpd restart
.</p>
<p>For me, the rest is smooth sailing. Except for the SQL errors.</p>
<p>Note that this advice is from a somewhat newbie (to Linux, PHP and PostgreSQL) perspective,
so your mileage may vary. Exercise extreme caution.</p>