注意:

The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.

Difference between revisions of "Web-server-stack"

From Funtoo
Jump to navigation Jump to search
m (update to package template)
Line 4: Line 4:


=== Email Servers ===
=== Email Servers ===
*[[Package:Ssmtp|Ssmtp]]
* {{Package|mail-mta/postfix}}
*[[Package:Postfix|Postfix]]
* {{Package|mail-mta/ssmtp}}
*[[Package:Exim|Exim]]
* {{Package|mail-mta/exim}}
*[[Package:Sendmail|Sendmail]]
* {{Package|mail-mta/sendmail}}
* {{Package|mail-mta/nullmailer}}
 
=== FTP Servers ===
It is common practice to use FTP servers to host files for downloading.
 
* {{Package|net-ftp/vsftpd}}
* {{Package|net-ftp/proftpd}}
* {{Package|net-ftp/pure-ftpd}}
* {{Package|net-ftp/qshare}}


== Webserver ==
== Webserver ==
Line 13: Line 22:


=== Databases ===
=== Databases ===
*[[Package:MySQL|MySQL]]
* {{Package|dev-db/mysql}}
*[[Package:Mariadb|Mariadb]] maria is a drop in replacement for mysql
maria is a drop in replacement for mysql
*[[Package:Percona-server|percona]] percona is a drop in replacement for mysql
* {{Package|dev-db/mariadb}}
*[[Package:Postgresql|Postgresql]]
percona is a drop in replacement for mysql
*[[Package:Sqlite|sqlite]]
* {{Package|dev-db/percona-server}}
* {{Package|dev-db/postgresql-server}}
* {{Package|dev-db/sqlite}}


=== Languages ===
=== Languages ===
*[[Package:Php|PHP]]
* {{Package|dev-lang/php}}
*[[Package:Perl|Perl]]
* {{Package|dev-lang/perl}}
*[[Package:Python|Python]]
* {{Package|dev-lang/python}}


=== Web Servers ===
=== Web Servers ===
*[[Package:Apache|Apache]]
* {{Package|www-servers/apache}}
*[[Package:Nginx|nginx]]
* {{Package|www-servers/cherokee}}
*[[Package:Lighttpd|Lighttpd]]
* {{Package|www-servers/nginx}}
* {{Package|www-servers/tengine}}
* {{Package|www-servers/lighttpd}}
 


=== Reverse Proxies & load balancing ===
=== Reverse Proxies & load balancing ===
Reverse proxies are useful, they cache static data, and shuck out cached pages rather than hitting the web server.  Several web servers have this functionality built in.
Reverse proxies are useful, they cache static data, and shuck out cached pages rather than hitting the web server.  Several web servers have this functionality built in.
*[[Package:Varnish|Varnish]]
* {{Package|www-servers/varnish}}
*[[Package:Squid|Squid]]
* {{Package|net-proxy/squid}}


== Post install ==
== Post install ==
Line 38: Line 52:


=== Firewalls ===
=== Firewalls ===
*[[Package:Nftables|Nftables]]
* {{Package|net-firewall/nftables}}
*[[Package:Iptables|Iptables]]
* {{Package|net-firewall/iptables}}
*[[Package:Firewalld|Firewalld]]
* {{Package|net-firewall/firewalld}}
*[[Package:Ufw|Ufw]]
* {{Package|net-firewall/ufw}}


=== Dynamic Firewalling ===
=== Dynamic Firewalling ===
*[[Package:Sshguard|Sshguard]]
* {{Package|app-admin/sshguard}}
*[[Package:Fail2ban|Fail2ban]]
* {{Package|net-analyzer/fail2ban}}


=== Benchmarking ===
=== Benchmarking ===
Line 52: Line 66:
* http://yslow.org/
* http://yslow.org/
* http://getfirebug.com/
* http://getfirebug.com/
* [[Package:Sysbench|Sysbench]]
* {{Package|app-benchmarks/sysbench}}
* [[Package:Phoronix-test-suite|Phoronix-test-suite]]
* {{Package|app-benchmarks/phoronix-test-suite}}
* [[Package:Iozone|Iozone]]
* {{Package|app-benchmarks/iozone}}
* [[Package:Piozone|Piozone]]
* {{Package|app-benchmarks/piozone}}
* [[Package:Siege|Siege]]
* {{Package|app-benchmarks/siege}}
* [[Package:Ramspeed|Ramspeed]]
* {{Package|app-benchmarks/ramspeed}}
* [[Package:Jmeter|Jmeter]]
* {{Package|app-benchmarks/jmeter}}

Revision as of 04:58, September 26, 2014

Pre-install considerations

Ssl wild card certificates can use the same certificate to cover several subdomain names. As in https://wiki.funtoo.org https://www.funtoo.org https://forums.funtoo.org can all use the same certificate. https://funtoo.org would not be covered under the wildcard, so Threesixes (talk) suggests using http://domain.tld as a http navigation splash page directory. All that is required to setup a ca signed ssl certificate is an email on the server. https://www.startssl.com offers free ssl ca certificates, though there are several other certificate providers. Some web applications have http hard coded into the css style sheets urls instead of using relative urls, so they need to be changed to https or relative if you lose your styles.

Email Servers

FTP Servers

It is common practice to use FTP servers to host files for downloading.

Webserver

Web servers come in several varieties. The most common stack is known as LAMP which stands for linux apache mysql php. Threesixes (talk) suggests setting up the web server stack by selecting the database first, then scripting language second, and web server 3rd.

Databases

maria is a drop in replacement for mysql

percona is a drop in replacement for mysql

Languages

Web Servers


Reverse Proxies & load balancing

Reverse proxies are useful, they cache static data, and shuck out cached pages rather than hitting the web server. Several web servers have this functionality built in.

Post install

There are several considerations to take into account with a web server install, such as setting up an email server, setting up a firewall, firewalling web applications, and dynamically firewalling attackers.

Firewalls

Dynamic Firewalling

Benchmarking

It's a good idea to benchmark your system, server, & websites. There are several tools to assist you in doing this.