• Contact
  • Contact Us
  • Disclamer
  • Home 1
  • Home 2
  • Home 3
  • Privacy Policy
Friday, May 9, 2025
How VPS - How to use/setup VPS
  • Login
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
How VPS - How to use/setup VPS
No Result
View All Result
Home Web servers software Hocvps Script

Install and manage servers easily with HocVPS Script

How VPS by How VPS
February 9, 2020
in Hocvps Script
0
Install and manage servers easily with HocVPS Script
0
SHARES
332
VIEWS
Share on FacebookShare on Twitter

HocVPS Script is a bash script that runs on SSH, which automatically installs all the most necessary components for a VPS with a single command line.

Unlike the other Control Panel, HocVPS Script does not use any server resources (CPU, RAM) and can not have any security errors for hackers to exploit, so you can feel secure to use.

In addition, the webserver will be automatically configured to ensure the best performance, the most secure. Even those who are new to VPS can also manage VPS through the simple command line menu, call by command  hocvps

HocVPS-Script-v2.0

How to install Hocvps Script?

Contents

  1. How to install Hocvps Script?
    1. About Hocvps Script
      1. HocVPS Script will automatically install:
      2. Special features:
      3. System requirements:
    2. Install HocVPS Script
      1. Prepare the installation process
        1. In this step you need to choose:
    3. Use HocVPS Script:

About Hocvps Script

HocVPS Script will automatically install:

  • Latest Webserver Nginx.
  • Latest version Database MariaDB 10.0 (MySQL is optimized).
  • Latest PHP versions are optional: PHP 7.1, PHP 7.0, PHP 5.6; Zend OPcache comes.
  • Latest phpMyAdmin.
  • Latest eXtplorer to manage File Manager, can create users, separate permissions.

Special features:

  1. Simple installation information, just choose PHP version, main domain and admin port is enough.
  2. Using Nginx repo instead of compiling from source like other scripts makes installing Nginx faster, it is much easier to upgrade later.
  3. Replace MySQL with MariaDB to keep up the trend (this is an improved version from MySQL, works similarly but gives higher performance than MySQL; in addition the official CentOS 7 latest version has supported MariaDB).
  4. Compatible with both CentOS 6 and 7, both 32bit and 64bit play.
  5. Option to use the installation of PHP 7.1 version (latest), PHP 7.0, PHP 5.6.
  6. There is the File Manager eXtplorer manager directly on the web.
  7. Automatically install Zend Opcache module and monitor status right on the web.
  8. Can be used with both domain www and non-www, automatically redirect to you.
  9. Automatic update for Nginx, PHP, MariaDB.
  10. Track server status right on the web, can use mobile access anywhere.
  11. Change the default SSH port from 22 to 2222 restrict SSH Brute Force Attack, along with Fail2ban IP block right away if it detects login wrong 3 times (apply both SSH and HocVPS Script Admin).
  12. All management information will be saved in the text file in  /root/hocvps-script.txt
    Refer to the new feature in Changelog.

System requirements:

  • RAM: minimum 512MB
  • Should create swap before installing (if using an SSD or RAID10)
    Before proceeding with the installation, you need to grasp some basic knowledge in the article Getting Started, mainly using the SSH connection ZOC Terminal.

Install HocVPS Script

First, you need to prepare a brand new VPS by Reinstall or Rebuild, using CentOS 6 or 7, 32bit or 64bit version are all available. Should use CentOS 7 64bit version with PHP 7.1

SSH connection using ZOC Terminal or Putty with  root account. If the account does not have root access, grant it by running sudo su.
Run the following command to proceed with the installation:

curl -sO https://hocvps.com/install && bash install

– Installation is complete, when connect SSH VPS you use port 2222, do not use port 22!
– 04/09/2018: For Vultr VPS, it is recommended to change to Google DNS before installing to avoid the error Could not resolve the host
– HocVPS Script not working on VPS only IPv6 (Vultr’s $ 2.5 package)

Prepare the installation process

In this step you need to choose:
  1. PHP version to use: should use PHP 7.1, has 3 times the performance compared to the old version 5.6.
  2. The main domain name used with VPS, can be imported with www or without www depending on the purpose of use, the script will automatically redirect to you.
  3. Port admin server management: is a secret port (located in the range 2000-9999, changed after installing) used to:
    – Access the admin link, in the form of: http // domain.com: port /
    – Using phpMyAdmin, link form: http://domain.com:port/phpmyadmin/
    – Manage File Manager, link form: http://domain.com:port/filemanager/
    – Monitor system status, link form: http://domain.com:port/serverinfo/
    – Track the status of Zend Opcache, link form: http://domain.com:port/op.php

Then, just let the script automatically perform the installation process, which can take 3-5 minutes depending on VPS / Server configuration and network.

Finally, if there is no problem, you will receive a notification of successful installation and VPS management information as shown below. Also, this information will be saved in the text file with the /root/hocvps-script.txt link for you to review later.

So the server is ready for you to use.

Use HocVPS Script:

HocVPS Menu is used via  hocvps  command on SSH Terminal.

After installing HocVPS Script, you can use SFTP to manage File, upload code to  /home/domain.com/public_html/ directory and point the domain name to IP VPS and start using.
Note: After uploading the source to the web directory, use the hocvps menu 14 Distributed Webserver Permissions to Nginx to read the website content.

If you want to connect to SSH, use port 2222.

During use, in any function, you can also press Ctrl + C to exit the Script immediately.

Absolute safety security

I always put security and simplicity to the top so from HocVPS Script v1.6 version will add another layer of security when accessing links containing port. You can change this password to make it easier to remember when accessing the admin link 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 for 1 hour. Increase time according to this guide.

Previous Post

How to setup Directadmin on Google Compute Engine VM/ Amazon cloud?

Next Post

Building Packages on Arch Linux (Including the AUR)

Next Post

Building Packages on Arch Linux (Including the AUR)

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

No Result
View All Result

Recent Post

Install Imagemagick on CentOS
CentOS

Install Imagemagick on CentOS

by How VPS
June 28, 2023
0

This is how I installed Imagemagick on a vanilla CentOS server Start off by installing the prerequisites yum install php-pear...

Read more
how to Check phpinfo

How to Check phpinfo of Hosting or VPS?

June 28, 2023
Failed to download metadata for repo 'appstream' on Centos 8

How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

February 25, 2022
How to Fix MySQL Error "Plugin 'InnoDB' registration as a STORAGE ENGINE failed"?

How to Fix MySQL Error “Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed”?

November 17, 2020
How to optimize Mysql or MariaDB

How to optimize Mysql or MariaDB

November 3, 2020

Recent News

  • Install Imagemagick on CentOS
  • How to Check phpinfo of Hosting or VPS?
  • How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

Category

  • Arch
  • Authentication
  • Backups
  • BSD
  • Centmin Mod
  • CentOS
  • Control Panels
  • CoreOS
  • CWP
  • Debian
  • Directadmin
  • Encryption
  • Fedora
  • Firewalls
  • Hocvps Script
  • Hosting providers
  • Kloxo-MR
  • Linux
  • Mitigations
  • Operating System
  • Plesk
  • Reviews
  • Securing VPS/Servers
  • Security Patches
  • SSL Certificates
  • Uncategorized
  • Upgrading
  • VPS/Servers management guides
  • Vulnerability Detection
  • Web servers software
  • Webhosting Control Panel
  • About
  • Advertise
  • Careers
  • Contact

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
Thabet