Howtos / Articles

Increase PHP Upload Limit on Ubuntu 12.04

A default installation of PHP and Apache on a Ubuntu 12.04 will set a maximum upload limit of 2MB. Quite often you will want to increase this to a larger size. How high you set this limit will depend on your requirements. This howto guide will step you through the process to increase the PHP upload limit.…

Read more [...]

Sticky Session Load Balancing with HAProxy

HAProxy provides a number of methods for maintaining a record of which backend server should handle a specific connection. This is known as creating a ‘sticky’ connection (other terms for this are ‘connection persistence’ and ‘connection affinity’). HAProxy can use the source ip address, url hash, cookies, sessions (checks cookies and url parameter), headers, and more, to determine which backend server to pass the connection to. Add one of the following lines to the HAProxy config file, in the section…

Read more [...]

Installing NGINX, PHP, and MySQL on Ubuntu 10.04 LTS using php-cgi

Nginx (pronounced Engine-X) is a fast & lightweight HTTP and HTTPS web server (it can also act as a reverse proxy, and perform load balancing). (Note: this is a updated version of a similar how to located here, but this article is using php-cgi package instead of php-fpm, and using only default Ubuntu repository’s). Its small memory footprint requirements make it great for systems with small amounts of memory, such as low end cloud servers. Nginx is great for serving…

Read more [...]

Ubuntu PHP-FastCGI init script

Below is an example of a PHP-FastCGI init script for use on Ubuntu systems. This startup init script was copied from http://wiki.nginx.org/Ubuntu-php-fastcgi and slightly modified to keep all start up settings in the one script file. Thanks to the original author. It can also be downloaded in full from: http://www.networkinghowtos.com/wp-content/uploads/scripts/php-fastcgi Remember to “chmod +x” this script to make it executable. This file should be stored in “/etc/init.d” and set to run at startup by running the “sudo /usr/sbin/update-rc.d -f php-fastcgi…

Read more [...]

Installing NGINX, PHP, and MySQL on Ubuntu 10.04 LTS

Nginx (pronounced Engine-X) is a fast & lightweight HTTP and HTTPS web server (it can also act as a reverse proxy, and perform load balancing). Its small memory footprint requirements make it great for systems with small amounts of memory, such as low end cloud servers. Nginx is great for serving static files to users, and is cable of handling more than 10,000 simultaneous connections, but it lacks the embedded module support for PHP as Apache does. Thankfully you can…

Read more [...]



Page 2 of 212