Cloud Hosting

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.

 


How to Install NGINX on Ubuntu 14.04

Atlantic.Net NOC August 6, 2015 by under Cloud Hosting 0 Comments
Verified and Tested 08/06/15

Introduction

This tutorial will show you how to install Nginx on Ubuntu 14.04 so that you can successfully run a superior performance based web server while easing the load on your system resources. Nginx is a powerful web server software that can be used on your server.

Prerequisites

You need a Ubuntu 14.04 server that is configured with a static IP address. If you do not have a server already, you can visit our cloud hosting page and spin a new server up in under 30 seconds.

Server Preparation

Let’s make sure that your server is fully up-to-date.

apt-get update

With the server up-to-date, we can continue the installation process of your server.

Install Nginx

To install Nginx, we will need to use the apt-get  command so we can install the software:

sudo apt-get install nginx

You will now have NGINX installed on your server and can be verified typing in the following with your IP ADDRESS on your browser (http://YOUR.IP.ADD.RESS )

Your IP can be retrieved from the server with following command:

ifconfig eth0 | grep inet | awk '{ print $2 }'

An example of the default webpage Nginx gives you when installed on Ubuntu 14.04

An example of the default webpage Nginx gives you when installed on Ubuntu 14.04

Configure Nginx

We will now configure Nginx by opening the central configuration file and editing the server_name line with your domain.

nano /etc/nginx/sites-available/default
server {
        listen 80 default_server;
        listen [::]:80 default_server ipv6only=on;

        root /usr/share/nginx/html;
        index index.html index.htm;

        # Make site accessible from http://localhost/
        server_name YOURDOMAIN.com;

        location / {
                # First attempt to serve request as file, then
                # as directory, then fall back to displaying a 404.
                try_files $uri $uri/ =404;
                # Uncomment to enable naxsi on this location
                # include /etc/nginx/naxsi.rules
        }

        # Only for nginx-naxsi used with nginx-naxsi-ui : process denied requests
        #location /RequestDenied {
        #       proxy_pass http://127.0.0.1:8080;
        #}

        #error_page 404 /404.html;

        # redirect server error pages to the static page /50x.html
        #
        #error_page 500 502 503 504 /50x.html;
        #location = /50x.html {
        #       root /usr/share/nginx/html;
        #}

        # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
        #
        #location ~ \.php$ {
        #       fastcgi_split_path_info ^(.+\.php)(/.+)$;
        #       # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
        #
        #       # With php5-cgi alone:
        #       fastcgi_pass 127.0.0.1:9000;
        #       # With php5-fpm:
        #       fastcgi_pass unix:/var/run/php5-fpm.sock;
        #       fastcgi_index index.php;
        #       include fastcgi_params;
        #}

        # deny access to .htaccess files, if Apache's document root
        # concurs with nginx's one
        #
        #location ~ /\.ht {
        #       deny all;
        #}
}

Save the file and restart the Nginx service so the changes take effect.

service nginx restart

Now you can create/upload your web content to the HTML directory of Nginx (Remember to replace the existing index.html file with your index.html which is your home page) The default directory for Ubuntu 14.05 is /usr/share/nginx/html/. Update the index with the following command:

nano /usr/share/nginx/html/

What Next?

You now have your Ubuntu 14.04 server with Nginx installed, you may now begin building high-performance websites using your newly installed web server. Thank you for following along and feel free to check back with us for further updates.


How to Install Apache on Ubuntu 14.04

Atlantic.Net NOC August 5, 2015 by under Cloud Hosting 0 Comments
Verified and Tested 08/5/15

Introduction

This how-to will help you with your install and configuration of Apache on your Ubuntu 14.04 server. Apache is a web server that is very popular in Linux systems and over the Internet. It is used by many Web Hosting companies worldwide because of its popularity and efficiency in hosting sites over the World Wide Web.

Prerequisites

You need a Ubuntu 14.04 server that is configured with a static IP address. If you do not have a server already, you can spin up a secure cloud server in under 30 seconds.

Read More


What Makes Cloud Computing Such a Powerful Technology?

Adnan Raja August 4, 2015 by under Cloud Hosting 0 Comments
  • Cloud – It’s About Getting Things Done
  • Parity of IT Access Throughout the Business World
  • The Case of São Paulo, Brazil
  • Partners to Compete in the Business World

As we all know, technology moves fast. Cloud, which first started to gain prominence in 2006, has been gathering speed ever since. According to a forecast from Global Industry Analysts, Inc. (GIA), the worldwide market for cloud hardware alone will exceed $79 billion by 2018. Cloud has become so widespread behind the scenes that the vast majority of people probably have no idea how much they are relying on the technology.

Read More


How to Set up Nameservers via cPanel & WHM

Jason Mazzota August 4, 2015 by under Cloud Hosting 0 Comments
Verified and Tested 03/25/2015

Introduction

This guide will take you through configuring Nameservers on a cPanel & WHM server. These Nameservers will be your name servers and will be usable for your domains. This guide assumes you have already gone through the initial configuration steps for your server and that you can log into WHM. We will be using BIND for our DNS services.

Prerequisites

A server with CentOS 6 and cPanel & WHM.  If you do not have a server, consider the industry-leading cloud hosting solutions from Atlantic.Net.

Set up Nameservers via cPanel & WHM

The first step to creating your name servers in cPanel & WHM is to obtain a secondary public IP address and assign it to your server. If you do not know how to do this, you may follow the guide here. It is recommended to reserve 2 IPs for this so that your Nameservers run on their IPs and your websites can run on a third.

The second thing to do is make sure that BIND or your choice of DNS services is enabled. To do this in WHM type “nameserver” in the search bar and go to “Nameserver Selection.” Once there simply look to see if you have a service enabled. If not, we will be using BIND in this tutorial so select BIND and hit “Save.” This will install BIND.

Once the check/installation of DNS services is complete, you will want to make sure you have your website or DNS zone created. You can follow this guide here if you do not know how to make a website or this guide here if you do not know how to make a DNS zone. You only need to do one or the other. If you are hosting your website on this server, then create the website, otherwise if your website is elsewhere, just make the DNS zone.

Once you have the website or zone made, you will need to edit it. To do this type “dns” in the search bar and go to the “Edit DNS Zone.” Once there select the website/zone you will be making the nameservers out of and click on Edit.

anet-cpanel-ns-00

Click edit DNS zone

 

In the edit you will be presented by a page similar to the below image. You will want to scroll down to the “Add New Entries Below this Line” section and insert your values for ns1 and ns2 as A records using your reserved IPs. If you did not reserve 2 IPs, you can use the server’s IP for one of the nameservers and the additional IP you reserved as the second. Once done, click “Save.”

anet-cpanel-ns-01

Insert values for ns1 and ns2

 

If you will be using your own nameservers to host the website they are named after, go back to edit the DNS Zone and edit where it has listed the NS records for your domain to be your new nameservers. Hit “Save” to make the changes.

The last thing to do is if you will be using these nameservers for all websites you will create on this server, go to “Basic cPanel & WHM Setup” and scroll down to the bottom. You will find the Nameservers section and here you will want to put in your new nameservers.

Once done, click on Assign IP address and it should correctly assign the IPs that you have assigned the nameservers. Then click “Save” to save the new changes.

anet-cpanel-ns-02

Click Assign IP address on each nameserver

 

And that is it. You have created your own nameservers and can make websites that can utilize them. Please note that after making your own nameservers, propagation throughout the Internet can take up to 48 hours so do expect some downtime while the nameservers propagate.

Do not forget, in order to use the nameservers, you need to set your domains’ nameservers at the Registrar level to point to the nameservers you have created. This includes the nameservers for the domain the nameservers are made from.

And as a last mention of note. If you would like to have proper nameservers that will not go down, it is recommended to have 2 servers with each server acting as one of the nameservers (you simply make a nameserver the IP of each server or additional IP for each server.) You would just need to replicate your DNS zones between the two servers. This is mainly useful if you will be using your nameservers to host websites that are not contained on the same server as your nameservers.


EMM, BYOD & Cloud – How the Cloud Improves Enterprise Mobility Management

Adnan Raja August 3, 2015 by under Cloud Hosting 0 Comments

Cloud computing and enterprise mobility management (EMM) are a perfect combination. A Cloud Hosting option can enable easier deployment, security, and control of EMM scenarios, particularly bring-your-own-device (BYOD).

  • Why BYOD?
  • EMM Via the BYOD Cloud for Security
  • Cloud-Delivered EMM Prevents Time-Wasting
  • Cloud BYOD Optimizes Efficiency
  • Strong Cloud Partner for BYOD

Cloud computing and the gradual transition to a work environment without walls are related trends that create opportunities for businesses. Using cloud, companies can develop a stronger competitive edge and streamline their businesses with mobile, as long as they adopt strong and secure management of their employees’ devices.

Read More


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 Cloud 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 !


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

Brendan Bonner August 1, 2015 by under Cloud 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

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

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 Configure DNS in Windows Server 2012

Jose Velazquez July 27, 2015 by under Cloud Hosting 0 Comments
Verified and Tested 03/18/2015

Introduction

In this how-to we will walk you through Configuring DNS in Windows Server 2012. Domain Name System (DNS) is a system that translates a Domain name to the IP address that is associated with it over the World Wide Web. Once the DNS Server role is installed, it needs to be configured for your domain.

Prerequisites

– A Server with Windows Server 2012
– DNS Server Role installed on your server. See the following article “Install DNS in Windows Server 2012” if you do not have the DNS role installed.

Configuring DNS in Windows Server 2012

Open the Server Manager from the task bar.

Click on DNS/ Right Click your server / select DNS Manger/ Click the Action Tab/ Select Configure a DNS Server.

Select Configure a DNS Server in Windows Server 2012

Select Configure a DNS Server in Windows Server 2012

 

The Configure DNS Server Wizard will come up click Next to continue and select one of the following actions:
– Create a forward lookup zone
A forward lookup zone is a DNS function that takes a domain name and resolves it to an IP address.

– Create forward and reverse lookup zones
A reverse lookup zone is a DNS function that takes an IP address and resolves it to a domain name.

– Configure root hints only
Root hints only  Will have the IP addresses of DNS servers where records can be acquired.

This is the Configure DNS Server Wizard screen output in Windows Server 2012

This is the Configure DNS Server Wizard screen output in Windows Server 2012

 

Select where the DNS data will be maintained for your network resources, and then Click Next

Selecting a Primary Server location in Windows Server 2012

Selecting a Primary Server location in Windows Server 2012

 

Enter your new zone name, in this case, your domain and Click Next.

This is the zone name insert field when configuring DNS in Windows Server 2012

This is the zone name insert field when configuring DNS in Windows Server 2012

 

Create a new zone file or use an existing one from a different DNS server

Creating a Zone file when configuring DNS in Windows Server 2012

Creating a Zone file when configuring DNS in Windows Server 2012

 

Next you select how your server will respond to Dynamic Updates.

Select the do not allow Dynamic Updates option while Configuring DNS in Windows Server 2012

Select the do not allow Dynamic Updates option while Configuring DNS in Windows Server 2012

 

Select whether your DNS server should forward queries or not. If you choose YES, type the IP of the server and click Next. If NO, select No, it should not forward queries and Click Next.

Select one of the options to configure forwarders when Configuring DNS in Windows Server 2012

Select one of the options to configure forwarders when Configuring DNS in Windows Server 2012

 

Click Finish and you’re all set.

Completing the DNS configuration in Window Server 2012

Completing the DNS configuration in Window Server 2012

Congratulations! You have just Configured DNS in Windows Server 2012. Thank you for following along in this How-To feel free to check back with us for any new updates.


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.