PDA

View Full Version : Error Installing Custombuild on FreeBSD 6.2



gmdesign
12-01-2007, 10:30 AM
Hi!

I'm installing DA for the first time. I want to install custombuild to use php5 and apache 2.2 but there is error while I'm trying to install. when choosing to customize custombuild options, when options file is fetched then i get error:

setup.sh: /usr/local/directadmin/custombuild/options file can not be found
I checked and file /usr/local/directadmin/custombuild/options exists...

Any ideas?

smtalk
12-01-2007, 10:37 AM
You should report this problem to DirectAdmin support, because I think it's a bug in setup.sh script.

gmdesign
12-01-2007, 12:09 PM
I think I found solution. there are several bugs.

setup.sh line 502

there is code:


$CBPATH/options


this code generated error saying that file can not be found. I changed code and now it looks like this:



if [$OS = "FreeBSD"]; then
sh $CBPATH/options
else
$CBPATH/options
fi


and it works. but there is also a problem in options file:

Line 59 generated error:



if [ "${php5type}" = "cgi" ]; then


I think this line is correct, but it didn't work for me, so I changed this portion of code to:



if [ "${php5type}" = "cli" ]; then
echo "php5_cli=yes" >> ${OPTIONS_CONF}
echo "php5_cgi=no" >> ${OPTIONS_CONF}
else
echo "php5_cli=no" >> ${OPTIONS_CONF}
echo "php5_cgi=yes" >> ${OPTIONS_CONF}
fi


and I think it works now...

trying to install, let's see what I will get :)

DirectAdmin Support
12-01-2007, 01:11 PM
Can anyone else confirm having a problem with the initial download of the options file? I looked over the setup.sh, but the appears to be fine.. (unless I'm missing something). It assumes you've got "fetch" if you're using freebsd, and for custombuild 1.1, it would run the following command:
fetch -o /usr/local/directadmin/custombuild/options http://files.directadmin.com/services/custombuild/options-1.1so see if that command works for you.
Also, try getting a new setup.sh, I believe there was a typo in it for a span of about an hour when that change was first added about a week ago, in case you got that older version in that window of time.

John

Webcart
12-02-2007, 04:34 PM
Can anyone else confirm having a problem with the initial download of the options file? I looked over the setup.sh, but the appears to be fine.. (unless I'm missing something). It assumes you've got "fetch" if you're using freebsd, and for custombuild 1.1, it would run the following command:
fetch -o /usr/local/directadmin/custombuild/options http://files.directadmin.com/services/custombuild/options-1.1so see if that command works for you.
Also, try getting a new setup.sh, I believe there was a typo in it for a span of about an hour when that change was first added about a week ago, in case you got that older version in that window of time.
John

I can confirm a problem with option file during DA install on Centos 5 64bit:


Would you like the default settings of apache 2.2 and php 5 cli? (y/n): n
You have chosen to customize the custombuild options. Please wait while options configurator is downloaded...

--15:44:10-- http://files.directadmin.com/services/custombuild/options-1.1
Resolving files.directadmin.com... 72.35.85.222
Connecting to files.directadmin.com|72.35.85.222|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9555 (9.3K) [text/plain]
Saving to: `/usr/local/directadmin/custombuild/options'

100%[===========================================================>] 9,555 --.-K/s in 0.08s

15:44:11 (122 KB/s) - `/usr/local/directadmin/custombuild/options' saved [9555/9555]

./setup.sh: /usr/local/directadmin/custombuild/options: /bin/sh^M: bad interpreter: No such file or directory
beginning pre-checks, please wait...


I've fixed it by converting options file into UNIX format (fix in blue):


if [ $OS = "FreeBSD" ]; then
fetch -o $CBPATH/options $SERVER/custombuild/options-1.1
else
$WGET_PATH -O $CBPATH/options $SERVER/custombuild/options-1.1
fi

if [ -e $CBPATH/options ]; then
/usr/bin/dos2unix $CBPATH/options
chmod 755 $CBPATH/options
$CBPATH/options
else
echo "unable to download the options file. Using defaults instead.";
fi

DirectAdmin Support
12-02-2007, 05:00 PM
Thanks, I've fixed both options files. I'll let smtalk know to use a unix file editor ;)

John

Webcart
12-03-2007, 08:44 AM
Thank you for the prompt response.
Please also take a look at DA install on Centos 5 64bit using custombuild (http://www.directadmin.com/forum/showthread.php?t=22579) thread where I documented some other installation issues.