Change guide to DigitalOcean

Change guide to DigitalOcean

Most people, while knowing that unmanaged vps services like linode and Digitalocean are the best options today in terms of performance and price, don't dare switch to these beautiful services for fear that they won't have a control panel and have to . start all over from scratch. It is a notion that only geeks with previous experience in Linux server management can switch to these services.

I have to tell you this is not the case. I was also scared at first, but after Google searched for various tutorials available on the Internet, I found it very easy. It is also ultra cheap as you can get a VPS on Digitalocean for as little as $ 5 (512 MB of RAM). The best thing about digitalocean is that you don't have to worry about your credit card stuck there to use their hosting service. You can pay upfront through PayPal, a hefty sum like $ 50, and you can be left alone for 10 months straight.

Now here's a silly guide to setting things up in Digitalocean. This is a guide to installing LAMP (Linux, Apache, MySQL and PHP). Once installed, you can change your wordpress blog or host your PHP or HTML website here.

First go to Digitalocean and create an account there. At the top right, click the settings icon and then click Settings. Scroll down the page and enter the amount that will be sent via PayPal and send it. You will be redirected for PapPal payments. Alternatively, you can also opt for a monthly credit card payment plan.

Change guide to DigitalOcean

Change guide to DigitalOcean

  1. Now click on Create a drop and Create a drop.
  2. Choose Droplet Hostname. It can be anything you want to be.
  3. Select the size of the drop. For websites with low traffic, i.e. with pageviews of less than 1000 per day, the lowest plan is fine. You can update at any time, so don't worry.

Change guide to DigitalOcean

Select the region - Here you have to select the particular hosting server region closest to your visitors. For example, if most of your visitors are from the United States, you can choose the server that will be in New York.

Change guide to DigitalOcean

Select image - Just choose the distribution you want to install. I am selecting here the most famous to configure the LAMP server i.e. Centos 6.5 * 64.

Change guide to DigitalOcean

Finally, click Create a drop.

Change guide to DigitalOcean

download now PUTTY.

Change guide to DigitalOcean

Now click on Putty.exe on your computer. The stucco window will appear. Enter the IP of your Digitalocean drop and click on Open.

Change guide to DigitalOcean

Once opened. It will ask you to log in as :. Just put root there.

It will now ask for the password. Go to the email address you provided when registering with Digitalocean. Enter the password you received in your e-mail box. Note that when you enter the password, it is not displayed. Don't worry, it's a Linux security measure. Go on like this. It will then ask you for a new password, but you will need to enter the old password again first.

Change guide to DigitalOcean

Now our goal here is to install LAMP. Linux is already installed (centos). Follow the following command lines to get it. Just copy the command and right-click where the green cursor blinks. The command will be pasted there. Hit enter and your command will be executed.

First of all install Apache

sudo yum install httpd

Once installed, you can start running Apache on your VPS:

sudo service httpd start

Install Mysql

sudo yum install mysql-server sudo service mysqld start

Safe installation of Mysql

sudo / usr / bin / mysql_secure_installation

In the secure installation of mysql ...

Enter current password for root (enter for none):

Ok, new password created successfully, going on ...

You need to provide positive feedback for the required confirmation as outlined below.

Remove anonymous users? [Y/n] y ... Success! Disallow root login remotely? [Y/n] y ... Success! Remove test database and access to it? [Y/n] y - Dropping test database... ... Success! - Removing privileges on test database... ... Success! Reload privilege tables now? [Y/n] y ... Success! Cleaning up...

Now install PHP

sudo yum install php php-mysql

Finally restart Apache

sudo service httpd restart

Now install PHPmyAdmin

sudo yum install wget cd ~ wget

sudo rpm -ivh epel-release *

sudo yum install phpmyadmin

Now when you put your ip in the address bar you will see a default apache test page. But even after installing phpamyadmin, you cannot access phpmyadmin from your PC. Before that, you will need to allow it in phpamyadmin.conf.

To change phpmyadmin.conf we will use nano as the editor.

sudo yum install nano

sudo nano /etc/httpd/conf.d/phpMyAdmin.conf

Insert this line where you find it

Allow from all Change guide to DigitalOcean

Next, press CTRL + X

(It will ask you to confirm overwriting) Press Y

Press Enter

Restart Apache again

sudo service httpd restart

You can log into your phpamyadmin as http: // Your IP or domain / phpmyadmin /

Once this is done, you have successfully installed LAMP on Digitalocean.

Now, if you are thinking of connecting to your server via filezilla, you can use winscp so you don't have a headache; otherwise you need to install ftp on the server. Winscp does not require any setup and is quite secure compared to filezilla.

Change guide to DigitalOcean

  • Now click on the dots to the right of the folder icon as shown above.
  • Now go to var
  • Go to www
  • There is html
  • You are inside the folder called root.

(Note: this is the folder named https / in mediatemple and public_html / in hostgaotor, etc.)

Upload all your files to the root you downloaded from the above host.

To import mysql, you can use phpmayadmin if the database is small, less than 2MB.

For large databases, follow the steps below.

Download the file sql_backup_db.sql from his previous guest.

Now upload it to the roor directory.

Open putty, log in.

Now enter the following command to access the mysql console.

mysql -u root -p

Enter the password to log into the mysql console.
Now ..

CREATE DATABASE new_database;

Now enter QUIT to quit mysql

Now enter the following command to import mysql.

mysql -u root -p new_database< /var/www/html/sql_backup_db.sql

It will ask you for the mysql password and after clicking on enter your mysql database it will start importing at maximum speed

Configure domain

Now click on DNS in the Digitalocean control panel.

Now put your IP, domain name and host name there and click create domain.

Change guide to DigitalOcean

Change guide to DigitalOcean

Now click add a record and enter a CNAME record.

Change guide to DigitalOcean

Now go to your domain registrar and enter three name servers there.


add a comment of Change guide to DigitalOcean
Comment sent successfully! We will review it in the next few hours.