Webserver

http://www.onlamp.com/pub/a/onlamp/2004/02/05/lamp_tuning.html
http://www.ibm.com/developerworks/web/library/wa-ltwebserv/

debian lamp

sudo aptitude install apache2 php5 libapache2-mod-php5
sudo aptitude install mysql-server mysql-client php5-mysql

ubuntu lamp stack

if you need support for ubuntu server, consider using LTS (Dapper or Hardy) version and call Polaris for support

sudo tasksel install lamp-server

https://help.ubuntu.com/community/ApacheMySQLPHP
sudo apt-get install apache2 mysql-server php5 libapache2-mod-php5 php5-xsl php5-gd php-pear libapache2-mod-auth-mysql php5-mysql

sudo sed -i ’s/; extension=mysql.so/extension=mysql\.so/g’ /etc/php5/apache2/php.ini

#That’s a series of 3 spaces after ’s/;

sudo /etc/init.d/apache2 restart

http://dotdeb.org/howto:php5_and_php4_on_the_same_apache?s=install
http://www.ubuntugeek.com/install-the-lamp-stack-with-3-commands.html
http://www.ubuntugeek.com/build-low-cost-lamp-server-using-ubuntu-edgy-eft-in-about-15min.html
http://www.enterprisenetworkingplanet.com/netos/article.php/3712031

lamp:

  • apachefriends/xampp
  • easyeclipse.org
  • bitnami.org

awstat

ruby on rails

sudo aptitude install rubygems build-essential
sudo gem update
sudo gem install rails --include-dependencies

save ram on vps hosting

dropbear with xinetd

# /etc/xinet.d/dropbear
service ssh
{
    socket_type     = stream
    only_from       = 0.0.0.0
    wait            = no
    user            = root
    protocol        = tcp
    server          = /usr/sbin/dropbear
    server_args     = -i -g
    disable         = no
}

tuning mysql

[mysqld]
port            = 3306
socket          = /var/lib/mysql/mysql.sock
skip-locking
key_buffer = 16K
max_allowed_packet = 1M
table_cache = 4
sort_buffer_size = 64K
read_buffer_size = 256K
read_rnd_buffer_size = 256K
net_buffer_length = 2K
thread_stack = 64K
skip-bdb
skip-innodb

[mysqldump]
quick
max_allowed_packet = 16M

[mysql]
no-auto-rehash
#safe-updates

[isamchk]
key_buffer = 8M
sort_buffer_size = 8M

[myisamchk]
key_buffer = 8M
sort_buffer_size = 8M

[mysqlhotcopy]
interactive-timeout

apache

http://www.pantz.org/software/apache/webservertuningtips.html
http://httpd.apache.org/docs/2.0/misc/perf-tuning.html
http://slashdot.org/askslashdot/99/08/28/2348205.shtml
http://www.askapache.com/htaccess/speed-up-sites-with-htaccess-caching.html
http://www.askapache.com/apache/
http://elliottback.com/wp/archives/2007/04/15/why-my-wordpress-site-is-so-much-faster-than-yours/
http://david.fullrecall.com/website-optimization

nginx

security

ubuntu firewall

allow ssh and web access, then enable firewall.
you can add more ports for https/smtp/pop3/etc…

ufw allow proto tcp from any to any port 22
ufw allow proto tcp from any to any port 80
ufw enable

control panel

stats, logs and reports

Add a New Comment
or Sign in as Wikidot user
(will not be published)
- +
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License