Re: Error: Restarting Apache w/ PHP as DSO on redhat 7.2
| From: | Erik Price | Date: | Wed, 28 Nov 2001 18:26:40 +0000 |
| Subject: | Re: Error: Restarting Apache w/ PHP as DSO on redhat 7.2 | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-5122@lists.php.net to get a copy of this message | ||
I don't know EXACTLY how to help you... but I think I had a similar problem that was solved (in my case) by editing the httpd.conf file. If you're already done this, disregard the following:
Uncommment or add the lines
AddType application/x-httpd-php .php # you may have to add the suffixAddType application/x-httpd-php-source .phps and LoadModule php4_module libexec/httpd/libphp4.so and AddModule mod_php4.c If you have already done this modification to httpd.conf, then this is not the problem. I also had a problem, in that my compile of PHP wasn't successful entirely (because of the missing MySQL library 'lmysqlclient.so' ). Re-configure and try again. For me, I had to use the built-in MySQL libraries in PHP (if you're not using MySQL then disregard all of this). Erik On Wednesday, November 28, 2001, at 01:07 AM, charles wrote:
Heres what I have: Clean install of redhat 7.2, server option chosen, default packages installed - no extra servers or subcategories. I have installed the following with no problems through configure, make or make install: - MySQL 3.23.45 from binaries at mysql.com (redhat gcc error, or so it says) - Apache 1.3.22 from source (configure --prefix=/usr/local/apache --enable-module=so) - PHP 4.0.6 from source (configure --with-mysql=/usr/local/mysql --with-apxs=/usr/local/apache/bin/apxs) I did have to change the first line in the apxs file from '#!/usr/bin/perl' > '#!/usr/bin/perl5.6.0'. This was done prior to configure, etc... [known issue from another server running some perl apps} Each package was tested after install for success. MySQL and Apache work(ed) fine. After installing PHP as a DSO, I cannot start apache and receive the following error: "Syntax error on line 205 of /usr/local/apache/conf/httpd.conf: cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/apache/libexec/libphp4.so: undefined symbol: uncompress ./apachectl start: httpd could not be started" Line 205 of httpd.conf looks like:LoadModule php4_module libexec/libphp4.so(looks good to me, but what do I know?) Checked Apache's error log and nothing is being recorded (assuming because httpd cannot even start?) I also attempted to reinstall both Apache and PHP by ./configure, make clean, make, make install with no luck -- same error. I've noticed this on a few other posts in the archives but was not abale to find any resolutions. Anyone have any ideas? {I really do not want to install from RPMs] much appreciated, clacy@bignet.net