This package represents a script to install the latest NginX, MySQL and PHP (with APC and Suhosin):
- NginX 1.0.3 stable
- PHP 5.3.6
- APC 3.1.9
- Suhosin Extension 0.9.32.1
All the steps are described at http://vladgh.com/blog/install-nginx-and-php-php-fpm-mysql-and-apc. Many thanks to Vlad for his work so far. It's highly recommended to run this installer on a fresh installed system. This is tested with Ubuntu 10.04, 10.10 and 11.04, both 32 bits and 64 bits, on official Amazon EC2 Ubuntu images.
Make sure you have Git installed on your Ubuntu System:
sudo apt-get install git-core screen
Clone this repository, and get the latest stable version of this script:
git clone git://github.com/vladgh/VladGh.com-LEMP.git
cd VladGh.com-LEMP
Run the installer; I recommend running everything inside a screen session because if your connection drops you can easily come back with screen -rad
sudo screen bash install.sh
If you need an earlier version checkout the appropriate tag before running the install script:
git checkout 2.3
After the installer is finished (this will take a long time depending on your server specifications), you can go to your servers address and you will see the PHP info page. Also, if you go to:
- http://example.com/apc.php you will find the APC Cache information page;
- http://example.com/nginx_status for the NginX statistics;
- http://example.com/status?html for the FPM statistics.
If you want to report an issue you can use the tracker available at https://github.com/vladgh/VladGh.com-LEMP/issues.
** All content provided here including the scripts is provided without any warranty. You use it at your own risk. I can not be held responsible for any damage that may occur because of it. By using the scripts I provide here you accept this terms. **
- Upgraded NginX to the latest 1.0.3 stable and APC to 3.1.9.
- Upgraded NginX to the latest 1.0.2 stable and APC to 3.1.8.
- Temporary fix for Ubuntu 11.04 libraries path.
- Upgraded NginX to the latest 1.0.0 stable
- Upgraded PHP to the latest 5.3.6
- Down graded Nginx to the stable 0.8.54 instead of the development version.
- Cleared the screen of messages and redirected all output to install.log;
- Removed GEOIP default install;
- Created sites-available/enabled combo for Nginx;
- Added multiple checks.