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
- https://help.ubuntu.com/ubuntu/serverguide/C/index.html
- http://doc.ubuntu.com/ubuntu/serverguide/C/index.html
- https://help.ubuntu.com/community/Servers
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
- http://blog.katipo.co.nz/?p=34
- http://ubuntu-tutorials.com/2008/01/16/configuring-awstats-on-ubuntu-server/
ruby on rails
sudo aptitude install rubygems build-essential
sudo gem update
sudo gem install rails --include-dependencies
save ram on vps hosting
- http://wiki.vpslink.com/index.php?title=Low_memory_MySQL_/_Apache_configurations
- http://emergent.urbanpug.com/?p=60
- http://wiki.joyent.com/accelerators:kb:reducing-memory-usage
- http://hostingfu.com/article/use-dropbear-ssh-to-save-memory
- http://www.lowendbox.com/blog/replacing-openssh-with-dropbear/
- http://www.neotitans.com/resources/vps-minimal-configuration.html
- http://www.linuxfocus.org/English/November2000/article175.shtml
- http://www.csc.liv.ac.uk/~greg/sshdfilter/
- http://www.azein.com/blog/2007/10/06/stretching-64mb-as-much-as-you-can/
- http://www.lowendbox.com/blog/tuning-for-64mb-virtual-private-server/
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
- http://wiki.codemongers.com/NginxHttpProxyModule#proxy_store
- http://hostingfu.com/article/nginx-and-mirror-demand
security
- http://publib.boulder.ibm.com/infocenter/systems/index.jsp?topic=/com.ibm.aix.baseadmn/doc/baseadmndita/restricted_shell.htm
- http://ubuntu-tutorials.com/2006/12/17/secure-apache-webserver-with-mod_security-ubuntu-6061-610/
- http://howtoforge.com/apache_mod_security
- http://www.debuntu.org/2006/08/13/86-secure-your-apache2-with-mod-security
- http://www.cyberciti.biz/tips/linux-unix-restrict-shell-access-with-rssh.html
- http://ibsh.sourceforge.net/
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
- webmin
- virtualmin
- ispconfig
- ravencore
- webcfg
- http://www.riseuplabs.org/grimoire/web-server/control-panels/
- openvps
Post preview:
Close preview