FreeBSD 9.1 installation troubles Directadmin

DA-Rff

Verified User
Joined
Dec 4, 2006
Messages
119
Problem solved! All thanks for the help. ========please see http://www.directadmin.com/forum/showthread.php?t=45333 how I got it to work =============

I keep running into troubles while trying to install DA on freebsd 9.1

I have tried 2 options:

1: via pkg_add install all files mentioned on: http://files.directadmin.com/services/packages-9.0-release/All/

No luck doing it this way, installation then halts on libidn.so and when I install that via ports it halts again

2: I installed the following ports
gcc: /usr/ports/lang/gcc
g++: included in gcc
opensssl-devel: /usr/ports/security/openssl
gmake: /usr/ports/devel/gmake
perl: included in gmake dacht ik
wget: /usr/ports/ftp/wget
bison: /usr/ports/devel/bison
flex: /usr/ports/textproc/flex
gd: /usr/ports/graphics/gd
cyrus-sas12: /usr/ports/security/cyrus-sasl2
libidn: /usr/ports/dns/libidn

The I got this message plus error:


*************************************
* *
* All parts have been installed *
* *
*************************************

Type: /usr/local/etc/rc.d/httpd restart
*******************************************
*******************************************

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

This appears to be a 64-bit system.
a common cause of http/php compile failures is mentioned here:
http://help.directadmin.com/item.php?id=213


Then also no luck.

So here is my question to anyone who managed to get DA working on FreeBSD 9.1:
What steps did you follow to get it working?

Help very much appreciated, I have a special VPS allocated to test and try to get this to work.

Thanks!
 
Last edited:
FreeBSD 9.1 is brand new. I highly doubt they even had time to test it yet.
 
FreeBSD 9.1 is brand new. I highly doubt they even had time to test it yet.

I know, but the vps reseller only had this latest version, so if there is anybody who has it working, I would be very much obliged!

thanks
 
Does directadmin start...because you can reinstall everything else from custombuild.

You could also update directadmin manually doing this:

http://help.directadmin.com/item.php?id=29

You probably would have to alter some code in the install scripts to get it to fully install.
 
Last edited:
Does directadmin start...because you can reinstall everything else from custombuild.

You could also update directadmin manually doing this:

http://help.directadmin.com/item.php?id=29

You probably would have to alter some code in the install scripts to get it to fully install.

Directadmin does not start, it does not even have a config file after the installation, somehow the installation just does not go anywhere.

I agree that some code needs altering in the install script, and the big question is which code and how to do that.

Thanks for your time and thinking along chatwizard. I also tried your suggestion with the update script, again no luck there.
 
Hello,

1) If php is missing, the compile failed. Type:
Code:
cd /usr/local/directadmin/custombuild
./build all d
and paste us the last 2 pages of output when it stops (if it fails).

2) As for the DA part of finishing the install (to get DA running and add the apache ips.conf), use this:
http://help.directadmin.com/item.php?id=321

Again, any errors, paste them to us. If you're provided with your DA login info.. don't paste them to us :)

John
 
Hello,

1) If php is missing, the compile failed. Type:
Code:
cd /usr/local/directadmin/custombuild
./build all d
and paste us the last 2 pages of output when it stops (if it fails).

2) As for the DA part of finishing the install (to get DA running and add the apache ips.conf), use this:
http://help.directadmin.com/item.php?id=321

Again, any errors, paste them to us. If you're provided with your DA login info.. don't paste them to us :)

John

John, thank you so much!

This is what I did that finally made it work:

cd /usr/local/directadmin
./directadmin i
./directadmin p

Then:
cd /usr/local/directadmin/custombuild
./build all d

Apache now worked, but not yet directadmin, but this is on a vps so I added the ethernet_dev=devicename to /usr/local/directadmin/conf/directadmin.conf

Then I ran the following again:
cd /usr/local/directadmin
./directadmin i
./directadmin p

And bingo I am now in Directadmin on my Freebsd 9.1 server!

So thanks to chatwizrd, Jeff and John for chiming in and helping me out here.
 
One message I see when logged in DA:
cannot find file: /usr/local/bin/php

Any ideas how to solve this as well?

and when running ./build php n I see this warning:

=============warning/results=============
/usr/bin/ld: warning: libcrypto.so.6, needed by /usr/lib/libheimntlm.so, may conflict with libcrypto.so.7
Generating phar.php
Generating phar.phar
PEAR package PHP_Archive not installed: generated phar will require PHP's phar extension be enabled.
clicommand.inc
directorygraphiterator.inc
directorytreeiterator.inc
invertedregexiterator.inc
pharcommand.inc
phar.inc
Build complete.
Don't forget to run 'make test'.
Make Complete
Installing php...
Installing PHP CLI binary: /usr/local/php54/bin/
Installing PHP CLI man page: /usr/local/php54/php/man/man1/
Installing PHP CGI binary: /usr/local/php54/bin/
Installing build environment: /usr/local/php54/lib/php/build/
Installing header files: /usr/local/php54/include/php/
Installing helper programs: /usr/local/php54/bin/
program: phpize54
program: php-config54
Installing man pages: /usr/local/php54/php/man/man1/
page: phpize54.1
page: php-config54.1
Installing PEAR environment: /usr/local/php54/lib/php/
[PEAR] Archive_Tar - already installed: 1.3.7
[PEAR] Console_Getopt - already installed: 1.3.0
[PEAR] Structures_Graph- already installed: 1.0.4
[PEAR] XML_Util - already installed: 1.2.1
[PEAR] PEAR - already installed: 1.9.4
Wrote PEAR system config file at: /usr/local/php54/etc/pear.conf
You may want to add: /usr/local/php54/lib/php to your php.ini include_path
/usr/local/directadmin/custombuild/php-5.4.9/build/shtool install -c ext/phar/phar.phar /usr/local/php54/bin
ln -s -f /usr/local/php54/bin/phar.phar /usr/local/php54/bin/phar
Installing PDO headers: /usr/local/php54/include/php/ext/pdo/
Copying php.ini..
/usr/local/php54/lib/php.ini already exists, skipping.
PHP 5.4.9 Installed.
Writing data to /etc/httpd/conf/extra/httpd-suphp.conf
Done.
Can't open /usr/local/lib/php.ini: No such file or directory.
Can't open /usr/local/lib/php.ini: No such file or directory.
Can't open /usr/local/lib/php.ini: No such file or directory.
================end results


thanks
 
Last edited:
I am not sure what libheimntlm is. The only way I would know to fix the problem is creating a symbolic link from whereever the file libcrypto.so.7 is to libcrypto.so.6 in the same folder. My guess is it is either in /lib or /lib64.

Something like:

Code:
ln -s /lib/libcrypto.so.7 /lib/libcrypto.so.6
 
I am not sure what libheimntlm is. The only way I would know to fix the problem is creating a symbolic link from whereever the file libcrypto.so.7 is to libcrypto.so.6 in the same folder. My guess is it is either in /lib or /lib64.

Something like:

Code:
ln -s /lib/libcrypto.so.7 /lib/libcrypto.so.6

Thanks, did not work either, I can not find the so.7 version, but nevertheless ran ln -s /lib/libcrypto.so.7 /lib/libcrypto.so.6

then ran ./build php n again and got the same error as above
 
Yeah no sense in creating the symbolic link if the file isnt anywhere.

Try:

Code:
find / -name libcrypto.so.\*
 
Yeah no sense in creating the symbolic link if the file isnt anywhere.

Try:

Code:
find / -name libcrypto.so.\*

I found it in: /usr/local/lib/

So I then ran: ln -s /usr/local/lib/libcrypto.so.7 /usr/local/lib/libcrypto.so.6

then ran ./build php n again and got this error configure: afterthe line: checking for gzgets in -lz... no
configure: error: ZLIB extension requires gzgets in zlib

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

one step forward it seems..
 
Try ./build zlib to see if it fixes it.

no luck either, quite at a loss now, I have webbycart people doing sysadmin for me but they refuse to further work on FreeBSD Directadmin boxes because they say there was too much trouble with that combination.

I would hate to have to move away from FreeBSD, so if DA support has further clues, please share.
 
No offense regarding your hoster but afaik FreeBSD 9.1 is the NEXT release of FreeBSD and is only intended for testing, not for production environments.
Besides the fact that DirectAdmin clearly has some issues with this version, you might also run into other non-directadmin related issues.

Edit: you might try running a 'portsnap update' first, as it has happened before that brandnew freebsd versions were missing some dependencies.
 
Last edited:
Back
Top