Giter VIP home page Giter VIP logo

vladgh.com-lemp's Introduction

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

Note:

  • At this moment the Suhosin extension is not available for PHP 5.4.

You can install your preferred versions for any of the programs. Just edit the OPTIONS file and change them accordingly.

It is highly recommended to run this installer on a fresh installed system.

This is tested automatically on:

  • Ubuntu 10.04, 11.10 and 12.04, both 32 and 64 bit, on official Amazon EC2 Ubuntu images.
  • Debian 6, both 32 and 64 bit, on RightScale Debian 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

Start a screen session:

screen

I recommend running everything inside a screen session because in case your connection drops you can easily come back with screen -rad. If you use something else (ex: byobu) you can skip this step.

Edit the OPTIONS file and change ENABLED='yes'. This is were you can chose to install the MySQL Server or modify the versions for any of the programs, as well as the paths.

Run the installer:

sudo ./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 - upgrades or modifies NginX (sudo ext/update_nginx.sh 1.3.2).
  • update_php.sh - upgrades or modifies PHP (sudo ext/update_php.sh 5.4.4).
  • update_apc.sh - upgrades or modifies APC (sudo ext/update_apc.sh 3.1.10).

NOTES:

  • The update_* scripts above can be used to upgrade the software, or change current configure arguments.
  • You can only have one argument in a strict form x.x.x.
  • The CONFIGURE_ARGS variable inside can be modified, but make sure the installation directory (--prefix) is the same.

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

Copyright 2012 Vlad Ghinea

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

vladgh.com-lemp's People

Contributors

dggreenbaum avatar gaurish avatar johnduhart avatar nimrody avatar paudam avatar vladgh avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.