DA on Ubuntu notes

bblboy54

Verified User
Joined
Dec 6, 2004
Messages
35
Location
Linden, VA
Hey All,
I'm just starting this thread to put some notes (ongoing) for anyone else brave enough to install DirectAdmin on an Ubuntu server -- and to remind myself later when I screw something up :) . Honestly, it works pretty well... there are jus a few things to keep in mind.

First of all, I installed a Debian 3.1 DirectAdmin license on a dual Pentium3 server with a fresh install of Ubuntu 6.06 Server (Dapper Drake). The installation was seamless. Some things to note:

0> **IMPORTANT** Before you start the DirectAdmin installation, you must do "apt-get install build-essential" as Ubuntu Server does not install compilers by default. Issuing this apt-get command will install everything that is needed.

1> SSH

DA does not install ssh for Ubuntu so you will need to do "apt-get install openssh" to install it.

Ubuntu uses /etc/init.d/ssh for the start/stop script instead of sshd which DA expects. In this case, I opted not to do anything because sshd runs fine from the system level and DirectAdmin can see if the process is running or not but it is not able to start, stop, or restart the process. John from DA suggested linking sshd to ssh but, again, its not a neccesity for me so I didnt do anything with it.

2> ProFTPd
Upon installation of DA ProFTPd launced fine but on my first reboot, it would not restat. Clicking the start option in the control panel simply returned nothing. By logging into the shell and executing "/etc/init.d/proftpd start" I was able to see that there were 2 missing directories. All that needs to be done is to create two empty directories.

/var/run/proftpd/
/var/lock/subsys/

Once you create those, ProFTPd should start working flawlessly


Those are my notes for now... If I run into more issues I'll be sure to post them here for reference purposes.
 
Found this problem occuring in mail.err:

root@m:/var/log# tail mail.err
Oct 8 16:54:16 mojo spamd[26086]: Can't locate URI/Escape.pm in @INC (@INC contains: ../lib /usr/share/perl/5.8.7 /etc/perl /usr/local/lib/perl/5.8.7 /usr/local/share/perl/5.8.7 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl) at /usr/local/share/perl/5.8.7/Mail/SPF/Query.pm line 54, <GEN11> line 23.
Oct 9 13:02:21 m spamd[14304]: Can't locate URI/Escape.pm in @INC (@INC contains: ../lib /usr/share/perl/5.8.7 /etc/perl /usr/local/lib/perl/5.8.7 /usr/local/share/perl/5.8.7 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl) at /usr/local/share/perl/5.8.7/Mail/SPF/Query.pm line 54, <GEN26> line 247.
root@m:/var/log#

This is apparently some missing modules. Not sure if its related to it being an Ubuntu box or not but I wanted to add it to this thread just in case.

John from DirectAdmin suggested this:

wget http://www.cpan.org/modules/by-module/URI/URI-1.35.tar.gz
tar xvzf URI-1.35.tar.gz
cd URI-1.35
perl Makefile.PL
make
make install



so far so good :)
 
Cool! So how's this going? Do you run any DA plugins on your server? I'd be interested to know how well Installatron works and if there are any pathing issues or missing modules.

Also have you had any issues with MySQL?

I'm assuming that you're using the customapache and the php that is compiled with it too?

I'm thinking about trying this out in my "spare time" :eek:

Thanks,
Brandt Milczewski
 
I didnt have to do any custom configuration at all, however, I am not running Installatron on that server or any other DA plugins. I havent had any issues arise and I have been using it for a good few months now without any incidents at all.

As of yet, I havent run into any database issues so I guess the answer to that question is no, no issues :)

Good luck! :)
 
I have DirectAdmin 1.29.0 running on Ubuntu 6.10 with no errors or issues that I can see. Again thanks bblboy54 for the notes :)
 
On Ubuntu server 6.10 the latest version of wget with number 1.10.2 gets installed. This one does handle https connections, but it needs the --no-check-certificate option to work correctly. The setup script has a variable $WGET_OPTION specifically setup for this case.

But... it does not use it everywhere where needed! So I had to change one line:

Code:
root@server:/root# diff setup.sh.orig setup.sh 
826c826
<       $BIN_DIR/wget -O /dev/null https://www.directadmin.com
---
>       $BIN_DIR/wget [COLOR="Red"]--no-check-certificate[/COLOR] -O /dev/null https://www.directadmin.com

and later for the license the same problem:

Code:
root@server:/usr/local/directadmin/scripts# diff install.sh.orig install.sh
101c101
<       wget https://www.directadmin.com/cgi-bin/licenseupdate?lid=${liceid}\&uid=${userid} -O /usr/local/directadmin/conf/license.key --bind-address=${ip} 2> /dev/null
---
>       wget [COLOR="Red"]--no-check-certificate[/COLOR] https://www.directadmin.com/cgi-bin/licenseupdate?lid=${liceid}\&uid=${userid} -O /usr/local/directadmin/conf/license.key --bind-address=${ip} 2> /dev/null

You have to run the /usr/local/directadmin/scripts/install.sh after changing this line manually.

This will load and install most parts, but now I'm still stuck on the following error:

Code:
root@server:/usr/local/directadmin# ./directadmin i
## REPORT_START
Welcome to DirectAdmin verion 1.29.1!
You are now about to run the install program. If DirectAdmin is already
installed, it may destroy previous data.


Here is the information given:

Admin user: admin
Admin email: [email protected]
Server IP: 193.34.166.152
Server IP Netmask: 255.255.254.0
Server Hostname: server.tld
Name Servers:
        ns1.server.tld
        ns2.server.tld
Backup of /etc/httpd/conf/httpd.conf to /etc/httpd/conf/httpd.conf.back successfull
Install of /usr/local/directadmin/data/templates/httpd.conf to /etc/httpd/conf/httpd.conf successfull
Backup of /etc/proftpd.conf to /etc/proftpd.conf.back successfull
Install of /usr/local/directadmin/data/templates/proftpd.conf to /etc/proftpd.conf successfull
Install of /usr/local/directadmin/data/templates/directadmin.conf to /usr/local/directadmin/conf/directadmin.conf successfull
[COLOR="Red"]*** Unable to read directadmin.conf.  Check permissions and make sure that it exists.  Cannot find the diradmin user.  Make sure the diradmin user exists in your system.[/COLOR]<br>

## INSTALL_FAILED
## REPORT_END
 
Back
Top