Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Latest NginX, MySQL, PHP (with APC and Suhosin)
tag: 5.5.0

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.


This package represents a script to install the latest NginX, MySQL and PHP (with APC and Suhosin):

  • NginX 1.1.19 (development) or 1.0.15 (stable)
  • PHP 5.3.10 or PHP 5.4.0
  • APC 3.1.10
  • Suhosin Extension 0.9.33 (at this moment it is not available with PHP 5.4)

All the steps are described at It's highly recommended to run this installer on a fresh installed system. This is tested with Ubuntu 10.04 and 11.10, both 32 bits and 64 bits, on official Amazon EC2 Ubuntu images.

If you find this interesting and you want to keep the development active, please click on the button below to donate:

Click here to lend your support to: LEMP Stack and make a donation at !


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://

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 ./

After the installer is finished (this will take a long time depending on your server specifications), you MUST set your mysql root password:

sudo mysqladmin -u root password MYPASSWORD

You can go to your server's address and you will see the PHP info page. Also, if you go to:

In order to have immediate access to new paths you should also execute source /etc/environment. This command reloads the new environment variables.


In the "ext" folder you will also find some utilities:

  • nxensite and nxdissite commands to enable or disable sites in NginX (similar to a2ensite and a2dissite in Apache).
  • script which you can use to upgrade the current nginx.
    • you can run it with sudo env PATH=$PATH bash ext/ 1.0.4 (as you can see there are a few things worth mentioning: you need to declare the current path to the sudo command in order to preserve it; you can only have one argument in a strict form x.x.x; )
    • this script is doing nothing more than reconstructing you current nginx config with the new version. It gets the previous configure options programmatically so if you used 3rd party modules it will not work. Also it saves the current config files and brings them back after the compilation was successful.
  • - upgrades the current php (sudo env PATH=$PATH bash ext/ 5.3.10).
  • - upgrades the current apc (sudo env PATH=$PATH bash ext/ 3.1.19).


This project is still under development. Feedback and suggestions are very welcome and I encourage you to use the Issues list on Github to provide that feedback.

Feel free to fork this repo and to commit your additions. When done, open a pull request to your feature branch.

The formatting conventions already present in these scripts are as follows:

  • Unix (LF), not dos (CRLF) line endings.
  • Two space indentation (GNU Style).
  • Eliminate all trailing whitespace.
  • Aim to wrap code at 80 characters, but favor functionality over wrapping.
  • Preserve existing formatting; i.e. do not reformat code for its own sake.

If you find this interesting and you want to keep the development active, please click on the button below to donate:

Click here to lend your support to: LEMP Stack and make a donation at !

If you want to report an issue you can use the tracker available at


** 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. **


Creative Commons License Script by Vlad Ghinea is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Something went wrong with that request. Please try again.