Difference between revisions of "LAMP"
m (→First steps guide) |
(move to Apache) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
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. | 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 (web-server) == |
− | [[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. | + | [[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 == | + | ''Nginx'' (pronounced engine x) is one of the preferred services that acts as a web-server, without a web-server the browser wouldn't get any response to its requests for my webpages. |
+ | |||
+ | A web-server's 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 my 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> | ||
+ | |||
+ | == MySQL (database-server) == | ||
[[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. | [[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 == | ||
[[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. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
== Resources == | == Resources == | ||
Line 24: | Line 31: | ||
*[http://www.tutorialspoint.com/html/understanding_url_tutorial.htm Understanding URLs] | *[http://www.tutorialspoint.com/html/understanding_url_tutorial.htm Understanding URLs] | ||
*[https://portforward.com/networking/whatisport.htm What is a port?] | *[https://portforward.com/networking/whatisport.htm What is a port?] | ||
+ | *[http://www.ee.surrey.ac.uk/Teaching/Unix/ UNIX tutorial] | ||
[[Category:Linux]][[Category:Libre software]] | [[Category:Linux]][[Category:Libre software]] |
Latest revision as of 12:11, 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 (web-server)
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.
Nginx (pronounced engine x) is one of the preferred services that acts as a web-server, without a web-server the browser wouldn't get any response to its requests for my webpages.
A web-server's 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 my 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
MySQL (database-server)
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.