Click to See Complete Forum and Search --> : PHP + Apache on Solaris


Anon
10-24-2001, 04:28 PM
Hello,

Wondered whether anyone could help me with the following problem. I am running Apache 1.3.19 on Solaris 7 + php 4.0.4 when I start Apache I get the following error:

Syntax error on line 222 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server: ld.so.1: /usr/local/apache/bin/httpd: fatal: relocation error: file /usr/local/apache/libexec/libphp4.so: symbol display_ini_entries: referenced symbol not found
./apachectl start: httpd could not be started

The libraries libphp4.so and ld.so.1 are under libexec.

If I comment out the apache

LoadModule php4_module libexec/libphp4.so

and the AddModule mod_php4.c things start up OK but obviously without php! Can anyone help?

Cheers


Darren

Anon
10-25-2001, 01:36 PM
I have two Solaris 7 systems with Apache 1.3.20 and PHP 4.0.6. I don't use

LoadModule php4_module libexec/libphp4.so

in my httpd.conf file. I only use

AddType application/x-http-php .php

Besdies, there's nothing my my /usr/lib/apache/libexec directory. It's empty.

Try using only the AddType line in your httpd.conf file. If that doesn't work, then I'd reinstall PHP and Apache as per the instructions in the PHP manual.


Hank