Skip to content

HTTPS clone URL

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.
conf_files
ext
init_files
install_files
web_files
CHANGELOG.mkd
LICENSE.mkd
README.mkd
TODO
install.sh

README.mkd

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 http://vladgh.com/blog/install-nginx-and-php-php-fpm-mysql-and-apc 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 www.pledgie.com !

HOW TO:

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

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.

Utilities:

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).
  • update_nginx.sh script which you can use to upgrade the current nginx.
    • you can run it with sudo env PATH=$PATH bash ext/update_nginx.sh 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.
  • update_php.sh - upgrades the current php (sudo env PATH=$PATH bash ext/update_php.sh 5.3.10).
  • update_apc.sh - upgrades the current apc (sudo env PATH=$PATH bash ext/update_apc.sh 3.1.19).

CONTRIBUTING:

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 www.pledgie.com !

If you want to report an issue you can use the tracker available at https://github.com/vladgh/VladGh.com-LEMP/issues.

DISCLAIMER:

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

License:

Creative Commons License
VladGh.com-LEMP 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.