DA admin show cannot find file: /usr/local/bin/php

jayzee

Verified User
Joined
Jul 11, 2007
Messages
13
DA admin show cannot find file: /usr/local/bin/php

It's a centOS 5, apache 2 , php 5 server.

I try recompile but getting an error:

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


error message:

Sorry, I cannot run apxs. Possible reasons follow:

1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page is displayed)

The output of apxs follows:
./configure: line 6669: apxs: command not found
configure: error: Aborting

*** There was an error while trying to configure php. Check the configure/ap2/configure.php5 file
 
I've got exactly the same problem overhere.

When I install a clean CentOS 5 32 or 64 bit operation system plus gcc and gcc-c++ the installation looks finishing fine but something is going weird.

When I log into DirectAdmin for the first time I see the follow message in my menu bar: "/usr/local/bin/php"

I tried a serval reinstalls but no one did it like the normal way.

Could anyone please help me out...

Edit:
Code:
*** There was an error while trying to configure Apache 2. Check the configure/ap2/configufile
 
Last edited:
Thank you for the respons

after ./build update_data I get this message

Code:
[root@server02 custombuild]# ./build update_data
File already exists:    httpd-2.2.6.tar.gz
File already exists:    httpd_2
File already exists:    httpd_2_freebsd
File already exists:    httpd_2_debian
File already exists:    mime.types
File already exists:    mod_perl-2.0.3.tar.gz
File already exists:    curl-7.17.1.tar.gz
File already exists:    pcre-7.4.tar.gz
File already exists:    libmcrypt-2.5.8.tar.gz
File already exists:    mhash-0.9.9.tar.gz
File already exists:    freetype-2.3.5.tar.gz
File already exists:    libiconv-1.12.tar.gz
File already exists:    libxml2-2.6.30.tar.gz
File already exists:    libxslt-1.1.22.tar.gz
File already exists:    icu4c-3_8_1-src.tgz
File already exists:    php-4.4.8.tar.gz
File already exists:    php-5.2.5.tar.gz
File already exists:    php-4.4.8-mail-header.patch
File already exists:    php-5.2.5-mail-header.patch
File already exists:    webalizer-2.01-10-src.tgz
File already exists:    proftpd-1.3.1.tar.gz
File already exists:    suphp-0.6.2.tar.gz
File already exists:    dovecot-1.0.10.tar.gz
File already exists:    dovecot.boot
File already exists:    dovecot.boot.freebsd
File already exists:    dovecot.boot.debian
File already exists:    dovecot.conf
File already exists:    exim.conf.dovecot.patch
File already exists:    autoconf-2.61.tar.gz
File already exists:    automake-1.10.tar.gz
File already exists:    libtool-1.5.24.tar.gz

Another thing, this is the first time DA would not install fully automaticly with Apache2 etc. How is that possible? Is there something changed or something?
 
Looks through the options.conf file and figure out what version of php you need. Then run:

Code:
./build php d

That should get PHP installed for you.
 
I've got exactly the same problem overhere.

When I install a clean CentOS 5 32 or 64 bit operation system plus gcc and gcc-c++ the installation looks finishing fine but something is going weird.

When I log into DirectAdmin for the first time I see the follow message in my menu bar: "/usr/local/bin/php"

I tried a serval reinstalls but no one did it like the normal way.

Could anyone please help me out...

Edit:
Code:
*** There was an error while trying to configure Apache 2. Check the configure/ap2/configufile

Could you post a few lines before the error?
 
I've noticed that apache 2.2.6 wants zlib now.. so try:
Code:
./build zlib
then do:
Code:
./build all d
to reinstall apache/php.

John
 
DirectAdmin Support, you can move it before doApache in doAll() function :)
 
Yes, I will. Just remember the ssh issue we had with compiling zlib though. Sshd doesn't like have libs swaped from beneath it. You squeeze one end of the baloon, and it pops out the other end ;)

EDIT - I'm going to add checkLibz instead of doZlib so it's not done twice.

John
 
I've noticed that apache 2.2.6 wants zlib now.. so try:
Code:
./build zlib
then do:
Code:
./build all d
to reinstall apache/php.

John

i get the following error

Code:
make[2]: Leaving directory `/usr/local/directadmin/custombuild/autoconf-2.61/lib/m4sugar'
autom4te_perllibdir='..'/lib AUTOM4TE_CFG='../lib/autom4te.cfg'         ../bin/autom4te -B '..'/lib -B '..'/lib         --language M4sh --cache '' --melt ./autoconf.as -o autoconf.in
Can't locate Data/Dumper.pm in @INC (@INC contains: ../lib /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at ../lib/Autom4te/C4che.pm line 35.
BEGIN failed--compilation aborted at ../lib/Autom4te/C4che.pm line 35.
Compilation failed in require at ../bin/autom4te line 39.
BEGIN failed--compilation aborted at ../bin/autom4te line 39.
make[1]: *** [autoconf.in] Error 2
make[1]: Leaving directory `/usr/local/directadmin/custombuild/autoconf-2.61/bin'
make: *** [all-recursive] Error 1
xxxx:/usr/local/directadmin/custombuild#
 
fixed it, perl package was not installed

did

apt-get install libdatetime-perl libdbi-perl libdbd-mysql-perl \
libclass-autouse-perl libmd5-perl libdigest-sha1-perl \
libhtml-template-perl libimage-size-perl libmime-lite-perl \
libmime-perl libcompress-zlib-perl libnet-dns-perl \
liburi-perl libhtml-tagset-perl libhtml-parser-perl \
libwww-perl libwww-perl libgd-gd2-perl \
libmailtools-perl libunicode-maputf8-perl libxml-simple-perl \
libio-stringy-perl libdigest-hmac-perl
 
Back
Top