| Question : | I have a debian based server and want to have a basic lamp install, what is the easiest method? | |
| | Answer : | apt-get update
apt-get -y upgrade
apt-get -y install vim-nox
apt-get -y install ntp ntpdate
apt-get -y install mysql-client mysql-server libpam-mysql openssl rkhunter binutils tinyca ca-certificates
apt-get -y install unzip bzip2 arj nomarch lzop cabextract apt-listchanges daemon zip
apt-get -y install apache2 apache2.2-common apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert libapache2-mod-php5 php5 php5-common php5-gd php5-mysql php5-imap phpmyadmin php5-cli php5-cgi libapache2-mod-fcgid apache2-suexec php-pear php-auth php5-mcrypt mcrypt php5-imagick imagemagick libapache2-mod-suphp
a2enmod suexec rewrite ssl actions include
apt-get -y install pure-ftpd-common pure-ftpd-mysql
apt-get -y install libgd-tools libjasper-runtime liblcms-utils libwmf-bin libmcrypt-dev librsvg2-bin php-log php-soap php5-dev
Its best to change pureftp so it runs as standalone so edit the config file and change the following options
vi /etc/default/pure-ftpd-common
[...]
STANDALONE_OR_INETD=standalone
[...]
VIRTUALCHROOT=true
[...]
Then edit the inetd config
vi /etc/inetd.conf
[...]
#:STANDARD: These are standard services.
#ftp stream tcp nowait root /usr/sbin/tcpd /usr/sbin/pure-ftpd-wrapper
[...]
/etc/init.d/openbsd-inetd stop
/etc/init.d/pure-ftpd-mysql start
apt-get -y install g++ libc6 gcc gawk make texinfo libmysqlclient15-dev
apt-get -y install vlogger webalizer geoip-bin
Alter the webalizer stats
vi /etc/webalizer/webalizer.conf
Incremental
apt-get -y install build-essential autoconf automake1.9 libtool flex bison
cd /tmp
wget http://olivier.sessink.nl/jailkit/jailkit-2.5.tar.gz
tar xvfz jailkit-2.5.tar.gz
cd jailkit-2.5
./configure
make
make install
cd ..
rm -rf jailkit-2.5*
apt-get -y install fail2ban
Job done!
| | |