Cannot find PHP

blueroomhosting

New member
Joined
May 13, 2008
Messages
2
Location
UK
I am currently testing out Directadmin as we would like to offer it to our customers. Having obtained a trial licence, I have installed it on a Centos 5 64-bit VPS. The install completed and I was able to connect to port 2222 and log in, however I am seeing the following error on the homepage:

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

I cannot find php anywhere on the system, it is not anywhere in the path and unless it has ended up somewhere really strange it seems it has not been installed at all (I selected custombuild 1.1) Can anybody help?

Many thanks
Helen
 
cd /usr/local/directadmin/custombuild
./build php n

Thank you, it works now (I also had to repeat the command with a couple of libraries)

Should I expect to have to do this with every directadmin install, or is it a freak occurrence?
 
I had a similar problem on a Fedora Core 9 VPS.

I had to send yum out to get a few PHP lib files in order for the build to complete. Once it was done, I got that done, I also got the "cannot find /usr/local/lib/php" error in the DirectAdmin console.

I created a symbolic link at /usr/local/lib/php and pointed it to /usr/bin/php

The error message went away in DirectAdmin.

Well, it was all fine and dandy until I actually tried to run a php script. I tried to run RoundCube, and it just printed out the source code. It didn't execute it. I tried to run my own script, and it printed the src as plain text again.

I can run php scripts by invoking the php command in a terminal, but Apache doesn't seem to know how to handle a file with the .php extension.

(I checked Apache's mime time, and it does know .php)

Why aren't my php scripts running? I have no idea where the install got screwed up.

Any advice you could offer would be wonderful.
 
cmelcher, you must have your PHP compiled from the source, not RPM. /usr/bin/php is the one from PHP RPM.
 
I'm having similar problems
Fresh/clean 64bit install

Running:
Code:
cd /usr/local/directadmin/custombuild
./build php n

Will let you know the results
 
Back
Top