PDA

View Full Version : ubuntu 10.10 directadmin installation



greenm
11-13-2010, 01:48 AM
Hello all,

I am posting this thread to eventually create a perfect install.
First of all i need to say that ubuntu 10.10 64 bit works really good with the directadmin install.

Here are some tips for other people:

I have tried this new installation on a VPS.
The VPS had a ubuntu 10.10 virtual kernel so i had to update it
to the normal server kernel to support quota



apt-get -y update
apt-get -y upgrade
apt-get -y install linux-headers-2.6.35-22-server linux-image-2.6.35-22-server


The following file contains the order in which the boot selection orders the kernels:


vim /boot/grub/grub.cfg

Make sure the following entries are correct:


menuentry 'Ubuntu, with Linux 2.6.35-22-server'

The server kernel stuff should be below the virtual and i moved them to the top so grub will choose the top one which is then the server kernel.
Now reboot the server and check the kernel:


uname -a

Because im aiming here for an installation with a little extra stuff there might be some things you dont need if you dont want them.



apt-get -y install gcc g++ autoconf libdb4.6 libwww-perl iptables quota imagemagick libmagickcore-dev libmagickwand-dev libtidy-dev
cd /tmp
wget http://www.directadmin.com/setup.sh
chmod 777 setup.sh
./setup.sh


Now this is gonna take a while zzz

After its done
Now i dont need named:



vim /usr/local/directadmin/data/admin/services.status
vim /etc/init.d/named (put this on the 2nd line: exit 0;)
killall named


A great firewall tool:



wget http://www.configserver.com/free/csf.tgz
tar -xzf csf.tgz
cd csf
./install.sh
./install.directadmin.sh
chmod 0600 /etc/csf/csf.conf




/usr/local/directadmin/custombuild/build clean
/usr/local/directadmin/custombuild/build update_script
/usr/local/directadmin/custombuild/build update


I setup
/usr/local/directadmin/custombuild/options.conf
accordingly to my needs for example php 5.3



/usr/local/directadmin/custombuild/build all


Now some extra modules:



pecl install imagick
pecl install xdebug
pecl install tidy

wget http://download.suhosin.org/suhosin-0.9.32.1.tar.gz
tar zxvf suhosin-0.9.32.1.tar.gz
cd suhosin-0.9.32.1
phpize
./configure
make
make install

vim /usr/local/lib/php.ini

change:
extension_dir = "/usr/local/lib/php/extensions/

add:
zend_extension = /usr/local/lib/php/extensions/xdebug.so
extension=imagick.so
extension=tidy.so
extension=suhosin.so



mv /usr/local/lib/php/extensions/no-debug-*/* /usr/local/lib/php/extensions/

/etc/init.d/httpd restart