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

Rick L.

Verified User
Joined
Jun 24, 2006
Messages
23
Location
Netherlands
Hi,

I have problems with a new server that i've installed today. DirectAdmin is giving the following error:

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

I've searched around in the forums and found many topics about the same problem, but none of their solutions will help for me. I rebuilded php different times, installed other software but nothing works.

I can't find other error messages. Has anyone got an idea what I can do?

Thanks a lot in advance,
Rick
 
What do you have in /usr/local/directadmin/custombuild/options.conf? Are you sure that "./build php n" goes without any problem?
 
Thanks for your reply!

Rebuilding PHP goes without any problem, I guess i've rebuilded it more than 5 times.

The file you mentioned contents the following info:

#PHP settings. default_php possible values - 4 or 5
default_php=4
php5_cli=no
php5_cgi=no
php4_cli=no
php4_cgi=yes
php_ini=yes
#Possible values - recommended or dist
php_ini_type=recommended
zend=yes

#Possible values - 5.0 or 5.1 (4.1 is possible too, but it's EOL)
mysql=4.1
mysql_inst=yes
mysql_backup=yes

#Possible values - 1.3, 2.0 or 2.2
apache_ver=2.0

#Web applications
phpmyadmin=yes
atmail=yes
squirrelmail=yes
roundcube=yes

uebimiau=yes

#Mail options
mail-header-patch=yes
dovecot=yes
eximconf=yes

#FTP options
proftpd=yes

#Jailed shell
jail=no

#Custombuild options
autover=yes
bold=no
clean=yes
fileserver=2
cron=no
[email protected]
notifications=yes
updates=no

I also have problems with restoring back-ups, it'll start but it stops after a couple of minutes, also without any error message anywhere. But maybe that's caused by the PHP problem?

Thanks again in advance,
Rick
 
Ok, try this:
Code:
cd /usr/local/directadmin/custombuild
perl -pi -e 's/php5_cli=no/php5_cli=yes/' options.conf
./build php5-cli
perl -pi -e 's/php5_cli=yes/php5_cli=no/' options.conf
 
Thanks a lot for your effort! It was not the solution of my problem, but someone of DirectAdmin Support dissolved the Apache-problem. It's still not possible to restore back-ups from another server, but I guess that that's a bug in DirectAdmin (but of course I'm not sure about that). I asked them if they know a solution for it.

Thanks again, smtalk!
 
I have problems with a new server that i've installed today. DirectAdmin is giving the following error:
Code:
cannot find file: /usr/local/bin/php
SSH to the server and run this command:

ln -s /usr/local/bin/php /usr/sbin/php

That should take care of this problem. If not, seek professional help.
 
Back
Top