Home Linux ServerWeb Server How to install the available source code to Webinoly

How to install the available source code to Webinoly

by Thạch Phạm
Published: Last Updated on

How to install the available source code to Webinoly for newbie


Welcome back to the AZDIGI documentation channel, continuing an article about the Webinoly series, in this article, AZDIGI will guide you through uploading the available source code to Webinoly. Unlike other scripts and control panels, Webinoly has a completely different way of doing it and to do it, please follow along with AZDIGI.


To install the available source code on Webinoly, follow these steps.

Terms used on the website

  • Source code
  • Database
  • Download
  • Upload
  • webmau.dotrungquan.info (please replace it with your website name)

Step 1: Prepare the data

To upload an existing website to Webinoly, you need to prepare the following data, including Source Code and Database. As below, I already have 2 files available:

  1. Source code
  2. Database

After you have prepared the data, please follow the next steps to upload it to Webinoly.

install the available source code to Webinoly

Step 2: Create a website and upload the source code

Please determine if your website is a static html website, or a pure php site or a WordPress site. In this article, I will do it with the WordPress source code, so the syntax for creating a website will be different in the options.

Create a WordPress website

First, create a WordPress website. With this command, you will create a new website and the system will automatically download the default WordPress source code, and you will delete it to upload your source code.

AZDIGI Tutorial
sudo site webmau.dotrungquan.info -wp
install the available source code to Webinoly

Enable SFTP

After creating the website, please enable SFTP for the www-data user with the command below. If you do not enable activation, you will not be able to use it.

AZDIGI Tutorial
sudo webinoly -login-www-data=on
install the available source code to Webinoly

Once activated, you can access the server via the SFTP protocol using FileZilla or another software, depending on your needs and usage habits for your convenience. I will use the most popular software, FileZilla.

You open the FileZilla application => select File => Site Manager and create a new site as shown below:

  1. New site: Create a new site with a single session
  2. Protocol: Please select SFTP – SSH File Transfer Protocol.
  3. Host: Enter the server’s IP.
  4. Logon Type: Choose Normal
  5. User: Enter user as root
  6. Password: Enter the server’s password (SSH Password)
  7. Connect: Click to connect
install the available source code to Webinoly

After a successful connection, go to the default source code path of var/www/my-domain/htdocs and delete the original WordPress source code downloaded.

  1. Remote site: The default source code path is var/www/my-domain/htdocs
  2. You select all by pressing Ctrl+A to select all.
  3. Then right-click on the frame and select Delete to delete. Deleting will take about 2-3 minutes.
install the available source code to Webinoly

Once you have deleted all the sample source codes, please upload your source code. In the Local site section, you find the source code stored on your personal computer, then select all and drag and drop to the Filename frame in the Remote Site. The GIF below is an example of my illustration:

Screenshot 2020 12 27 at 11.14.18

After uploading, I go back to the command line interface and move to the folder containing the source code, I have successfully uploaded it and please follow the next step to unzip it.

Screenshot 2020 12 27 at 11.16.51@2x

Unzip the source file and decentralize it

To unzip the source code file in the *.zip format, you use the unzip file_name.zip command. For example, my current file is named source_code.zip, I will use the unzip the command to extract it unzip source_code.zip

After extracting, these files will be owned by root and you need to change user/group to www-data:www-data

AZDIGI Tutorial
unzip ten_file.zip
chown -R www-data:www-data *
Screenshot 2020 12 27 at 11.18.26@2x

Here is a GIF image for you to easily visualize. And once it’s done, let’s move on to creating and importing the database.

Screenshot 2020 12 27 at 12.05.40

Step 3: Create database and import data

Create a database

To create an empty database on Webinoly, use the following command:

AZDIGI Tutorial
sudo site -mysql

Once created, save this information to use when connecting to the file wp-config.php

  • Database Host: localhost
  • Database Name
  • Database User
  • Password
Screenshot 2020 12 27 at 11.19.12@2x

Import the database

To import the database, you use the following syntax:

AZDIGI Tutorial
unzip ten_file.zip
mysql -u Database_User -p Database_Name 

In there:

  • mysql: is the implementation syntax
  • -u: enter the database user name
  • -p: enter the database name
  • <:>
  • database.sql: is my database file. Please enter the correct name for your database.
Screenshot 2020 12 27 at 11.20.24@2x

Step 4: Configure the database connection

This is the step to make the database connection created in Step 3 to the wp-config.php file. If you are familiar with the command line, you can open the wp-config.php file directly from the command line window. But if you’re not familiar with this, go back to FileZilla and right-click on the wp-config.php file => View/Edit

Screenshot 2020 12 27 at 11.22.35@2x

After opening the file is complete, you make the following adjustments:

  • Frame 1: Enter as below (replace example.com with your domain name)
  • Frame 2: DB_Name: Enter the Database Name created in Step 3
  • Frame 3: DB_User: Enter the Database User created in Step 3
  • Frame 4: DB_Password: Enter the Password created in Step 3

After entering, save it (File > Save).

Screenshot 2020 12 27 at 11.30.13@2x

After adjusting, please save and visit the website to check.

Screenshot 2020 12 27 at 11.31.38@2x

With the above steps, you have completed a website. But this website has not installed SSL and Cache configuration, so please continue if you need to install SSL and Cache. For WordPress websites, I recommend using SSL and configuring Cache.

Step 5: Install SSL for the website

To install SSL, you use the following syntax: (replace webmau.dotrungquan.info with your domain name)

AZDIGI Tutorial
site webmau.dotrungquan.info -ssl=on
Screenshot 2020 12 27 at 11.33.19@2x

After successfully installing SSL, visit the website on your browser to check. If displaying the padlock icon as shown in the image below, it was successful.

Screenshot 2020 12 27 at 11.35.25@2x

Step 6: Enable Cache Configuration

To enable Cache configuration, execute the following syntax. With this syntax, the system will enable FastCGI and install Object Cache for you.

AZDIGI Tutorial
site webmau.dotrungquan.info -cache=on
Screenshot 2020 12 27 at 11.34.36@2x

You can now access your website’s admin to set it up and customize it. But if you encounter a message that appears to enter user/password, you can turn it off with the following command: (this is not an error, but this is a protective feature that I mentioned in the introduction to Webinoly)

Screenshot 2020 12 27 at 12.34.04@2x
AZDIGI Tutorial
unzip ten_file.zip
sudo httpauth webmau.dotrungquan.info -wp-admin=off

After turning off HTTP verification, you can log in to the website admin.

III. Summary

Thus, AZDIGI has completed the tutorial on uploading the available source code to Webinoly. Hope this article is helpful to you, wish you success!

Wishing you success!

If you need assistance, you can contact support in the ways below:

Đánh giá

Tham gia nhóm hỗ trợ Server - Hosting

Tham gia nhóm Hỗ trợ Server - Hosting & WordPress để cùng nhau hỏi đáp và hỗ trợ các vấn đề về WordPress, tối ưu máy chủ/server.

Tham gia ngay

Bài viết cùng chuyên mục

AZDIGI – Không chỉ là đơn vị hàng đầu trong lĩnh vực Web Hosting và Máy chủ, chúng tôi mong muốn mang lại những kiến thức bổ ích nhất và luôn cập nhật thường xuyên cho cộng đồng người đam mê thiết kế website, công nghệ,…

Vui lòng không sao chép nội dung nếu chưa xin phép. Designed and Developed by PenciDesign