- Joined
- Jul 8, 2016
- Messages
- 48
- Points
- 8
Centos Web Panel (CWP) is a hosting manager like Cpanel or Direct Admin that you often use on common shared hosting. But when using VPS you will not be equipped but must install an application on VPS to manage hosting. Because Cpanel, Directadmin are paid control panels that must be purchased about $20 monthly or lesser, the optimal cost solution is set up to install a free hosting panel but fully functional on VPS one of that CWP, Sentora, Zpanel...
In this post, I will guide you to use a powerful tool to manage hosting, that is Centos web panel (CWP) - a hosting manager with more features like Cpanel, Directadmin, but completely free.
Once you've installed CWP, you can run WordPress as well as share foreign hosts normally without any further configuration, so CWP also supports very good cache for Wordpress.
1. Log in to CWP
After installing CWP software, go to the following link to log in: http: // IP: 2030 (with IP is the VPS IP address that the provider sent to you when registering VPS)
The IP address of this server plus port 2030 (http: // IP: 2030). User (root), pass is the login account via SSH to the server.
2. Start creating hosting packages with standard configuration
Go to: Packages -> Add a Package -> fill in the parameters inside -> Create
For example, create a hosting package with 1G capacity - 100 GB bandwidth you fill in as follows: Package Name - Host 1G, Disk Quota - 1024, Bandwidth - 1024000, the remaining items if not interested you can fill in No. 10 is fine.
3. Create user account
This is a step for you to create a hostting account for your website, including login account for hosting, Username and Password to log in to FTP later.
Go to: User Accounts -> New Account
The parameters must be entered: Domain (Website domain name), username (hosting login name), password, choose package, email.
Processes and Open Files to limit traffic and processing - function quite well if you manage multiple websites on 1 VPS, but if you want to prioritize a website that works strongly you should leave this parameter higher than the default, for example Process 1000 Open Files 9000.
4. Create Database Manager
This step helps you create your website with a Database manager, including Name Database and User Database. Note this step, you should save the information to be able to access phpMyadmin to add data of the website.
Go to SQL Services -> MySQL Manager -> Create Database and User (create database name and user name).
Login to PHPMyAdmin to import database and manage Database.
5. Copy the website to hosting with File Management or by FileZilla
How to use FileZilla to upload sourecode to VPS, see here.
Use File Management (apply with Root rights): File Management -> Advanced File Manager
Screen of the FIle management interface of CWP, note that you should upload compressed files with a capacity of less than 200MB, if larger, use FileZilla because CWP does not support compressed files with too large capacity.
6. Fix some bugs related to CWP
Do not start MySQL
If you encounter a MySQL error that does not start after reboot the server, open the /etc/my.cnf file and find and add the # sign to the following paragraph:
Then restart MySQL with the command
The domain error does not point to the correct directory
Many of you encounter this error when adding users to CWP, that is to add the domain but it does not point to the correct domain directory.
The error is because you use Apache Webserver, the modifications are changed to webserver in Apache and NGINX, then press the Rebuild Virtual Host button again.
Error 500
If you get an error 500, go to Users Account -> Fix permissions and select the user name you just created to fix the authorization error for suPHP
Above is a basic guide on how to use CWP, all operations are similar to those on other popular software. In addition, CWP has many other advanced features, you can find out for yourself.
In this post, I will guide you to use a powerful tool to manage hosting, that is Centos web panel (CWP) - a hosting manager with more features like Cpanel, Directadmin, but completely free.
Once you've installed CWP, you can run WordPress as well as share foreign hosts normally without any further configuration, so CWP also supports very good cache for Wordpress.
1. Log in to CWP
After installing CWP software, go to the following link to log in: http: // IP: 2030 (with IP is the VPS IP address that the provider sent to you when registering VPS)
The IP address of this server plus port 2030 (http: // IP: 2030). User (root), pass is the login account via SSH to the server.
2. Start creating hosting packages with standard configuration
Go to: Packages -> Add a Package -> fill in the parameters inside -> Create
For example, create a hosting package with 1G capacity - 100 GB bandwidth you fill in as follows: Package Name - Host 1G, Disk Quota - 1024, Bandwidth - 1024000, the remaining items if not interested you can fill in No. 10 is fine.
3. Create user account
This is a step for you to create a hostting account for your website, including login account for hosting, Username and Password to log in to FTP later.
Go to: User Accounts -> New Account
The parameters must be entered: Domain (Website domain name), username (hosting login name), password, choose package, email.
Processes and Open Files to limit traffic and processing - function quite well if you manage multiple websites on 1 VPS, but if you want to prioritize a website that works strongly you should leave this parameter higher than the default, for example Process 1000 Open Files 9000.
4. Create Database Manager
This step helps you create your website with a Database manager, including Name Database and User Database. Note this step, you should save the information to be able to access phpMyadmin to add data of the website.
Go to SQL Services -> MySQL Manager -> Create Database and User (create database name and user name).
Login to PHPMyAdmin to import database and manage Database.
5. Copy the website to hosting with File Management or by FileZilla
How to use FileZilla to upload sourecode to VPS, see here.
Use File Management (apply with Root rights): File Management -> Advanced File Manager
Screen of the FIle management interface of CWP, note that you should upload compressed files with a capacity of less than 200MB, if larger, use FileZilla because CWP does not support compressed files with too large capacity.
6. Fix some bugs related to CWP
Do not start MySQL
Code:
# service mysqld start
MySQL Daemon failed to start.
Starting mysqld: [FAILED]
Code:
# innodb = OFF
Code:
service mysql start
Many of you encounter this error when adding users to CWP, that is to add the domain but it does not point to the correct domain directory.
The error is because you use Apache Webserver, the modifications are changed to webserver in Apache and NGINX, then press the Rebuild Virtual Host button again.
Error 500
If you get an error 500, go to Users Account -> Fix permissions and select the user name you just created to fix the authorization error for suPHP
Above is a basic guide on how to use CWP, all operations are similar to those on other popular software. In addition, CWP has many other advanced features, you can find out for yourself.