Author: Brendan Bonner

How to Install HHVM (HipHop Virtual Machine) on Ubuntu 14.04 using Apache or Nginx

Brendan Bonner August 7, 2015 by under Cloud Hosting 0 Comments
Verified and Tested 8/5/15

Introduction

This guide will show you how to install HHVM (HipHop Virtual Machine) on an Ubuntu 14.04 server using Apache or Nginx. HHVM is a process virtual machine designed to execute Hack and PHP programs. HHVM runs programs at run time rather than prior, which gives HHVM high-caliber performance over a typical PHP install. HHVM was open-sourced and developed by Facebook.

Prerequisites

– A server with Ubuntu 14.04 installed. HHVM requires the 64-bit version.  If you do not have a server, try a market-leading Cloud Server in under 30 seconds from Atlantic.Net

– Apache or Nginx installed on your server. You can follow our guides on installing Apache or Nginx if needed.

Installing HHVM on Ubuntu 14.04 using Apache or Nginx

First we need to add the HHVM key to your Ubuntu Server with the following command:

sudo wget -O - http://dl.hhvm.com/conf/hhvm.gpg.key | apt-key add -

Next we are going to add the HHVM source to your sources list with the following command:

sudo echo deb http://dl.hhvm.com/ubuntu trusty main | sudo tee /etc/apt/sources.list.d/hhvm.list

Now that we added the key and sources it is a good idea to run and update with the following command:

sudo apt-get update

Now we can install HHVM with the following command:

sudo apt-get install hhvm

Make it start on boot by running the command:

sudo update-rc.d hhvm defaults

HHVM includes an excellent script to install FastCGI based on web server you have installed. Run it with the following command:

sudo /usr/share/hhvm/install_fastcgi.sh

Note: On Apache there have been issues with hhvm_proxy_fcgi.conf not matching the default directory and when you access PHP sites you get a 404 File Not Found. To fix this, use your favorite text editor open the following file:

/etc/apache2/mods-enabled/hhvm_proxy_fcgi.conf

Within the file find the line that says:

proxypassmatch ^/(.+\.(hh|php)(/.*)?)$ fcgi://127.0.0.1:9000/var/www/$1

Then replace it with the following:

ProxyPassMatch ^/(.+\.(hh|php)(/.*)?)$ fcgi://127.0.0.1:9000/var/www/html/$1

You can now test it by making a sample PHP page and going to your web browser.

For Nginx open your editor and create the file:

/usr/share/nginx/html/info.php

For Apache open your editor and create the file:

/var/www/html/info.php

Then add the following code to your new file.

<?
php phpinfo();
?>

Now test it by opening up your web browser and going to yourhostname.com/info.php

You should get a page similar to the one below.

An example of the HHVM info page

An example of the HHVM info page

It is a good idea to delete your info.php file as it could be used to attack your server.

Sample Commands for HHVM you may find useful

Start HHVM with:

service hhvm start

Stop HHVM with:

service hhvm stop

Restart HHVM with:

service hhvm restart

You can also see if HHVM is version with the following command:

hhvm --version

What’s Next?

Congratulations on installing HHVM on Ubuntu 14.04. Try it out with some of your favorite CMS’s like WordPress or Drupal and you should see a performance increase especially under load. Thank you for following along this how to, please check back for more updates.

 


Cómo Instalar Linux, Apache, MySQL, PHP (LAMP) sur le serveur cloud Debian 8 ou 8.1 Cloud Server ou VPS

Brendan Bonner August 1, 2015 by under VPS Hosting 0 Comments

Vérifié et testé le 26/04/2015

Introduction

Dans ce guide, nous vous guiderons pendant l’installation de LAMP sur votre serveur cloud Debian 8 ou 8.1 ou votre VPS. LAMP est tout simplement un ensemble de logiciels qui comprend quatre composants. Linux sert de base pour la plate-forme; tous les composants sont installés dans l’environnement Linux. Dans ce cas-ci, nous allons utiliser Debian 8 ou 8.1 comme système d’exploitation de Linux. Nous allons nous servir d’Apache comme service web. MySQL sera utilisé pour la gestion de bases de données, et PHP servira de langage de programmation. Mis ensemble, tous ces éléments forment LAMP, aussi connu sous le nom de pile LAMP.

Prérequis

Un serveur avec Debian 8 doit être installé. Si vous ne disposez pas déjà d’un serveur, vous pouvez visiter notre page d’hébergement cloud ici et en installer un nouveau en moins de 30 secondes.

Installer LAMP sur Debian 8 ou 8.1

Commençons d’abord par installer Apache. Apache est un serveur web disponible en open source, et il s’agit du serveur web le plus populaire au monde.

Installer Apache sur Debian 8 ou 8.1

Installez Apache en effectuant la commande suivante pour commencer l’installation :

apt-get install apache2

Vérifiez si tout fonctionne en ouvrant votre navigateur et en visitant l’adresse http://votreadresseIP

Si vous ne savez pas quelle est votre adresse IP, exécutez la commande suivante :

ip addr show eth0
Un exemple de ipaddr montrant l'adresse IP 192.168.100.10

Un exemple de ipaddr montrant l’adresse IP 192.168.100.10

Dans notre exemple, en inscrivant http://192.168.100.10 dans la barre d’adresse, nous arrivons à la page suivante :

Un exemple de la page par défaut d'Apache sur Debian 8

Un exemple de la page par défaut d’Apache sur Debian 8

Installer MySQL sur Debian 8 ou 8.1

Installer MySQL avec la commande suivante :

sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql

Pendant l’installation, vous serez invité à entrer un mot de passe de racine MySQL. Inscrivez le mot de passe de votre choix.

Un exemple de la mise en le mot de passe lors de l'installation de MySQL .

Un exemple de la mise en le mot de passe lors de l’installation de MySQL .

Sécurisez MySQL à partir des paramètres par défaut avec la commande suivante :

mysql_secure_installation

Remarque : Vous serez invité à répondre à une série de questions. Il suffit de taper N pour changer le mot de passe de racine et Y pour répondre oui à chaque question. Voir la capture d’écran ci-dessous :

Ein Beispiel für die Fragen während mysql_secure_installation

Ein Beispiel für die Fragen während mysql_secure_installation

Installer PHP sur Debian 8 ou 8.1

Commencez l’installation de PHP en effectuant la commande suivante :

apt-get install php5

Créez un fichier PHP de test dans le répertoire suivant avec la commande suivante :

nano /var/www/html/info.php

Insérez le code suivant dans l’espace vide, puis sauvegardez et quittez :

<?php
phpinfo();
?>

Redémarrez Apache afin que tous les changements prennent effet :

service apache2 restart

Testez votre page dans votre navigateur avec l’hyperlien suivant modifié avec votre adresse IP :

http://votreadresseIP/info.php

Un exemple de fichier de php.info qui a été créé sur Debian 8 .

Un exemple de fichier de php.info qui a été créé sur Debian 8 .

Félicitations ! Vous venez d’installer LAMP sur votre serveur Debian 8. Merci d’avoir suivi ce guide. N’hésitez pas à revenir pour plus de mises à jour ou pour jeter un œil à notre guide d’installation de WordPress sur Debian 8 !


Cómo Instalar o Linux, Apache, MySQL, PHP (LAMP) No Debian 8 ou 8.1, Servidor Nuvem ou VPS

Brendan Bonner August 1, 2015 by under VPS Hosting 0 Comments

Verificado e Testado 04/26/2015

Introdução

Nesse Guia de Procedimentos, nós te guiaremos para instalar o LAMP no seu Debian 8 ou 8.1, Servidor Nuvem ou VPS. LAMP é simplesmente um pacote de software que consiste de 4 componentes. Linux é a base da plataforma; todos os componentes estão instalados dentro do ambiente Linux. Nesse caso, nós usaremos o Debian 8 ou 8.1 para Linux OS. Será usado o Apache para serviço na web. MySQL será usado para o gerenciamento do banco de dados, e o PHP será a linguagem de programação. Tudo junto forma-se o LAMP, que também é chamado de LAMP Stack.

Pré-Requisitos

Um servidor com o Debian 8 instalado. Se você ainda não tiver um servidor, você pode visitar a nossa página de Hospedagem de Nuvem aqui e gerar um novo servidor dentro de 30 segundos.

Instalando o LAMP no Debian 8, 8.1

Primeiro instalaremos o Apache. Apache é um servidor de rede de código aberto e é o servidor de rede mais popular do mundo.

Read More


Linux, Apache, MySQL, PHP (LAMP) auf Debian 8 oder 8.1 Cloud Server oder VPS installieren

Brendan Bonner August 1, 2015 by under VPS Hosting 0 Comments

Überprüft und getestet am 26.4.2015

Einleitung

In dieser Anleitung werden Sie erfahren, wie Sie LAMP auf Ihrem Debian 8 oder 8.1 Cloud Server oder VPS installieren LAMP ist ganz einfach ein Software-Bundle, das aus vier Komponenten besteht. Linux stellt dabei die Basis der Plattform dar, da alle Komponenten innerhalb der Linux-Umgebung installiert werden. In diesem Fall werden wir Debian 8 oder 8.1 als Linux-OS verwenden. Apache wird für den Webserver eingesetzt. MySQL nutzen wir für die Datenbankverwaltung und PHP als Programmiersprache. Diese Komponenten bezeichnet man zusammengenommen als LAMP-Stapel.

Voraussetzungen

Ein Server, auf dem Debian 8 installiert ist. Falls Sie noch keinen Server haben, können Sie hier unsere Cloudhosting-Seite besuchen und innerhalb von 30 Sekunden einen neuen Server einrichten.

LAMP auf Debian 8 oder 8.1 installieren

Fangen wir zunächst damit an, Apache zu installieren. Apache ist ein Open-Source-Webserver und wird weltweit am häufigsten als Webserver eingesetzt.

Apache auf Debian 8 oder 8.1 installieren

Installieren Sie Apache mit dem folgenden Befehl, um die Installation zu starten:

apt-get install apache2

Überprüfen Sie, ob alles funktioniert, indem Sie Ihren Browser öffnen und auf http://ihreipadresse gehen

Falls Sie unsicher sind, wie Ihre IP-Adresse lautet, führen Sie den folgenden Befehl aus:

ip addr show eth0
Ein Beispiel, bei dem ip addr die IP-Adresse 192.168.100.10 ausgibt

Ein Beispiel, bei dem ip addr die IP-Adresse 192.168.100.10 ausgibt

In unserem Beispiel würden wir dann also http://192.168.100.10 in die Adresszeile eingeben und die folgende Seite erhalten:

Ein Beispiel für die Standard-Apache- Seite auf Debian 8

Ein Beispiel für die Standard-Apache- Seite auf Debian 8

MySQL auf Debian 8 oder 8.1 installieren

Installieren Sie MySQL mit dem folgenden Befehl:

sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql

Während der Installation werden Sie dazu aufgefordert, ein Root-Passwort für MySQL einzugeben. Legen Sie ein beliebiges Passwort fest.

Ein Beispiel für die Einstellung, die der MySQL- Kennwort während der Installation.

Ein Beispiel für die Einstellung, die der MySQL- Kennwort während der Installation.

Sichern Sie Ihr MySQL ab, indem Sie mit dem folgenden Befehl die Standardeinstellungen überschreiben:

mysql_secure_installation

Hinweis: Sie werden dazu aufgefordert, eine Reihe von Fragen zu beantworten. Geben Sie einfach N bei der Änderung des Root-Passworts ein und Y für Ja bei allen weiteren Fragen, wie im folgenden Screenshot dargestellt:

Ein Beispiel für die Fragen während mysql_secure_installation

Ein Beispiel für die Fragen während mysql_secure_installation

PHP auf Debian 8 oder 8.1 installieren

Installieren Sie PHP mit dem folgenden Befehl, um die Installation zu starten:

apt-get install php5

Erstellen Sie eine PHP-Testdatei in dem folgenden Verzeichnis mit dem unten stehenden Befehl:

nano /var/www/html/info.php

Geben Sie den folgenden Code in das leere Feld ein. Speichern Sie den Code anschließend und schließen Sie das Programm.

<?php
phpinfo();
?>

Starten Sie Apache neu, damit die Änderungen übernommen werden:

service apache2 restart

Testen Sie die Seite in Ihrem Browser mit dem folgenden Hyperlink, wobei Sie natürlich Ihre IP-Adresse einsetzen müssen:

http://ihreipadresse/info.php

Ein Beispiel für die php.info Datei, die auf Debian 8 erstellt wurde.

Ein Beispiel für die php.info Datei, die auf Debian 8 erstellt wurde.

 

Glückwunsch! Sie haben soeben LAMP auf Ihrem Debian 8 Server installiert. Vielen Dank, dass Sie dieser Anleitung gefolgt sind. Bitte besuchen Sie diese Seite wieder für neue Updates oder lesen Sie sich die Anleitung zur Installation von WordPress auf Debian 8 durch!


How to Install OpenVAS Vulnerability Scanner on CentOS 7

Introduction

This how-to will guide you on installing OpenVAS (Open Vulnerability Assessment System) on CentOS 7. The OpenVAS application is free and open source vulnerability scanner and vulnerability management solution. With the significant Vulnerabilities that have come out recently it is a good idea to have a scanner that can detect vulnerabilities on the systems that you manage.

Prerequisites

A server with CentOS 7 installed.  If you do not have a server, why not fire up an extremely fast SSD cloud server from Atlantic.Net

Install OpenVAS Vulnerability Scanner on CentOS 7

We first need to install the Atomic repo with the following command:

wget -q -O - http://www.atomicorp.com/installers/atomic | sh

NOTE: If wget is not installed, install it with the following command:

yum install wget

Read More


How to Install WordPress on Vesta Control Panel

Introduction

This tutorial will show you how to install WordPress on the Vesta Control Panel. Vesta Control Panel is a free open source control panel that is an excellent alternative to cPanel. WordPress is a content management system that is also free and open source.

Prerequisites

A server with Vesta Control Panel and website created.  You can follow this guide to install Vesta, and you can follow this guide to make a website.

Read More


How to Make a Website on Vesta Control Panel

Introduction

This tutorial will show you how to make a website on the Vesta Control Panel. Vesta Control Panel is a free open source control panel that is an excellent alternative to cPanel. Making a website on Vesta is a very simple process, but if you have never done it, it can be cumbersome.

Prerequisites

A server with Vesta Control Panel installed.  If you do not have one, you can follow this guide.

If you would like to use a domain name, login to your registrar’s control panel and point the domain name to your servers IP. Otherwise, you can just use your server’s IP address.

Read More


How to Install Vesta Control Panel on Ubuntu 14.04

Brendan Bonner July 21, 2015 by under Cloud Hosting 0 Comments

Vesta Control Panel Illustration by Walker Cahall

Vesta Control Panel Illustration by Walker Cahall

Introduction

This tutorial will show you how to install Vesta Control Panel on Ubuntu 14.04. Vesta Control Panel is a free open source control panel that is an excellent alternative to cPanel. After the install completes, you will have Web, DNS, Database, Mail, and FTP Server. Vesta installs Nginx on the front-end and Apache on the back-end which essentially gives the best of both worlds.

Prerequisites

A server with Ubuntu 14.04 installed.  If you do not have a server, Atlantic.Net has a full selection of options, including our super-fast SSD cloud servers!

Installing Vesta Control Panel on Ubuntu 14.04

Download the Vesta Control panel install script with the following command:

curl -O http://vestacp.com/pub/vst-install.sh

Once downloaded we can start the script by running the following command:

bash vst-install.sh

Your terminal should look similar to the one below.

An example of the Vesta install. Hit Y and then enter

An example of the Vesta install. Hit Y and then enter

Type Y and then enter to proceed to the next step.

Enter a valid email address and then hit enter.

Enter a valid email address and then hit enter.

Enter your email address and hit enter.

Note: It is important to enter the correct email address as your server will send important information to it.

Either hit enter to accept the default hostname or set a new and then hit enter.

Either hit enter to accept the default hostname or set a new and then hit enter.

At this step, you can set your hostname or keep your current hostname by hitting enter. After hitting enter, the install will begin.  Vesta says it can take up to 15 minutes; however, most of the time it is much less.

After selecting the hostname, the installation will begin.

After selecting the hostname, the installation will begin.

Once the installation is complete, you should get an email similar to the one below. It will have the Vesta control panel link, username, and password.

Once the installation is complete, you will get a screen that has the control panel login

Once the installation is complete, you will get a screen that has the control panel login

Likewise, you should get an email like the email below, with the same information as above.

An example of the email sent by Vesta to the email you set up earlier.

An example of the email sent by Vesta to the email you set up earlier.

We can now login to the Vesta control panel, by using one of the links from the terminal or email.

An example of the Vesta login page

An example of the Vesta login page

Once you login, you will get a screen similar to the one below.

An example of the Vesta control panel after logging in

An example of the Vesta control panel after logging in

What Next?

Congratulations on installing the Vesta Control panel on Ubuntu 14.04. Thank you for following along this howto, please feel free to check back for further updates, or follow our guide on making a website on Vesta here.


How to Install Hiawatha Web Server On CentOS 7

Brendan Bonner July 14, 2015 by under Cloud Hosting 0 Comments
Verified and Tested 07/3/15

Introduction

This tutorial will show you how to install Hiawatha Web Server on CentOS 7. Hiawatha is a web server built with the focus on security. It has built-in rules that can prevent cross-site scripting and forgery, SQL injections, and resource expenditure. Although its focus is on security, it also excels in performance due to its lightweight design.

Prerequisites

A server with CentOS 7 installed.  If you do not have a server, Atlantic.Net offers reliable SSD Cloud Hosting that can be launched in under 30 seconds.

Installing Hiawatha on CentOS 7

Before we install Hiawatha, we need to make sure that our firewall is in order.

First, we need to update our firewall to allow HTTP and HTTPS traffic.

Check to see if your firewall is running by running

sudo systemctl status firewalld

If the firewall is not running, run the following command:

sudo systemctl start firewalld

If you want the firewall to start when CentOS 7 boots up, run the following command:

sudo systemctl enable firewalld

To allow HTTP and HTTPS, run the following commands:

sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https

You need to run the following command so that the rules above take effect.

sudo firewall-cmd --reload

Now that we have taken care of the firewall, we can install Hiawatha. In this how-to we are going to use the repo provided by Anku. Download the RPM with the following command:

sudo wget http://anku.ecualinux.com/7/x86_64/anku-release-8-1.noarch.rpm

Note: In some instances, you may not have wget installed, install it with the following command:

sudo yum install wget

Now that the RPM has been downloaded we can install it with the following command:

sudo rpm -ivh anku-release-8-1.noarch.rpm

Install Hiawatha with the following command:

sudo yum install hiawatha

Run the following command to start Hiawatha:

sudo service hiawatha start

We can now verify Hiawatha is working by opening your browser and entering the URL http://your-server-address. You should get an “Installation successful” page similar to the image below.

Note: If you do not know your IP address, run the following command:

sudo ip addr show eth0
An example of using the ip addr command and getting the IP 192.168.100.10

An example of using the ip addr command and getting the IP 192.168.100.10

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

 

An example of the Hiawatha installation web page

An example of the Hiawatha installation web page

Using the default settings, you can put your web content in the following directory:

/var/www/hiawatha

For any configuration changes that you may want to make, you can go to the following directory:

/etc/hiawatha

Congratulations on installing Hiawatha webserver on a CentOS server. Thank you for following along in this How-To, and check back with us for any new updates.


How to Install WordPress on a Nginx LEMP Stack Using Ubuntu 14.04

WordPress Illustration by Walker Cahall

WordPress Illustration by Walker Cahall

Verified and Tested 07/3/15

Introduction

This how-to will show you how to install Nginx, MySQL, PHP and WordPress on an Ubuntu 14.04 cloud server. LEMP is a web service stack that consists of a Linux operating system, Nginx (pronounced “engine-x”) as the web server, MySQL for database management, and PHP as the programming language. WordPress is a content management system that is free and open source.

Prerequisites

A server with Ubuntu 14.04 installed.

Install WordPress on an Nginx LEMP Stack Using Ubuntu 14.04

First we want to make sure that your server is up to date by running the commands:

sudo apt-get update
sudo apt-get upgrade

Note: Depending on your installation you may need to remove apache2. You can do that by running the commands:

sudo apt-get remove apache2*

Followed by:

sudo apt-get autoremove

Installing Nginx on Ubuntu 14.04

To install Nginx, use the command:

sudo apt-get install nginx

When it asks, “Do you want to continue?”, hit Enter.

Start the Nginx service with the following command:

sudo service nginx start

We can now test Nginx by going to your hostname or IP address in your browser’s address bar. If you do not know your server’s IP address, you can run the following command:

ifconfig

You should get a result similar to the image below.

An example of ifconfig showing the IP address of 192.168.0.192

An example of ifconfig showing the IP address of 192.168.0.192

In our example, 192.168.0.192 is the IP address. So in our browser we would go to http://192.168.0.192.

You should see a web page that looks like the image below.

This example is the default Nginx web page on Ubuntu 14.04

This example is the default Nginx web page on Ubuntu 14.04

Now that Nginx is installed, we can move on to installing MySQL.

Installing MySQL on Ubuntu 14.04

Install MySQL with the command:

sudo apt-get install mysql-server

When it asks, “Do you want to continue?”, hit Enter.

Shortly after, a screen similar to the image below will appear.  You need enter a password for your MySQL root user. It should be a strong password.

Insert your secure password for your new MySQL root password

Insert your secure password for your new MySQL root password

Hit Enter to continue. Once you have hit Enter, a new screen will appear prompting you to re-enter the password you just picked.

Retype your MySQL password

Retype your MySQL password

Now that MySQL is installed, we need to do the MySQL secure installation by running the command:

sudo mysql_secure_installation

Enter your MySQL root password. When it asks, “Change the root password?”, type “N” followed by Enter. The rest of the questions are up to you. For standard installations, you can hit Enter for the defaults.

An example of the MySQL secure installation

An example of the MySQL secure installation

Now that MySQL is installed, we can install PHP.

Installing PHP on Ubuntu 14.04

Install PHP with the following command:

sudo apt-get install php5 php5-fpm php5-mysql

When it asks, “Do you want to continue?”, hit Enter.

For Nginx to work with PHP correctly, we need to edit the Nginx configuration file. In this how-to, we are going to use a simple Nginx configuration.

First, we need to move the original configuration file to a new filename. Run the command:

sudo mv /etc/nginx/sites-available/default /etc/nginx/sites-available/default.old

Using a text editor of your choice, we are going to make a file called default in /etc/nginx/sites-available. For nano use the command:

sudo nano /etc/nginx/sites-available/default

Copy the following into your text editor:

server {
        listen       80;
        server_name  your_site_name.com;
        root /usr/share/nginx/html;
        index index.php index.html;

        location / {
                try_files $uri $uri/ =404;
        }

        error_page 404 /404.html;
        error_page 500 502 503 504 /50x.html;

        location = /50x.html {
                root /var/www/html;
        }

        location ~ \.php$ {
                try_files $uri =404;
                fastcgi_pass unix:/var/run/php5-fpm.sock;
                fastcgi_index index.php;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                include fastcgi_params;
        }
}

In nano, to exit and save, hit Ctrl+x, type “y”, and then Enter.

Since we made changes to the configuration file, we need to restart Nginx, by running the command:

sudo service nginx restart

We are now going to create a simple PHP page to test.

Using a text editor of your choice, we are going create a file called info.php in /usr/share/nginx/html/.

sudo nano /usr/share/nginx/html/info.php

Copy the following into your text editor.

<?php
phpinfo();
?>

In your browser, you can go to http://Your-Hostname/info.php or http://Your-IP-Address/info.php. As above, in this example, we would use http://192.168.0.192/info.php.

You should see a web page similar to the one below.

An example of the info.php web page

An example of the info.php web page

Once you are done testing, it is a good idea to remove the info.php file since it may give a potential attacker information that can be used to craft a particular attack against your server. To do that run the command:

sudo rm /usr/share/nginx/html/info.php

Also, we can remove the default index.html file with the following command:

sudo rm /usr/share/nginx/html/index/html

Now that LEMP is installed, we can install WordPress

Setting up the MySQL database for WordPress on Ubuntu 14.04

We are going to start off by setting up the MySQL database by running the following commands:

sudo mysql -u root -p

When prompted, enter your MySQL root password that you set up when installing MySQL.

In MySQL, enter the following commands:

create database wordpress character set utf8 collate utf8_bin;

Make sure you set a secure password where it says [insert-password-here]:

grant all privileges on wordpress.* to [email protected] identified by "[insert-password-here]";
flush privileges;
exit

Get the Latest WordPress Install on Ubuntu 14.04

Now that the database is created, we can download the latest version of WordPress with the following command:

sudo wget http://wordpress.org/latest.tar.gz

The latest package will download to the directory that you are currently in, with the file name latest.tar.gz. We need to decompress the file by running:

sudo tar -xzvf latest.tar.gz

Configure WordPress on Ubuntu 14.04

Next, we need to copy wp-config-sample.php to wp-config.php, which is where WordPress gets its base configuration. To do that, run:

sudo cp wordpress/wp-config-sample.php wordpress/wp-config.php

In your favorite text editor, edit wordpress/wp-config.php.

sudo nano wordpress/wp-config.php

For a basic setup, we need to have the following.

define(‘DB_NAME’, ‘wordpress’);

define(‘DB_USER’, ‘wordpressuser’);

define(‘DB_PASSWORD’, ‘[insert-password-here]’);

It should look like this when completed:

What wp-config.php should look like once you have edited it

What wp-config.php should look like once you have edited it

Next, we need to move the WordPress folder to your web directory.

sudo cp -r wordpress/* /usr/share/nginx/html

Note: Your web directory may be different based on your configuration.

Finish Up Through The WordPress Web Installation.

Now, we can go to the WordPress web installation by entering your hostname or IP address in your browser’s address bar.

An example of the WordPress web installation

An example of the WordPress web installation

From here, all that is needed to do is to follow along with the WordPress install and give the information required.

Congratulations! You have just installed WordPress on an Nginx LEMP stack using Ubuntu 14.04. Check back for more updates. For more information on WordPress, you may want to check out the WordPress Codex.

Atlantic.Net

Atlantic.net offers managed hosting services which include a layer of business-essential managed services to your hosting packages. Contact us today for more information.


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

We use cookies for advertising, social media and analytics purposes. Read about how we use cookies in our updated Privacy Policy. If you continue to use this site, you consent to our use of cookies and our Privacy Policy.