Setup & manage your Servers/VPS with HocVPS Script - Vietnet - How to setup a server/vps?

Breaking

BANNER 728X90

Monday, July 30, 2018

Setup & manage your Servers/VPS with HocVPS Script

HocVPS Script is a bash script running on SSH that automatically installs all the components needed for VPS with a single command line.

Unlike other control panels, HocVPS Script does not use any server resources (CPU, RAM) and can not make security mistakes for hackers to exploit so you can safely use.

In addition, the webserver will automatically optimize the configuration to ensure the best performance, security. Even those new to VPS can also manage VPS through a simple command line menu, called by hocvps command.

Hocvps Screenshot

HocVPS Script will automatically install:

  • Nginx latest webserver.

  • Database latest version of MySQL 10.0 (that is, MySQL is optimized).

  • PHP latest version options: PHP 7.1, PHP 7.0, PHP 5.6; comes with Zend OPCache.

  • Latest phpMyAdmin.

  • The latest eXtplorer for managing File Manager, can create user, separate permissions.


Special features:

  1. Installation information is simple, just select the PHP version, the main domain and admin port is enough.

  2. Using Nginx repo instead of compile from source as other scripts makes installing Nginx faster, later upgrading is also a lot easier.

  3. Replace MySQL with the current trend (this is an improved version of MySQL, which works similarly but for higher performance than MySQL, and the latest version of CentOS 7 officially supports MariaDB).

  4. Compatible with both CentOS 6 and 7, both 32bit and 64bit.

  5. Optional use of PHP version 7.1 (latest), PHP 7.0, PHP 5.6 installation.

  6. File Manager eXtplorer is available directly from the web.

  7. Automatically installs the Zend Opcache module and can monitor status on the web.

  8. Accessible to both www and non-www domains, auto redirect helps you.

  9. Automatic update for Nginx, PHP, MariaDB.

  10. Monitor server status on the web, can use mobile access anywhere.

  11. Change the default SSH port from 22 to 2222 with SSH Brute Force Attack, with Fail2ban block IP immediately if the wrong login is detected 3 times (both SSH and HocVPS Script Admin).

  12. All management information will be stored in text file at /root/hocvps-script.txt

  13. Refer to the new Changelog feature.


Minimum System Requirements:

  1. RAM: 512MB minimum.

  2. You should create a swap before installing (if using an SSD or RAID10 drive).


Before proceeding with the installation, you need to take some basic knowledge in the Getting Started section, mainly using the ZOC SSH connection terminal.

1Install HocVPS Script


First you need to prepare a fresh VPS by Reinstall or Rebuild, using CentOS 6 or 7, 32bit or 64bit versions. You should use CentOS 64bit with PHP 7.1

Connect SSH using ZOC Terminal or Putty with root account. If the root account does not have permissions, run the command sudo su.

Run the following command to proceed with the installation:
curl -sO https://hocvps.com/install && bash install

- When you are done installing connect VPS you use port 2222, do not use port 22!
- 09 / Jan / 2018: Remi Repo is currently very flustered. You check access to Remi Repo before installing HocVPS. If you can not download, do not install HocVPS Script: Remi for CentOS 7 and Remi for CentOS 6

Prepare the installation process:

Chuan-bi-cai-dat-HocVPS-Script-1.8

In this step you need to select:

  1. PHP version to use: should use PHP 7.1, performance is three times more than the old version 5.6.

  2. The main domain used with VPS, can enter there www or no www for the purpose of use, the script will automatically redirect for you.

  3. Port admin server management: a secret port (located in 2000 - 9999, changed after installation) used to:



  • Access the administration link, which has the form: http://domain.com:port or http://your-ip:port

  • Using phpMyAdmin, the link is: http://domain.com:port/phpmyadmin/ or http://your-ip:port/phpmyadmin/

  • File Manager Manager, link format: http://domain.com:port/filemanager/ or http://your-ip:port/filemanager/

  • Monitor system status, link format: http://domain.com:port/serverinfo/ or http://your-ip:port/serverinfo/

  • Zend Opcache status monitor, link format: http://domain.com:port/op.php or http://your-ip:port/op.php


Then, let the script automatically perform the installation, it may take 3-5 minutes depending on the configuration and network of VPS / Server.

Finally, if there is no problem, you will receive a successful installation message and VPS management information as shown below. At the same time, this information will also be saved in the /root/hocvps-script.txt file for you to review later.

Cai-dat-thanh-cong-v1.8
So the server is ready for you to use it.

2 Use HocVPS Script


Once you have installed HocVPS Script, you can use sFTP to manage the file, upload the code to /home/domain.com/public_html/ and point the domain to the IP VPS and start using.
Note: After uploading source to web directory, you use hocvps menu 14 Rights to Webserver to Nginx read the website content.

The hocvps menu is used via the hocvps command on the SSH terminal.
If you want to connect to SSH you should use port 2222.

In the process of using, in any function you can also press Ctrl + C will exit the script immediately.

Absolute security


I always put security issues and simplicity on the top so from HocVPS version v1.6 version will add a layer of security when accessing the link containing the port. You can change this password for easier remember when accessing the admin http://domain.com:port/.

The default username for all tools is admin, the password is automatically generated after the server is installed. If you enter the wrong information more than 3 times, the IP will automatically block in 1h. Add more time according to this guide.

6 comments:

  1. Xin chào, đây là một bình luận
    Để bắt đầu với quản trị bình luận, chỉnh sửa hoặc xóa bình luận, vui lòng truy cập vào khu vực Bình luận trong trang quản trị.
    Avatar của người bình luận sử dụng Gravatar.

    ReplyDelete
  2. Overseen committed server is the need today for most online advertisers. Facilitating specialist co-ops offer a scope of bundles. Every one of these administrations has its very own advantage, yet an oversaw committed server demonstrates its clout with its scope of advantages. Here is a brief about the different advantages of it which additionally demonstrates the proficiency of an oversaw facilitating administration. https://monovm.com/dedicated/

    ReplyDelete
  3. A virtual private server, or VPS, is leasing space and resources from a physical server to suit your web design or web programming needs. Leasing out space on a physical server to others is a cost effective way of opening the online community to those who are not independently wealthy. Dedicated Server Hosting by 1gbits

    ReplyDelete
  4. I run a hardware business, but I don’t have much idea about these sort of technical aspects related to my business operation. Marketing also requires some level of technical expertise that is why I have hired one of the best seo company Los Angeles to boost the search engine rankings of our website.

    ReplyDelete
  5. Likewise when the traffic tumbles down it will consequently downsize to the typical level and leave the additional assets. This element makes it progressively effective and dependable. instant

    ReplyDelete
  6. This is also a very good post which I really enjoyed reading. It is not every day that I have the possibility to see something like this.. buy

    ReplyDelete