can't setup directadmin

hanh_bk

Verified User
Joined
Dec 14, 2007
Messages
22
Code:
[root@ln ~]# ./setup.sh 
*** 64-bit OS ***
*** that being said, this should be a CentOS or RHEL system. ***
*** We do not support any other OS in 64-bit.        ***
*** If this is not CentOS or RHEL, install a 32-bit OS (i386)***


*** DirectAdmin already exists ***
    Press Ctrl-C within the next 10 seconds to cancel the install
    Else, wait, and the install will continue, but will destroy existing data


./setup.sh: line 248: syntax error near unexpected token `elif'
./setup.sh: line 248: `elif [ "$OS" = "FreeBSD" ] && [ "$B64" -eq 0 ]; then'
[root@ln ~]#
Please help me
 
I reinstall server after HDD fault. OS i used install server is CentOS 5.4 64 bit
 
I am seeing the same problem. I will see if I can find the cause of the problem or else you will have to email directadmin support and ask for a solution.
 
i think, may be in syntax of script install directadmin has mistake. I need install server now but i cant. This is server hosting for more than 200 customers.
 
I found the error there is a missing fi in the file.

Edit the file setup.sh

Find the line:

Code:
elif [ "$OS" = "FreeBSD" ] && [ "$B64" -eq 0 ]; then

Just before it add this:

Code:
fi

So that it looks like:

Code:
esac
fi

elif [ "$OS" = "FreeBSD" ] && [ "$B64" -eq 0 ]; then
 
Last edited:
Hello,

There was a window of a few hours the other day where there was a typo present in the setup.sh. It has since been resolved.

If you still have the bad setup.sh, just grab a new one:
Code:
wget -O setup.sh http://www.directadmin.com/setup.sh
John
 
Back
Top