lamp

How to Install Apache, MySQL, PHP (LAMP) stack on Ubuntu 16.04

Brendan Bonner March 1, 2016 by under VPS Hosting 0 Comments
LAMP Illustration by Walker Cahall http://www.waltronic.net/

LAMP Illustration by Walker Cahall

Verified and Tested 06/22/16

Introduction

In this How-To, we install LAMP on an Ubuntu 16.04 Server. LAMP is a simple software bundle made of 4 components, Linux, Apache, MySQL, and PHP. Linux the core of the platform, in this case, we are using Ubuntu 16.04. Apache is the web server, majority of the web servers in the world are running Apache MySQL is a database management system, developed by Oracle. PHP is an extremely popular programming language that is widely used in web development. Altogether this forms LAMP or LAMP stack.

Prerequisites

A server with Ubuntu 16.04  installed. Atlantic.Net can help with VPS Hosting.

Read More


How to Install Apache, MySQL, PHP (LAMP) On Arch Linux

Jose Velazquez January 12, 2016 by under VPS Hosting 0 Comments
LAMP - Lighting created by Walker Cahall

LAMP – Lighting  created by Walker Cahall

Verified and Tested 1/12/16

Introduction

This how-to will help you with your LAMP installation in Arch Linux so that you can successfully run a high available solid platform for your web environment. LAMP is simply a software bundle that consists of 4 components that work together to form a powerful web server.  However, in this setup the acronym’s are as follows: Linux (L) is the core of the platform which will sustain the other components. Apache (A) is used for the web service. MySQL (M) is used for database management,  and PHP (P) is used as the programming language.

Prerequisites

You need an Arch Linux server that is configured with a static IP address. If you do not have a server already, please consider our cheap and reliable VPS Hosting plans and spin a new server up in under 30 seconds.

Read More


Thoughts from the Creator of LEMP Stack

The LAMP stack is still the king as far as open-source development bundles go, but LEMP has quickly gained ground over the last few years. Let’s learn more about this increasingly popular web development stack.

  • What is a LEMP Stack?
  • A Look at its Components
  • More on Nginx and its Users
  • Thoughts from Igor Sysoev
  • Nginx vs. Apache in the Real World
  • One-Click LEMP Stack Hosting

What is a LEMP Stack?

In 1998, tech reporter Michael Kunze wrote an article for the German magazine Computertechnik, demonstrating how a developer can work with free open-source software instead of using proprietary systems. In that piece, Kunze became a rock star in the open-source community for being the first person to introduce the concept of LAMP.

Read More


How to Install LAMP using Atlantic.Net’s One-Click Install

Jose Velazquez November 12, 2015 by under VPS Hosting 0 Comments
LAMPs created by Walker Cahall

LAMPs created by Walker Cahall

Verified and Tested 10/31/15

Introduction

Atlantic.Net is actively working towards providing an exceptional customer experience for everyone, whether you are Tech savvy or not, we want to simplify our services so you can be up and running in no time. This is where the One-Click application installation comes into place. Atlantic.Net is working to ensure that all of the most popular applications are available to you at the click of a button.

In this how-to we will walk you through Atlantic.Net’s one-click VPS hosting LAMP installation. As of now, we offer the LAMP One-click installation runs on an Ubuntu 14.04 LTS Operating System.

Prerequisites

The only requirement that you need to accomplish this task is a valid or active Atlantic.Net cloud account. If you do not have one, feel free to sign up for one here.

Installing LAMP via Atlantic.Net’s One-Click Install

First, log into the Cloud Portal at https://cloud.atlantic.net and select Add Server.

Click on Add Server

Click on Add Server

You will now be prompted to type a server name (in this case our server will be named “One Click LAMP”), and then you will select the location where you want your server created. If you don’t know which location to use, we recommend selecting the one that is closest to your geographical area to ensure the best performance.

Server name and server location

Server name and server location

Then, you will need to click on Applications and then select LAMP. You should see that it will change the icon to LAMP on Ubuntu 14.04.

LAMP application selected

LAMP application selected

Once done, you will need to select the size that you want to create. For this tutorial, an XS server was selected.

Server size selected

Server size selected

Finally, you before you create the server there are two optional add-ons to choose from: SSH Key and Enable Backups.Atlantic.Net highly recommends using both of these features to help improve security and to ensure that all of your server data is backed up.

Once you’ve decided to go with the add-ons or not, you may proceed with the clicking Create Server.

Create Server selected

Create Server selected

You will then see your servers information like the following image. You should receive a copy of this information in your email. Make sure to store your server connection details in a safe place!

Server created and server credentials

Server created and server credentials

Once you’ve received an email stating your server is available you can use an SSH client to access the server, or you can use our Atlantic.Net VNC Console from within your Cloud Panel.  For this tutorial, we are using PUTTY – a free open source SSH client that can be downloaded here. Once your in, you will see the following Welcome message on your terminal session.

Your servers Welcome message with MySQL Credentials

Your servers Welcome message with MySQL Credentials

Now, that the installation is complete we can begin testing out our LAMP components. Since we’re already in the command line, Let us test MYSQL with the following command which will confirm that it is running.

service mysql status
MySQL status

MySQL status

Then, we will test Apache by going to your web browser and typing http://YOUR.IP.ADD.RESS you should see the following screen.

Apache verification page online

Apache verification page online

Finally, we can test PHP by completing the following steps. We must create a test PHP file which can be accomplished with the following command:

nano /var/www/html/test.php

You will then paste the following PHP script in the empty document and then save your file.

<?php
phpinfo();
?>

Restart Apache so these setting can take affect. Do this with the following command:

service apache2 restart

OK! Finally, test PHP by going to your web browser and typing http://YOUR.IP.ADD.RESS/test.php you should see the following screen.

PHP verification page online

PHP verification page online

What Next?

Congratulations! You have just installed LAMP using Atlantic.Net’s One-Click Install. Thank you for following along in this How-To and feel free to check back with us for latest updates.


Turning on the LAMP: The Clapper for Developers

Sam Guiliano November 10, 2015 by under VPS Hosting 0 Comments

What is LAMP, and how can you use it to light the way of development with a simple hand motion?

  • What is LAMP?
  • Platform vs. Stack
  • Operating System – Linux
  • Webserver – Apache
  • Database – MySQL
  • Scripting Language – PHP
  • One-Click LAMP: The Clapper for Developers

Clap On! Clap Off! You may remember the jingle for the “as seen on TV” product The Clapper, a sound-activated electrical switch that captivated the imagination with its simple brilliance. Just as you can turn on a lamp with that simple hand motion of bringing your hands together, you can turn on a LAMP Hosting with the simple hand motion of clicking a mouse button.

Read More


How to Install LAMP On Fedora 23 (Linux, Apache, MySQL And PHP)

Brendan Bonner November 5, 2015 by under VPS Hosting 0 Comments
Verified and Tested 11/05/15
LAMP Magic In Your Hands created by Walker Cahall

LAMP Magic In Your Hands created by Walker Cahall

Introduction

In this How-To, we will walk you through installing LAMP stack on a Fedora 23 server.  LAMP is the most common web server configurations on the web. LAMP is the framework for a broad collection of web-based software, like WordPress, Drupal, Joomla and other web-hosting platforms. We will be using Fedora 23 for our Linux installation in this how-to. Apache is our web server; MariaDB is our database management system, and PHP is our scripting language.

Prerequisites

A server with Fedora 23 installed. If you do not have a Fedora 23 server, why not spin up a lighting-fast SSD virtual private server.

Installing Lamp on Fedora 23

We are going to start out by making sure that our system is up to date with the following command:

dnf update

Hit Y and then Enter to when it asks “Is this ok [y/N]” during the updates.

Also, let’s update our firewall to allow HTTP and HTTPS traffic to our server:

firewall-cmd --set-default-zone=public
firewall-cmd --permanent --zone=public --add-service=http
firewall-cmd --permanent --zone=public --add-service=https
firewall-cmd --reload

We are now ready to install Apache.

Install Apache on Fedora 23

Install Apache by running the following command:

dnf install httpd

Hit Y and then Enter to when it asks “Is this ok [y/N]” during the install.

Start Apache with the following command:

systemctl start httpd.service

You are probably going to want Apache to start on boot; you can do that by running the following command:

systemctl enable httpd.service

Verify Apache is installed by typing http:// and your IP or hostname on your browser.

Don’t know your IP address? Run the following command:

ip addr show eth0
An example of the command ip addr show eth0 showing the ip of 192.168.100.10

An example of the command ip addr show eth0 showing the ip of 192.168.100.10

An example of ip addr showing the IP of 192.168.100.10

In this example we would put http://192.168.100.10 in our browser’s address bar.

 

The default Apache page for Fedora 23

The default Apache page for Fedora 23

 

Install MariaDB on Fedora 23

Install MySQL with the following command for to begin the install:

dnf install mariadb-server

Hit Y and then Enter to when it asks “Is this ok [y/N]” during the install.

Start the service with the following command

systemctl start mariadb

To have MariaDB start on boot, run the following command:

systemctl enable mariadb

You can then check the status of MariaDB to ensure it is running by using the command:

systemctl status mariadb

Set the MariaDB root password and secure MariaDB with the following command:

mysql_secure_installation

You will be asked a series of questions. The first will ask you to enter the MariaDB root password, we just installed MariaDB so there is no password,  just hit Enter. You will then be asked if you would like to set the root password. Hit Y for yes and then create a strong password of your choosing. For the rest of the questions, you most likely would want to just hit enter for the defaults for the most security. However, if there is something you need feel free to customize:

Running mysql_secure_installation for MariaDB on Fedora 23

Running mysql_secure_installation for MariaDB on Fedora 23

 

Install PHP on Fedora 23

We are finishing up LAMP install by installing PHP with the following command:

dnf install php php-mysql

Hit Y and then Enter to when it asks “Is this ok [y/N]” during the install.

We can verify the PHP  installation by creating a test PHP file in the HTML directory below with the following command:

sudo nano /var/www/html/info.php

Insert the following PHP code in the space provided by the text editor. Once done save and exit:

<?php
phpinfo();
?>

Restart the Apache service so that our changes take effect.

sudo systemctl restart httpd.service

Verify that PHP is working correctly by typing the following on your browser.
http://youripaddress/info.php

You should get a page similar to the one below, which will show the PHP version installed among other things.

An example of the info.php web page on Fedora 23

An example of the info.php web page on Fedora 23

It is an excellent idea to remove the info.php file as hackers could use this information to set up an attack against you. Remove it with the following command:

sudo rm /var/www/html/info.php

You can now add your site to the /var/www/html directory

What’s Next?

Congratulations on installing LAMP on Fedora 23. Thank you for following this guide and feel free to check back with us for further updates.


How to Install LAMP on Ubuntu 15.10 (Linux, Apache, MySQL and PHP)

Brendan Bonner October 22, 2015 by under VPS Hosting 0 Comments
LAMP - Lighting created by Walker Cahall

LAMP – Lighting  created by Walker Cahall

Verified and Tested 10/22/15

Introduction

In this how-to we are going to show you how to install a LAMP stack on Ubuntu 15.10.  LAMP is the most common web server configurations on the web. LAMP is made up of 4 parts: Linux, Apache, MySQL, and PHP. LAMP is the foundation for a vast array of web-based software, such as WordPress, Drupal, Joomla and other web-hosting platforms. We will be using Ubuntu 15.10 for our Linux installation in this how-to. Apache is our web server; MySQL is our database management system, and PHP is our scripting language.

Read More


How to Install Linux, Apache, MySQL And PHP (LAMP) On A Ubuntu 12.04 Cloud Server

Brendan Bonner October 19, 2015 by under VPS Hosting 0 Comments
Verified and Tested 10/15/15

Introduction

In this How-To, we are installing a LAMP server using Ubuntu 12.04. LAMP is one of the most widespread and easy to install web server configurations out there. It consists of 4 elements; Linux (In this case Ubuntu), Apache, MySQL, and PHP.

Prerequisites

A server with Ubuntu 12.04 installed. In need of a server? Atlantic.net offers VPS hosting services.

Read More


How to Install Drupal on CentOS 7 with Apache

Jose Velazquez October 15, 2015 by under VPS Hosting 0 Comments
Verified and Tested 09/28/15

Introduction

In this How-To, we will walk you through the install and configuration of Drupal on CentOS 7 with Apache. Drupal is a free content management system that will facilitate the way your content is organized and managed. It has a user-friendly interface that makes customizing your content easy and simple with little effort.

Prerequisites

– You need a CentOS 7 server that is configured with a static IP address.

– You will also need to have LAMP (Linux, Apache, MySQL, PHP) installed. If your server doesn’t have LAMP installed already, see our guide here for a quick installation run through.

Installing Drupal on CentOS 7 with Apache

To get started, log in to your CentOS 7 server via SSH or Console. If you are using the Atlantic.Net VPS hosting service, note that they are setup with minimal installations to avoid having unnecessary packages from being installed and never used. If some software packages that you’re used to using aren’t installed by default, feel free to install them as needed.

Let us download wget and unzip so we can simplify this tutorial.

sudo yum install wget unzip

Before moving on, let’s make sure the system is up to date:

sudo yum update

Read More



New York, NY

100 Delawanna Ave, Suite 1

Clifton, NJ 07014

United States

San Francisco, CA

2820 Northwestern Pkwy,

Santa Clara, CA 95051

United States

Dallas, TX

2323 Bryan Street,

Dallas, Texas 75201

United States

Ashburn, VA

1807 Michael Faraday Ct,

Reston, VA 20190

United States

Orlando, FL

440 W Kennedy Blvd, Suite 3

Orlando, FL 32810

United States

Toronto, Canada

20 Pullman Ct, Scarborough,

Ontario M1X 1E4

Canada

London, UK

14 Liverpool Road, Slough,

Berkshire SL1 4QZ

United Kingdom

Resources