DA admin shows - cannot find file: /usr/local/bin/php

latheesan

Verified User
Joined
Nov 27, 2005
Messages
33
Hello,

My host installed DirectAdmin control panel for me today, but when i logged in, it shows the following error in numerous places :

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

I tried emailing my host numerous times, but they aren't responding, so i finally lost my patience and googled the error for a solution and I finally arived at the solution, which was :

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

So, when I issued that command on my server as a root user, It started to compile and after, it gave the following error :

gcc: /usr/lib/mysql/libmysqlclient.so: No such file or directory
make: *** [libphp5.la] Error 1

I thought the files were missing, so I did a search for it using the "locate" command and i found them here :

[root@server ~]# locate libmysqlclient
/usr/lib/libmysqlclient.so
/usr/lib/libmysqlclient.so.15
/usr/lib/libmysqlclient.so.15.0.0
/usr/lib/libmysqlclient_r.so
/usr/lib/libmysqlclient_r.so.15
/usr/lib/libmysqlclient_r.so.15.0.0
/usr/lib/mysql/libmysqlclient.a
/usr/lib/mysql/libmysqlclient.la
/usr/lib/mysql/libmysqlclient_r.a
/usr/lib/mysql/libmysqlclient_r.la

My operating system is Fedora Core 7 and my machine is 32-Bit. Can you please advice? I am tierd of waiting for my host to do something about this, i want to fix this my self.
 
Last edited:
Okay, I think i fixed the problem with re-building directadmin by doing this :

Code:
cd /usr/lib/
cp /usr/lib/libmysqlclient.so mysql/
cp /usr/lib/libmysqlclient.so.15 mysql/
cp /usr/lib/libmysqlclient.so.15.0.0 mysql/
cp /usr/lib/libmysqlclient_r.so mysql/
cp /usr/lib/libmysqlclient_r.so.15 mysql/
cp libmysqlclient_r.so.15.0.0 mysql/

Then I re-issued these commands :

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

I got the following results :

Build complete.
Don't forget to run 'make test'.

Make Complete
Copying php.ini..
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
[activating module `php5' in /etc/httpd/conf/httpd.conf]
Installing PHP CLI binary: /usr/local/bin/
Installing PHP CLI man page: /usr/local/man/man1/
Installing build environment: /usr/local/lib/php/build/
Installing header files: /usr/local/include/php/
Installing helper programs: /usr/local/bin/
program: phpize
program: php-config
Installing man pages: /usr/local/man/man1/
page: phpize.1
page: php-config.1
Installing PEAR environment: /usr/local/lib/php/
[PEAR] Console_Getopt - installed: 1.2.3
[PEAR] Archive_Tar - installed: 1.3.2
[PEAR] Structures_Graph- installed: 1.0.2
pear/PEAR can optionally use package "pear/XML_RPC" (version >= 1.4.0)
[PEAR] PEAR - installed: 1.6.1
Wrote PEAR system config file at: /usr/local/etc/pear.conf
You may want to add: /usr/local/lib/php to your php.ini include_path
Installing PDO headers: /usr/local/include/php/ext/pdo/
PHP 5.2.5 Installed.
Rewriting all users httpd.conf files, please wait...
In debug mode
Debug set to level 10
root priv set: uid:0 gid:0 euid:0 egid:0
pidfile written
staring queue
done queue
Restarting apache.
Stopping httpd: [ OK ]
Starting httpd: [Sat Mar 01 21:30:42 2008] [warn] module php5_module is already loaded, skipping

Is this correct? have i fixed the problem?
 
cannot find file: /usr/local/bin/php

Hello,

My host installed DirectAdmin control panel for me today, but when i logged in, it shows the following error in numerous places :

cannot find file: /usr/local/bin/php
I tried emailing my host numerous times, but they aren't responding, so i finally lost my patience and googled the error for a solution and I finally arived at the solution, which was :

Code:

cd /usr/local/directadmin/custombuild
./build update
./build clean
./build php n

So, when I issued that command on my server as a root user, It started to compile and after, it gave the following error :

If configure fails try --with-xpm-dir=<DIR>
checking for FT_New_Face in -lfreetype... no
configure: error: Problem with freetype.(a|so). Please check config.log for more information.

*** There was an error while trying to configure php. Check the configure/suphp/configure.php5 file

My operating system is FreeBSD 9.2 and my machine is 64-Bit. Can you please advice? I am tierd of waiting for my host to do something about this, i want to fix this my self.
 
Please try:
Code:
cd /usr/local/directadmin/custombuild
./build update
./build freetype
./build php n
 
I got the following results :

I got the following results :

checking for FT_New_Face in -lfreetype... no
configure: error: Problem with freetype.(a|so). Please check config.log for more information.

*** There was an error while trying to configure php. Check the configure/ap2/configure.php5 file
 
My configure/ap2/configure.php5 file

#!/bin/sh
./configure \
--with-apxs2 \
--with-curl=/usr/local/lib \
--with-gd \
--with-ttf \
--with-gettext \
--with-jpeg-dir=/usr/local/lib \
--with-freetype-dir=/usr/local/lib \
--with-kerberos \
--with-openssl \
--with-mcrypt \
--with-mhash \
--with-mysql=/usr/local/mysql \
--with-mysqli=/usr/local/mysql/bin/mysql_config \
--with-pdo-mysql=/usr/local/mysql \
--with-pcre-regex=/usr/local \
--with-pear \
--with-png-dir=/usr/local/lib \
--with-xsl \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--with-iconv=/usr/local \
--enable-bcmath \
--enable-calendar \
--enable-exif \
--enable-ftp \
--enable-gd-native-ttf \
--enable-magic-quotes \
--enable-safe-mode \
--enable-soap \
--enable-sockets \
--enable-mbstring \
--enable-zip \
--enable-wddx
 
1. rebuild your mysql by:
Code:
./build clean
./build update
./build mysql
2. build a clean php,
first clean all configure:
Code:
./build clean
./build update
./build php y

if you have still errors
please provide them
 
Are you sure there were no errors when you executed the following command?
Code:
./build freetype
 
Back
Top