Currently system, exim4, csf, nginx, mysql, php, htmlsite, drupal6, drupal7 commands are working. Others are being fixed and don't work.
A simple bash shell script to optimize your Debian or Ubuntu VPS server for serving PHP and MySQL driven website platforms like Drupal and Wordpress.
- Ubuntu 10.04 LTS, Ubuntu 12.04 LTS
- Debian 5, Debian 6
Download setup-debian.sh using one of the following commands:
wget --no-check-certificate https://github.com/sk33lz/lowendscript/raw/master/setup-debian.sh
or
git clone git://github.com/sk33lz/lowendscript.git
This script should be run by the root user for maximum compatibility.
Installs Dropbear, cron, and inetutils-syslog (replaces rsyslog), htop, smartmontools
Command:
bash setup-debian.sh system
Installs Config Server Firewall for server security and intrusion detection. Edit the /etc/csf/csf.cfg file to add your email address, or enable specific ports.
Command:
bash setup-debian.sh csf
Lightweight replacement for sendmail. Re-configured to allow Internet delivery.
Command:
bash setup-debian.sh exim4
Low memory footprint httpd replacement for Apache web server.
Command:
bash setup-debian.sh nginx
Re-configured to remove innodb support, remove query cache, and reduce key buffer size.
Command:
bash setup-debian.sh mysql
Built-in FastCGI running only 1 child process with respawn after 5,000 request.
Command:
bash setup-debian.sh php
Installs the latet version of Wordpress. Then creates the Virtual Host configuration for the domain supplied in the command, the MySQL Database, the Database User, and the Database User Password.
Example Command: (Creates a Wordpress site for example.com in /var/www/)
bash setup-debian.sh wordpress example.com
Installs the latest version of Drupal 6. Then creates the Virtual Host configuration for the domain supplied in the command, the MySQL Database, the Database User, and the Database User Password..
Example Command: (Creates a Drupal 6 installation for example.com in /var/www/example.com)
bash setup-debian.sh drupal6 example.com
Installs the latest version of Drupal 7. Then creates the Virtual Host configuration for the domain supplied in the command, the MySQL Database, the Database User, and the Database User Password..
Example Command: (Creates a Drupal 7 installation for example.com in /var/www/example.com)
bash setup-debian.sh drupal7 example.com
Installs the latest version of Magento Community, the best open source Ecommerce solution available today.
Example Command: (Creates a Magento Community installation for example.com in /var/www/vhosts/magento/example.com)
bash setup-debian.sh magento example.com
Creates a directory and sets up the Nginx mapping for the supplied domain name. Also adds a simple index.html file in the domains directory.
Example Command: (Creates HTML site directory for example.com in /usr/share/nginx/www/example.com)
bash setup-debian.sh htmlsite example.com
Replaces openssh. Invoked from xinetd.
Replaces resyslog.
Replaces sendmail (if installed). Re-configured to allow Internet delivery.
Schedule tasks on your server, similar to that of the task manager in Windows.
Lightweight httpd replacement for Apache web server.
Optimized with innodb and query caching removed with reduced key buffer size.
Optimized PHP built with FastCGI and only running 1 child process which respawns ever 5,000 requests.