Home » Categories » Multiple Categories |
How To Install Linux, Nginx, MySQL, PHP (LEMP) Stack on Debian 7 |
Article Number: 194 | Rating: Unrated | Last Updated: Sun, Jan 5, 2014 at 8:20 PM
|
Lemp Stack: Basic InfoLEMP stack is a group of open source software to get a server up and running. The acronym includes the Linux (L), MySQL (M), and PHP (P) of the more traditional LAMP stack, but switches out Apache for Nginx (pronounced engine x).This tutorial explains how to install nginx/MySQL/PHP-fpm, as well as all of the required repos to download nginx and php-fpm. It will also review how to configure php and nginx, as well as how to create a php info page. 1) Update Apt-GetThe apt-get update command is used to re-synchronize the package index files from their sources. If used in combination with the apt-get upgrade command, they install the newest versions of all packages currently available.At the moment, we only need to do a thorough update: sudo apt-get update 2) Install MySQL on your serverMySQL is a powerful database management system used for organizing and retrieving dataTo install MySQL, open terminal and type in these commands: sudo apt-get install mysql-server php5-mysqlDuring the installation, MySQL will ask you to set a root password. If you miss the chance to set the password while the program is installing, it is very easy to set the password later from within the MySQL shell. Once you have installed MySQL, we should activate it with this command: sudo mysql_install_dbFinish up by running the MySQL set up script: sudo /usr/bin/mysql_secure_installationThe prompt will ask you for your current root password. Type it in. Enter current password for root (enter for none): OK, successfully used password, moving on...The prompt will ask if you want to change the root password. Go ahead and choose N for this option, as the root password should aready be set; however, for the rest of the questions you can simply reply Y to all-- unless there is a reason for you to do otherwise. Now let's install nginx! 3) Install and Configure Nginx on your serverInstallationInitial installation is simple with the apt-get command. sudo apt-get install nginx nginx needs a command to begin running: sudo service nginx startNow if you point your browser to your IP address, it should confirm that nginx was successfully installed on your cloud server. *Run the following command to reveal your server's IP address. ifconfig eth0 | grep inet | awk '{ print $2 }' ConfigurationOpen up the default virtual host file with this command:
|
Attachments
![]()
There are no attachments for this article.
|
How To Setup ownCloud 5 On Ubuntu 12.10
Viewed 5808 times since Sat, Jan 4, 2014
How To Create, Remove, & Manage Tables in PostgreSQL on a Cloud Server
Viewed 3358 times since Mon, Dec 30, 2013
Initial Server Setup with Debian 7
Viewed 3738 times since Fri, Dec 27, 2013
How To Manage Packages In Ubuntu and Debian With Apt-Get & Apt-Cache
Viewed 6847 times since Fri, Dec 27, 2013
How To Install an Upstream Version of Node.js on Ubuntu 12.04
Viewed 2690 times since Sun, Dec 29, 2013
How To Install And Run A Node.js App On Centos 6.4 64bit
Viewed 10486 times since Sun, Dec 29, 2013
How To Install and Secure phpMyAdmin on Debian 7
Viewed 3741 times since Fri, Dec 27, 2013
How To Install Ruby on Rails on Arch Linux with RVM
Viewed 13933 times since Sun, Dec 29, 2013
How To Create a SSL Certificate on Apache for Debian 7
Viewed 2488 times since Fri, Dec 27, 2013
How To Setup a Rails 4 App With Apache and Passenger on CentOS 6
Viewed 3731 times since Thu, Dec 19, 2013
|