Difference between revisions of "LAMP"

From Organic Design wiki
(move self procedure to user page)
Line 12: Line 12:
 
== PHP ==
 
== PHP ==
 
[[PHP]] is the programming language that LAMP applications are written in. It runs on the server, but it's also a good idea to get familiar with [[JavaScript]] which runs on the user's side in the browser and all web applications these days use extensively.
 
[[PHP]] is the programming language that LAMP applications are written in. It runs on the server, but it's also a good idea to get familiar with [[JavaScript]] which runs on the user's side in the browser and all web applications these days use extensively.
 +
 +
=== Nginx ===
 +
Nginx (pronounced engine x) is one of the preferred services that acts as a web-server, without it the browser wouldn't respond to requests for my webpages.
 +
a web-servers job is to listen for requests from browsers and deliver the page they ask for.
 +
To see if nginx is installed and running on my local machine I can access it on my browser by typing in the domain name localhost or the ip for it which is 127.0.0.1
 +
If I go to either of those in my browser then I'll see if the computer has a site running on it
 +
 +
I can stop and start nginx by typing in the following shell command
 +
<source>
 +
service nginx stop
 +
service nginx start
 +
</source>
  
 
== Resources ==
 
== Resources ==

Revision as of 10:40, 5 December 2016

LAMP stands for Linux, Apache, MySQL, PHP and refers to the "technology stack" that's used by the most popular web applications such as Wordpress, Drupal, Joomla!, MediaWiki and GNU social to name a few.

Linux

We normally use Debian on our servers, but Ubuntu is also used on some too. On our desktops and notebooks we use Linux Mint. Ubuntu and Linux Mint are both based on Debian, so the instructions for installations and configurations apply to all of three without any changes.

Apache

Apache is the most popular web-server, but these days Nginx is becoming very competitive with it. Nginx is more efficient than Apache and is the web-server we prefer to use in our installations.

MySQL

MySQL is a free open source database server, but a few years back it was bought out by Oracle. While it's still open source, the main developers didn't like the direction Oracle were taking it in, so they split off to make their own version called MariaDB which is the database server we use at Organic Design and recommend for projects we're setting up for others.

PHP

PHP is the programming language that LAMP applications are written in. It runs on the server, but it's also a good idea to get familiar with JavaScript which runs on the user's side in the browser and all web applications these days use extensively.

Nginx

Nginx (pronounced engine x) is one of the preferred services that acts as a web-server, without it the browser wouldn't respond to requests for my webpages. a web-servers job is to listen for requests from browsers and deliver the page they ask for. To see if nginx is installed and running on my local machine I can access it on my browser by typing in the domain name localhost or the ip for it which is 127.0.0.1 If I go to either of those in my browser then I'll see if the computer has a site running on it

I can stop and start nginx by typing in the following shell command

service nginx stop
service nginx start

Resources

See also