httpd fails

Rprp

Verified User
Joined
Dec 25, 2006
Messages
28
Hi,

When i try to start httpd it fails :(
Error:

dedi262:/usr/lib/apache# httpd restart
Syntax error on line 69 of /etc/httpd/conf/httpd.conf:
Cannot load /usr/lib/apache/libphp5.so into server: /usr/lib/apache/libphp5.so: undefined symbol: _emalloc

Does someone know how to fix this?

Greetz, Rprp
 
Hmm, got apache working now, but without PHP...

When i do './build php_ap2' there is not libphp4.so in /usr/lib/apache,

Someone ideas?

Rprp
 
Last edited:
Similar problem

After successfully following instructions for adding freetype to gd, adding conf info to php and apache, after building php successfully, I get this error message. Installing php...
Installing PHP SAPI module: apache
[activating module `php4' in /etc/httpd/conf/httpd.conf]
cp libs/libphp4.so /usr/lib/apache/libphp4.so
cp: cannot stat `libs/libphp4.so': No such file or directory
apxs:Break: Command failed with rc=1
make: *** [install-sapi] Error 1

*** The install has failed, do you want to try to install it again? (y,n):


I have spent most of 24 hours trying to figure this out. I give up!!! HELP!!
I can't figure out where libs/libphp4.so is supposed to be! libphp4.so already exists in /usr/lib/apache/libphp4.so, and I have moved copies to a variety of libs directories in various locations hoping to outfox the error.
 
Last edited:
I finally fixed the problem by creating a directory:

libs

/usr/local/directadmin/customapache/php-4.4.6/

and setting pemission of libs to 755

copying

/usr/lib/apache/libphp4.so

to /usr/local/directadmin/customapache/php-4.4.6/libs

and setting pemission of libphp4.so to 755

This file was not present when I got my new server: CentOS 4 with DirectAdmin 1.2.9
 
This file was not present when I got my new server

Somebody must have erased it because its part of the php-4.4.6.tar.gz file. You do have php-4.4.6.tar.gz in /usr/local/directadmin/customapache/?
 
Yes. Like I said, I added the file in question manually, myself. I didn't make up the problem, and I'm not kidding about the solution. Maybe someone else will have the same problem some day, and find the solution here.
 
So you do have php-4.4.6.tar.gz? Unpack it in another directory and see if the files are not there. I am just curious now. If the files are not there then there may be something wrong with the DA install process. There should be 2 files in libs.
 
You might want to email DA support. Who installed DA for you?
 
Back
Top