cannot find file: /usr/local/bin/php

sirwiz

Verified User
Joined
Mar 5, 2008
Messages
35
CentOS 5.0 64-bits after install i got dovecot stoped, but i rebuild it, and it start up, but php is still down and i have this error:

Make Complete
Copying php.ini..
/usr/local/lib/php.ini already exists, skipping.
Increasing memory limit to 20M...
Installing php...
Installing PHP SAPI module: apache2handler
/var/www/build/instdso.sh SH_LIBTOOL='/var/www/build/libtool' libphp5.la /usr/lib/apache
/var/www/build/libtool --mode=install cp libphp5.la /usr/lib/apache/
cp .libs/libphp5.so /usr/lib/apache/libphp5.so
cp .libs/libphp5.lai /usr/lib/apache/libphp5.la
libtool: install: warning: remember to run `libtool --finish /usr/local/directadmin/custombuild/php-5.2.5/libs'
chmod 755 /usr/lib/apache/libphp5.so
apxs:Error: Activation failed for custom /etc/httpd/conf/httpd.conf file..
apxs:Error: At least one `LoadModule' directive already has to exist..
make: *** [install-sapi] Błąd 1

A tryed some ways to start php but im fail to do this. Any ideas?
 
Last edited:

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
9,095
Location
LT, EU
Add this to /etc/httpd/conf/httpd.conf and try again:
Code:
# Dummy LoadModule directive to aid module installations
#LoadModule dummy_module /usr/lib/apache/mod_dummy.so
 

aqnshosting

Verified User
Joined
Mar 10, 2008
Messages
5
Add this to /etc/httpd/conf/httpd.conf and try again:
Code:
# Dummy LoadModule directive to aid module installations
#LoadModule dummy_module /usr/lib/apache/mod_dummy.so

I am having the same problem.
Please instruct on how to overcome it.

Thanks
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
9,095
Location
LT, EU
aqnshosting, try:
Code:
./build update
./build rewrite_confs
 
Top