Tutorial for running latest LAMP version on HostJane.

LAMP can run on Ubuntu and CentOS

1. Get server IP and root password

After successful payment is approved, your server will be set up within 2 minutes.

Login to the Hosting Portal.

In the Dashboard under Services, look for the LAMP server you have provisioned.

We offer 24×7×365 support

If you cannot see the server you ordered or the server is not active, please open a support ticket.

Click Manage next to the LAMP server item.

You will be transferred to the server’s dashboard.

Go to the Statistics area.

Below is a sample screenshot of the Server Information.

The Main IP is your virtual machine's IP address.

The Default Password is the root password.

For security, HostJane does not send this to you by email.

You must login to your hosting account to review these credentials.

2. Login with SSH

Login to your server with  PuTTY on Windows or an  OpenSSH client in linux and MacOS devices:

ssh -l root [Your_Server's_IP]
CODE

Replace Your_Server’s_IP with the server IP address given in Statistics.

3. Access your server in the browser

In this example, the server link is: https://123.456.789.1

In this example case the IP is: 123.456.789.1

Your Server Link

https://[Your_Server’s_IP]/

For security, HostJane does not send this to you by email.

When you first access your server IP in a browser, you should see HostJane’s default HTTP server test page.

This denotes correct Apache configuration.

Successfully viewing this page in the browser indicates that the Apache server can serve web pages and is working properly.

Replace this test page with your own contents by navigating to /var/www/html in your server’s file directory.

4. Ignore the browser warning

Open a fresh browser window and paste the link

Hit Enter.

B. Find the HTTPS warning

The warning can be safely ignored.

It will look slightly different depending on which browse you're using. In Chrome it may appear like this:

In Mozilla Firefox, it may look like this:

Click the Advanced or Add Exception link to accept the warning and proceed to the unsafe page.

Why is there a warning?

HostJane cannot configure an SSL certificate (HTTPS://) for an IP address on its own. We need to wait until your domain is pointing to the server, and then assign your FREE SSL certificate to your domain.

Until your domain's A-record is setup, whenever you access your server by HTTPS://, a warning appears in your browser.

Your server comes with a self-signed SSL certificate.

If you access the server link using HTTP://, you will not see the warning. 

C. How to remove the SSL warning

Once your domain's A-record is successfully pointing to your server, HostJane can install your FREE SSL certificate to remove the warning.

Request your FREE SSL certificate

Open a support ticket after your domain is pointed correctly to your server.

You can check when propagation is successful by doing a DNS lookup of your domain's A-record.

Please note that we can only install an SSL certificate on a top-level domain (TLD)

For example: https://www.yourdomain.TLD, where the TLD could be .com, .net, .org, .ca, or any TLD available.

HostJane and our servers work with all domain registrars worldwide.

5. Login with SSH

Login to your server with  PuTTY on Windows or an  OpenSSH client in linux and MacOS devices:

ssh -l root [Your_Server's_IP]
CODE

Replace Your_Server’s_IP with the server IP address given in Statistics.

6. Locating the web document root

After logging in on the root, you can upload files (e.g. html and php) to:

/var/www/html/

Files uploaded to this directory will take the URL structure:

http://[Your_Server’s_IP]/[Uploaded_File]

LAMP on Centos 6

Note that the location of the file directory on Centos 6 servers /var/www/html/ contains a symbolic link to:

/usr/share/httpd/html/

7. Access the MySQL database on LAMP servers

You can connect to the MySQL database by running:

mysql -u root
CODE

You will see a copyright and trademark note to Oracle Corporation:

You should be given a MySQL connection ID.

You now have the basic information to start using your new server running LAMP and begin installing any software.