DirectAdmin v1.32.2 installation problems on CentOS 5.1 64bit

Flexmedia

Verified User
Joined
Sep 10, 2008
Messages
6
Server infomation :
Server : IBM System x3550
OS : CentOS 5.1 64bit
CPU : Intel Xeon Quad-Core E5420 2.5GHz
RAM : 5 GB
HDD : 140 Gb / RAID 0

I have install clean CentOS 5.1 disable SELINUX and install gcc , gcc-c++ .


installation step:

# wget http://www.directadmmin.com/setup.sh
# chmod 755 setup.sh
# ./setup.sh

Select options 2 for apache/php setup

# Enter your choice (1 or 2): 2
# would you like the default settings of apache 2.2 and php 5 cli? (y/n) : y

install complete :

## INSTALL_COMPLETE
## ACCOUNT_INFO


The following information has been set:

Admin username: admin
Admin password: xxxxx
Admin email: xxxxx


Server IP: xxxxxx
Server Hostname: xxxxxxx

To login now, follow this link:

xxxxx

and enter your Admin username and password when prompted.

You should now visit http://admin.site-helper.com and http://www.directadmin.com/newinstall.html to learn how to get started.

Thank you for using DirectAdmin. Should you have any questions, don't hesitate to contact us at [email protected]

## REPORT_END
Permissions set
*******************************************
*******************************************

Cannot find /usr/local/bin/php
Please recompile php with custombuild, eg:
cd /usr/local/directadmin/custombuild
./build all d


*******************************************
*******************************************

Recompile

# cd /usr/local/directadmin/custombuild
# ./build all d

Error Msg
m -lcrypt -lnsl -lpthread -ldl
/usr/lib/libexpat.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[2]: *** [htpasswd] Error 1
make[2]: Leaving directory `/usr/local/directadmin/custombuild/httpd-2.0.63/support'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/directadmin/custombuild/httpd-2.0.63/support'
make: *** [all-recursive] Error 1

Rebuild Apache again
# ./build apache

Error
/usr/lib/libexpat.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[2]: *** [htpasswd] Error 1
make[2]: Leaving directory `/usr/local/directadmin/custombuild/httpd-2.0.63/support'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/directadmin/custombuild/httpd-2.0.63/support'
make: *** [all-recursive] Error 1

*** The make has failed, do you want to try to make again? (y,n):

Please help me. :o
 
Error rebuild php

Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... no
checking for Apache 1.x module support... no
checking whether to enable Apache charset compatibility option... no
checking for Apache 2.0 filter-module support via DSO through APXS... no
checking for Apache 2.0 handler-module support via DSO through APXS...

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
 
My problem is caused by up2date.

And makse sure to install these before installing DA:

yum install gcc-c++ libxml2-devel libjpeg-devel libpng-devel -y
 
The problem is with 64-bit lib linking. As you notice on 64-bit, you have /lib and /lib64. It's just the dynamic linking in the installer is a bit skewed (welcome to the wonderful world of 64-bit operating systems)

Run
ln -sf /usr/lib64/libgssapi_krb5.so.2.2 /usr/lib/libgssapi_krb5.so

ln -sf /usr/lib64/libkrb5.so.3.3 /usr/lib/libkrb5.so

ln -sf /usr/lib64/libk5crypto.so.3.1 /usr/lib/libk5crypto.so

ln -sf /lib64/libcom_err.so.2 /usr/lib/libcom_err.so

ln -sf /usr/lib64/libexpat.so /usr/lib/libexpat.so

ln -sf /usr/lib64/libm.so /usr/lib/libm.so

ln -sf /usr/lib64/libssl.so /usr/lib/libssl.so
 
Back
Top