Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
147 commits
Select commit Hold shift + click to select a range
efbe476
trying to add support for Drupal
sk33lz Feb 3, 2012
ccbca2c
wrong syntax on install start for Drupal
sk33lz Feb 3, 2012
673af07
trying to fix /var/run disappearing act
sk33lz Feb 3, 2012
78ff560
trying to pring DB name, user, pass to screen
sk33lz Feb 3, 2012
b7d487b
fixing syntax on echo for DB name, user, pass
sk33lz Feb 3, 2012
c24a57d
fixing syntax on echo for DB name, user, pass
sk33lz Feb 3, 2012
85bbfd0
adding php5-gd install
sk33lz Feb 3, 2012
fea5f04
said it was already installed, so trying apt-get instead
sk33lz Feb 3, 2012
5acd803
have to restart php-cgi after installing GD
sk33lz Feb 3, 2012
e88ec18
setting up proper file permissions for settings.php and files dir
sk33lz Feb 3, 2012
7aec43b
fixed typo
sk33lz Feb 3, 2012
753d781
fixed typo
sk33lz Feb 3, 2012
15057e6
fixing password echo
sk33lz Feb 3, 2012
fedf3c8
updated readme
sk33lz Feb 3, 2012
f73ab7e
fixing readme to point to lowendbox repo
sk33lz Feb 3, 2012
a871cfd
making readme easier to read
sk33lz Feb 3, 2012
93777ac
making readme easier to read
sk33lz Feb 3, 2012
e334751
making readme easier to read
sk33lz Feb 3, 2012
5ff34f0
broke out drupal6 and drupal7 installations individually
sk33lz Feb 3, 2012
87ba0fd
updated readme for d6 and d7 commands
sk33lz Feb 3, 2012
7c78012
fixed rewrite rule for Drupal for Nginx
sk33lz Feb 3, 2012
3351133
actually fixed rewrite rule for Drupal for Nginx
sk33lz Feb 3, 2012
e133809
trying to escape rewrite rule
sk33lz Feb 3, 2012
5ebce16
updated readme to read easier and with my fork URL for now.
sk33lz Feb 3, 2012
776645e
added note to Readme about running as root user
sk33lz Feb 4, 2012
2857ce0
trying to use sed to setup settings.php
sk33lz Feb 6, 2012
6b58e4b
changed syntax on sed command
sk33lz Feb 6, 2012
a271045
needed to terminate substitute command
sk33lz Feb 6, 2012
99154ae
wrong syntax for sed
sk33lz Feb 6, 2012
0e730b7
trying to get sed on one line
sk33lz Feb 6, 2012
9c80331
typo in db pass
sk33lz Feb 6, 2012
e15c4f4
fixed a couple syntax errors to get the full db_url to print properly…
sk33lz Feb 6, 2012
a0b9d8d
isn't printing to file, trying different syntax for file location
sk33lz Feb 6, 2012
8483a00
removed global flag
sk33lz Feb 6, 2012
bf6e9ea
escaping quotes on file location
sk33lz Feb 6, 2012
e3c060d
trying to get syntax right to write to file actually
sk33lz Feb 6, 2012
9cecf05
added some help echoes
sk33lz Feb 6, 2012
514733b
set chmod 644 on settings.php after writing DB info
sk33lz Feb 6, 2012
ab90f59
fixing color on output for help text
sk33lz Feb 6, 2012
6d9f5f0
fixing color on output for help text
sk33lz Feb 6, 2012
124aeae
updated options for drupal6 and drupal7 commands
sk33lz Feb 7, 2012
9ba6a28
added d7 settings.php functionality
sk33lz Feb 7, 2012
78cd3c9
fixing typo
sk33lz Feb 7, 2012
587d26b
changing from cat to sed
sk33lz Feb 7, 2012
8be7b4e
changing from sed to echo
sk33lz Feb 7, 2012
f5d6f68
wrong syntax for echo
sk33lz Feb 7, 2012
87a108f
wrong syntax for echo
sk33lz Feb 7, 2012
cd2a494
trying to escape variable
sk33lz Feb 7, 2012
3ee9a00
closing databases variable in echo
sk33lz Feb 7, 2012
774f37f
added more to Nginx setup for Drupal 6 and 7
sk33lz Feb 11, 2012
cba9810
escaping all $ in the nginx config, was being substitued like a varib…
sk33lz Feb 20, 2012
582f27b
adding ability to add html site easilY
sk33lz Feb 23, 2012
81d7222
added default index.html file
sk33lz Feb 23, 2012
b462c1d
updated for latest Drupal versions, and removed buggy HTTPS code
sk33lz Jun 21, 2012
069d78e
updated README with more info
sk33lz Jun 21, 2012
74b784e
updated README with more info
sk33lz Jun 21, 2012
4d5bf05
updated for D7.15
sk33lz Sep 15, 2012
4be6cfb
updated for Drupal 6.26, 7.15, and added Magento support
sk33lz Oct 11, 2012
b7d7a23
Merge branch 'master' of github.com:sk33lz/lowendscript
sk33lz Oct 11, 2012
5102fa2
added support for MariaDB MySQL alternative and ConfigServer Firewall
sk33lz Oct 11, 2012
cb6d993
finalized config for new features
sk33lz Oct 11, 2012
33ca102
cleaned up some code, added more structure to generated folders withi…
sk33lz Oct 11, 2012
335f982
missed a line
sk33lz Oct 11, 2012
2e448f3
fixed typo in syntax
sk33lz Oct 11, 2012
4a839ed
forgot to add source list for MariaDB
sk33lz Oct 11, 2012
76c9f2b
reverting nginx changes
sk33lz Oct 11, 2012
98024b2
added SSL support for Magento along with Fooman Speedster support
sk33lz Oct 11, 2012
b7bfaba
typo
sk33lz Oct 11, 2012
50d1a00
trying to fix var/www folder creation
sk33lz Oct 11, 2012
ed3b8c4
trying to fix var/www sub-folder creation
sk33lz Oct 11, 2012
c69bcaa
woops, forgot wordpress folder
sk33lz Oct 11, 2012
902f0d6
adding sites-enabled subdirectories
sk33lz Oct 11, 2012
d9478b0
removed sites-enabled folders in config
sk33lz Oct 11, 2012
98214da
removing an error in the nginx config
sk33lz Oct 11, 2012
6ba6450
trying to fix error in Nginx config
sk33lz Oct 11, 2012
8637a9e
removing ssl code
sk33lz Oct 11, 2012
3097a0a
trying to fix error in Nginx config
sk33lz Oct 11, 2012
f572bae
added echo for db info
sk33lz Oct 11, 2012
613512c
updated some typos
sk33lz Nov 20, 2012
b6e7a84
updated some typos
sk33lz Nov 20, 2012
75cd81f
updated some typos
sk33lz Nov 20, 2012
49c3477
updated some typos
sk33lz Nov 20, 2012
e0b8da8
updated some typos
sk33lz Nov 20, 2012
4f2d64f
updating to 12.04
sk33lz Nov 20, 2012
23dc93d
updated some mysql config
sk33lz Nov 20, 2012
fd9f542
removed password part
sk33lz Nov 20, 2012
7862a97
updated for 12.04 again
sk33lz Nov 20, 2012
11b855e
updated mysql for 12.04
sk33lz Nov 20, 2012
49306f8
fixed typo
sk33lz Nov 20, 2012
09693a5
updated
sk33lz Nov 20, 2012
e0bc0dd
updated
sk33lz Nov 20, 2012
021c6e2
fixed typo
sk33lz Nov 20, 2012
5047fca
changed out init.d with service
sk33lz Nov 20, 2012
ae1c154
remove vhosts dirs
sk33lz Nov 20, 2012
1bb594a
fixing typo
sk33lz Nov 20, 2012
0fe1437
fixing typo
sk33lz Nov 20, 2012
3f3da49
fixing typo
sk33lz Nov 20, 2012
aff9c2f
reverted back to old version, too many changes and stuff was breaking
sk33lz Nov 20, 2012
fdf0333
updated for Drupal 7.22
May 30, 2013
42444c6
Updated for Drupal 7.26
dhamaniasad Feb 28, 2014
140de32
Updated latest version of Drupal 6
dhamaniasad Feb 28, 2014
22658de
htop
dhamaniasad Feb 28, 2014
3a5ef33
Updated URL
dhamaniasad Feb 28, 2014
95f1776
htop
dhamaniasad Feb 28, 2014
c39664a
htop
dhamaniasad Feb 28, 2014
5decc95
smartmontools
dhamaniasad Feb 28, 2014
26c0038
README.md
dhamaniasad Feb 28, 2014
93e8b41
formatting
dhamaniasad Feb 28, 2014
ab0c979
formatting
dhamaniasad Feb 28, 2014
3cd35c9
formatting
dhamaniasad Feb 28, 2014
52a8d34
formatting
dhamaniasad Feb 28, 2014
a8d3044
formatting
dhamaniasad Feb 28, 2014
dc3e836
.
dhamaniasad Feb 28, 2014
6f86dea
formatting
dhamaniasad Feb 28, 2014
e25804d
formatting
dhamaniasad Feb 28, 2014
05755af
Formatting
dhamaniasad Feb 28, 2014
f25089c
Added Magento Support
dhamaniasad Feb 28, 2014
5d87462
Removed Magento, nginx needs fixing
dhamaniasad Feb 28, 2014
f6b3ac4
added locate to system
dhamaniasad Feb 28, 2014
b7f7788
locale error fix
dhamaniasad Feb 28, 2014
7bd4985
added locale fix to system
dhamaniasad Feb 28, 2014
1593851
Merge pull request #1 from dhamaniasad/devel
dhamaniasad Mar 1, 2014
43d936f
Fix MySQL
dhamaniasad Mar 1, 2014
05114d4
Merge branch 'devel'
dhamaniasad Mar 1, 2014
ac3ccd1
print ~/.my.cnf
dhamaniasad Mar 1, 2014
b51ff5b
Added print function to setup-debian.sh mysql
dhamaniasad Mar 1, 2014
d91f037
updated after installing locate
dhamaniasad Mar 1, 2014
488cc6a
Fix nginx directory
dhamaniasad Mar 1, 2014
451aad0
Update README
dhamaniasad Mar 1, 2014
f978aa6
Fix WP directories nginx
dhamaniasad Mar 1, 2014
2899f76
wordpress
dhamaniasad Mar 1, 2014
7960db9
Update setup-debian.sh
dhamaniasad Mar 1, 2014
b2fe1b0
Update README.md
dhamaniasad Mar 1, 2014
66013be
nginx
dhamaniasad Mar 1, 2014
3261f48
automatically create parent
dhamaniasad Mar 1, 2014
4026a96
Update README.md
dhamaniasad Mar 1, 2014
2b0003d
Update README.md
dhamaniasad Mar 1, 2014
3589ff7
fix wordpress directory structuring
dhamaniasad Mar 1, 2014
a244dd5
tailing /
dhamaniasad Mar 1, 2014
2de41f4
mv to cp
dhamaniasad Mar 1, 2014
0e82b33
wordpress dir tree
dhamaniasad Mar 1, 2014
6c087f0
*
dhamaniasad Mar 1, 2014
764d574
Update setup-debian.sh
dhamaniasad Mar 14, 2014
73392b8
Update setup-debian.sh
dhamaniasad Mar 20, 2014
f71fa5d
Update setup-debian.sh
dhamaniasad Mar 21, 2014
ec2318c
Merge pull request #1 from dhamaniasad/master
sk33lz May 4, 2019
d3c9cde
Fixed repo path.
sk33lz May 4, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion README

This file was deleted.

113 changes: 113 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
##### 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.

### TESTED ON
* Ubuntu 10.04 LTS, Ubuntu 12.04 LTS
* Debian 5, Debian 6

### INSTALLATION
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

### USAGE
This script should be run by the root user for maximum compatibility.

#### Install System Tools
Installs Dropbear, cron, and inetutils-syslog (replaces rsyslog), htop, smartmontools

Command:

bash setup-debian.sh system

#### Install ConfigServer Firewall
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

#### Install Exim4 Mail Server
Lightweight replacement for sendmail. Re-configured to allow Internet delivery.

Command:

bash setup-debian.sh exim4

#### Install Nginx HTTP Server
Low memory footprint httpd replacement for Apache web server.

Command:

bash setup-debian.sh nginx

#### Install MySQL Database Server
Re-configured to remove innodb support, remove query cache, and reduce key buffer size.

Command:

bash setup-debian.sh mysql

#### Install PHP FastCGI.
Built-in FastCGI running only 1 child process with respawn after 5,000 request.

Command:

bash setup-debian.sh php

#### Install Wordpress
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

#### Install Drupal 6
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

#### Install Drupal 7
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

#### Install Magento Community Ecommerce CMS
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

#### Install HTML Site
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

### SOFTWARE STACK
##### Dropbear
Replaces openssh. Invoked from xinetd.
##### Inetutils-syslogd
Replaces resyslog.
##### Exim4
Replaces sendmail (if installed). Re-configured to allow Internet delivery.
##### Cron
Schedule tasks on your server, similar to that of the task manager in Windows.
##### Nginx
Lightweight httpd replacement for Apache web server.
##### MySQL
Optimized with innodb and query caching removed with reduced key buffer size.
##### PHP
Optimized PHP built with FastCGI and only running 1 child process which respawns ever 5,000 requests.
Loading