How to Install CentOS Web Panel (CWP)
|Another great free hosting control panel to install on your VPS, meet CentOS Web Panel. I believe this free control panel will compete greatly with zPanel and Vesta CP to gain more user attention. One thing of it makes me more interested is that CWP will install full LAMP stack plus Varnish Cache server while zPanel can only install LAMP and Vesta CP can install LAMP with Nginx as reverse proxy.
Using a hosting control panel can save times for you to install all necessary software to build a full working web hosting server including needed webserver (Apache, Nginx), mail server, DNS server MySQL database server and FTP server. Installing all those software manually one by one will consume much time with great chance to fail.
Varnish Cache is a great caching platform to store hot cached content of your web pages in RAM. That way it can reduce request to hit backend server hence speeding up your website and reduce CPU load in the same time. Again, installing and setting up Varnish is not really a piece of cake for a newbie.
About CWP
CWP is -again- a free web hosting control panel designed for newbie who want to build a working hosting server easily and to take control or manage his/her server all in an intuitive web interface without having to open any SSH console. CWP is really considered feature-rich. Some of notable features including:
– Apache Web Server (Mod Security + OWASP rules optional)
– PHP 5.4 (suPHP, SuExec + PHP version switcher)
– MySQL + phpMyAdmin
– Postfix + Dovecot + roundcube webmail (Antivirus, Spamassassin optional)
– CSF Firewall
– File System Lock (no more website hacking, all your files are locked from changes)
– Backups (optional)
– AutoFixer for server configuration
– Varnish Cache server (improve your server performances by 3x)
– Compiles Apache from source (improves up to 15% on performances)
– Apache reCompiler + Additional modules install with one click
– Apache server status, configuration
– Edit apache vhosts, vhosts templates, include configuration
– Rebuild all apache Virtual hosts with one click
– suPHP & suExec (improved security)
– Mod Security + OWASP rules (one click install, easy management)
– Tomcat 8 server management & install in one click
– DoS protection from the Slow-Loris attacks
– Compiles PHP from source (improves up to 20% on performances)
– PHP switcher (switch between PHP versions like: 5.2, 5.3, 5.4, 5.5)
– Simple php editor
– PHP addons with one click
– PHP.ini editor & PHP info & List modules
– php.ini per user account (you can add changes in /home/USER/php.ini)
– postfix & dovecot
– MailBoxes, Alias
– Roundcube webmail
– Postfix Mail queue
– rDNS Checker Module (check you rDNS records)
– AntiSPAM (Spamhaus cronjob)
– Re-Build Postfix/Dovecot Mail server with (AntiVirus, AntiSpam Protection)
– Email Auto Responder
– MySQL Database Managment
– Add local or remote access user
– Live Monitor MySQL process list
**New features added after this article posted
– net2ftp install script
– MySQL 5.5 & phpMyAdmin upgrade script
– PHP Imagick – script installer
– Maldet – script installer (Malware removal tool)
– Varnish with Multiple IPs
– PHP Switcher (added php imap installer checkbox)
– IP Access Control
– Mail Server Re-Configuration
– Postfix Manager
– Scripts folder, info will be on the wiki site
– SPF Manager
– Nginx reverse Proxy
– Services Monitor (Automatic restart of services)
– MySQL root password reset script
– BruteForce CSF/LFD integration script
Requirements
- A server / VPS running CentOS 6 (at the time of writing it still does not support CentOS 7). Clean minimal install is recommended. Need recommendation? try RamNode or DigitalOcean.
- Basic knowledge about most common Unix command to manage a Linux VPS.
- Any favorite SSH client like Putty or simply Terminal if you’re using Linux or Mac.
- Make sure your VPS is running CentOS 6 with no LAMP component installed (Apache, MySQL, PHP)
- About 15 minutes of your time and may be a cup of coffee or tea.
How to Install CWP
Follow steps below to setup CentOS Web Panel on your VPS:
Step 1 – Login to your server as root or as user with sudo privilege:
Step 2 – Go to /usr/local/src directory and download CWP installer package there:
cd /usr/local/src wget http://centos-webpanel.com/cwp-latest
Step 3 – Once downloaded, issue one simple command below to start the installer:
sh cwp-latest
It will start by firstly check whether Apache or MySQL is installed and running. After that, you may simply wait the process till it done. The whole process should be automatic so just sit tight, wait and drink your coffee.
The CWP installation progress will take some times because several software will be compiled from source (especially PHP) for improved performance, security and flexibility. In my case it is almost like installing WHM/cPanel.Once the process is done, you’ll see something like this:
Do not forget to note down the information displayed on screen.
Step 4 – Now hit Enter on your keyboard and your server should reboot automatically. Next time you try to login to your server via SSH, the display will be different. You will now see CWP welcome message.
Step 5 – Open up your favorite web browser (Firefox, Chrome, etc) and open your newly installed CWP admin GUI at one of these URLs:
http://your-ip-address:2030orhttps://your-ip-address:2031
You can use https:// in case if you want to login to your CWP server in middle of unsecure area like public Wifi. Otherwise http:// is much more faster to access.
CWP use “root” as default Administrator username and the same password you use to login to your server via SSH as root.
CentOS Web Panel GUI: Dashboard.
CWP Resource Usage
Default installation of CWP consumes very low resource usage. Here’s example of mine:
RAM:
CPU load and disk
That’s considered low resource usage for a web hosting panel. Also, default installation already includes latest stable version of PHP with Zend Optimizer and ionCube PHP Loader.
That’s all for now.In the next tutorial: Basic configuration of newly installed CWP. Stay tuned!
hi !
i am newbie and i read your guide (and also more guide in your website ) and i very like your guides they realy clear and awesome !
but i have some quastions (maybe others newbies too) :
1. after installed this Control panel, i want to install Nginx + Php-fpm + MySql + Varnish + Apc .
how can i do that with correct configure ?
2. i want to migrate my websites from Shared hosting-that based on Apache to my new Vps – that will be Nginx, so how can i do that ?
regards,
Tomer
What happens such an error occurs during the installation process;
> cp: cannot create regular file ‘/usr/local/php/php.ini’: No such file or directory
> httpd: apr_sockaddr_info_get() failed for dewolfedev
> httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
> httpd not running, trying to start
>
> Compiler requires 512 MB RAM + SWAP
Do you go re-installing afresh?
Yes. How much RAM your vps has? And is it CentOS 6?
it’s same problem like me,
centos 6.6
RAM 512 MB
you should use Centos 32 bit
I created a VPS with CentOS 6.5 X32 at Digital Ocean and loaded Centos Web Panel. Now index.html (Apache test page) loads correctly, and all seems to be working fine except PHP.
When I type in index.php (from WordPress that I uploaded) I get a 404 Page Not Found.
Anything with a .php returns a 404 Page Not Found. Can you help me with this? Thank you Sawiyati.
–Keith
The problem is with the shared IP if you have enabled Varnish cache just change the shared IP to 127.0.0.1 and it should work fine then 🙂
Hi Sawiyati thanks for the awesome tutorials i have followed all the guides of Cent OS Web Panel all were awesome i just have one question it takes a lot of time for Cent OS Web Panel to load why is that? Any solutions?
Sawiyati, wow, this is just what I was looking for related to CWP!
I’ve had my sites on a VPS with cPanel for about 10 years and am REALLY thinking about moving to DigitalOcean and trying a free web panel alternative.
I’m finding that I’m drowning in options and information and not sure what path to take. The big issue is that once I move all my sites to a new Web Panel, I don’t want to have to move again since doing so is a total pain / nightmare!
Ideally, here’s what I’d like to find:
1. A comparable system to cPanel so I can host multiple “accounts” (websites) as a reseller and give each account access to manage their own sites. I want something rock-solid and a good mix between features/complexity/ease-of-use
2. Support for “one button install / update” scripts. These make managing software and especially keeping family and friend’s installs of WP always up-to-date and SUPER easy since I can force upgrade all of them with one button. I currently use Softaculous with cPanel integration and it works great!
I’m leaning toward DigitalOcean, but I’m just not sure which cPanel alternative is the best option. I See CWP support Softaculous and their demo looks very similar to cPanel, so what do you think?
Again, thanks for this great writeup, I look forward to your thoughts and advice! 😉
Easy installation,just follow the instruction briefly,fresh Centos installed NO LAMP, you’ll just need to wait for about 15-30minutes, Thanks for this tut mom!.
It seems their website down?
Hi, ths for the great tutorial!
When I trying to restart the CFS, I get this error:
*WARNING* URLGET set to use LWP but perl module is not installed, reverting to HTTP::Tiny
After installing perl-libwww-perl, the error gone.
But I can’t access my website anymore: 403 Forbidden:You don’t have permission to access / on this server. Any solutions?
I am running my website on Centos6.4.
Hi,
Thanks for this great tutorial!! 😀
I have few questions:
1. CWP can be installed with NGINX ?
2. Which webserver (Apache or NGINX) one would be advisable with 5 GB RAM and SSD drives with moderate traffic mostly WordPress websites.
3. Can we make some adjustments in Apache config to make it function some what like NGINX (event based and not process based)?
Let me know, as I am waiting to make a fresh install on the server.
Thanks in advance. 😀 😀
Hello,
I get this error:
> cp: cannot create regular file ‘/usr/local/php/php.ini’: No such file or directory
> httpd: apr_sockaddr_info_get() failed for dewolfedev
> httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
> httpd not running, trying to start
>
> Compiler requires 512 MB RAM + SWAP
How can this be when i have 2 GB of RAM on my server?
Something else that makes me wonder is that using this tutorial: https://www.rosehosting.com/blog/install-centos-web-panel-on-centos-6-linux-vps/ i dont get the above error, and using this one i get the error.
They are the same and there is no difference.
Hello,
I am always reading your posts, they are very nice and easy to understand.
www is missing more people like you
Cheers !!!
mom hlep my install CWP on centos 7
How can I transfer websites from one cwp to another cwp ?
Please advise.
Thanks
You can do that manually or if you are using WordPress then a plugin like Duplicator may come handy / be useful
Hello, I like this post..I am your everyday visitor here..I wish to see a tutorial like this in the future with a title of “Install Centos Web Panel on a Vitualbox with a Centos 6.6″…
How can i change MX record for my mail clied zoho mail ?
nice tutorial. i followed your tutorial and install cwp on ec2 instance. when i try to login to cwp i get a message that says “account suspended”
Sorry, no clue on that and that should not be happen normally
i done all your step correctly but something went wrong with me.
don’t show any welcome message after reboot.
and URL is also not working.
I just done ‘ disable csf and enabled back ” Accessing CWP with the normal user ( not root ) works fine but when i click on file manager, I get the following error
You don’t have permission to access /webftp_simple/ on this server.
Please advice.
Wonderful.
I have been a big help to your guide.
I have completed the installation of CWP.
Next, I need to upgrade my php, mysql.
I need to upgrade php to 5.5,
Also, I have to upgrade MySQL TO 5.6.17+.
If you have any guidance in this area, please let me know.
Thank you.
Pls tell me the location of Trash in file manager of Centos Web Panel.
Many thank!
Its great panel, nice it support softaculous, any billing supported?
hey mom! thanx for this lovely tuts… i just read about it and im a totally stranger for doing things like this…
I have 1 question though, will the CWP act like a cpanel? can we install like wordpress, magento joomla etc?
sorry for my bad english…
THanx…
yes you can
I installed cwp on digital ocean wtih no problems. Now I am installing it on Linode. Install was successful and I can view the index page on port 80, but port 2030 is blocked by Linode. Is there something I can adjust to fix this?
Are you really sure that Linode is blocking port 2030?
Hello,
Thank you for your post so much
I had get a issue to click on file manager tab as follow:
Not Found
The requested URL /webftp_simple/ was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Please to help me for more your guidance.
Thank you
I am getting Index of / screen after instead of login page I tried https://192.168.0.xxx:2031/. and http://192.168.0.xxx:2030/ . Please to help
i get this error line in 2030 “Could not select database root_cwp”
Thank you for this tutorial, hope i can setup now without any problem as i am going to start it now.