PDA

View Full Version : httpd fails



Rprp
04-05-2007, 07:15 PM
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

nobaloney
04-05-2007, 07:24 PM
Try to reinstall libphp5.so.

Jeff

Rprp
04-05-2007, 07:27 PM
i did already, i tried ./build all, still no succes :(

Rprp
04-05-2007, 07:34 PM
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

nemonoman
04-07-2007, 10:36 AM
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.

nemonoman
04-16-2007, 11:42 AM
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

floyd
04-16-2007, 02:08 PM
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/?

nemonoman
04-16-2007, 05:15 PM
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.

floyd
04-16-2007, 05:34 PM
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.

nemonoman
04-16-2007, 06:40 PM
My tar.gz does not have the file, nor the directory libs.

floyd
04-16-2007, 08:35 PM
You might want to email DA support. Who installed DA for you?