Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - DeveloperMcD

Pages: [1] 2 3
Installation / How to migrate CWP - CWP 2nd time for existing site?
« on: October 24, 2022, 06:27:44 PM »
I am setting up a new CWP server. Haven't made it the live server yet.
As part of my config/testing, I copied over all my websites. They all work great, 100%! Including SSL certificates.

I did the test weeks ago. I need to do "the big switchover" which includes copying over the latest databases, files, etc.
For some simple sites I can just upload the changed files by FTP. But 2 of my sites are quite complex. I'd like to use CWP - CWP migrate feature, but I can't do that without deleting the sites first! And that would mean undoing the (manual) work I did to get SSL working.

Is there some way to "restore a backup" from another server, or something? Basically use a PART of the CWP-CWP migrate script/process? Because right now, there's a green checkbox and I can't check "Just update files please" or anything like that.

It seems to be a very useful, necessary feature.

Addons / How to install Mod XSendfile
« on: October 22, 2022, 05:27:06 AM »
Here are the instructions

But I can't run apxs because that would involve using the plain-vanilla Apache2 that comes with Alma Linux (etc.) rather than the one managed by CWP.

How do I install this simple module in Apache2?

Information / Best way to transfer settings from CWP to CWP?
« on: July 18, 2022, 09:52:38 PM »
I have CWP 7 installed on an existing server, and I'm upgrading to a new server. Replacing the old one.
Where are all the config files I need to copy over? When I make changes to the various menus, where are all those settings stored? In a database, or in some text file?

I'd like to do it via text/config files, rather than clicking a bunch of menus and doing it the long, slow way.

Again, I don't believe in magic. I click the left menu "CWP Settings" and the first item "Edit Settings". There are about 9 fields that can be filled in. WHERE IS THAT INFORMATION STORED? It has to be found somewhere on the hard drive. Google has been no help thus far. I've seen a few threads that talk about mail and MySQL config, but those aren't an issue. I am mostly looking for the config file(s) for CWP itself.

Thanks in advance for any help --


CentOS-WebPanel Bugs / phpMyAdmin disappeared from /pwa link
« on: March 31, 2021, 06:53:20 PM »
phpMyAdmin TOTALLY DISAPPEARED FOR ME about 10 days ago.

My link (I realize this only works on my local network -- it worked great before)

Now gives a

404 Not Found


phpMyAdmin was working FINE before. Did some update break it?

What logs can I look at, where can I check for the phpMyAdmin software, and how can I manually install or update it, so it comes back?

Please advise.

CentOS 7 Problems / All domains suddenly bring up landing page or 500 error
« on: November 22, 2019, 03:12:14 PM »
I haven't done a thing to my server. All the sudden, all of my websites bring up the "default" page in CentOS, or an internal server error (500)
Did some update to Apache or CWP break my system?
What should I look at to fix this? This is urgent, all my websites are down!

Here is from the error logs on one of my sites:

[Fri Nov 22 09:12:57.242187 2019] [:error] [pid 19584:tid 140130245388032] [client] SoftException in Application.cpp:542: Could not execute script "/home/cathinfo/public_html/404.html"
[Fri Nov 22 09:12:57.242268 2019] [:error] [pid 19584:tid 140130245388032] [client] Caused by SystemException in API_Linux.cpp:444: execve() for program "/opt/alt/php56/usr/bin/php-cgi" failed: Permission denied


Information / Plans to support CentOS 8?
« on: July 25, 2019, 10:08:09 PM »
It looks like CentOS 8 is coming in the not too distant future.

Are there plans to make a CentOS 8 version of CWP?

Apparently CentOS 7 was first released 7 July 2014, so it's about time for another major release.

I have all the files for one of my accounts uploaded to the site, and the Vhost is set up.
I set my local machine to go to (local IP of my server) for the domain name
However, when I visit "" in my browser, it gives me the CentOS default page. Why isn't it directing such traffic to the account for which I set up in Apache?


PS I verified that there is only ONE index file (index.php) available -- there is no index.html or index.htm in the home directory.

Code: [Select]
#<IfModule mod_suphp.c>
# suPHP_ConfigPath /home/mydomain
# <Files php.ini>
#   order allow,deny
#   deny from all
# </Files>

ErrorDocument 401 /home/mydomain/public_html/index.php
ErrorDocument 404 /home/mydomain/public_html/index.php
ErrorDocument 500 /home/mydomain/public_html/index.php
DirectoryIndex index.php index.html index.htm

AddHandler application/x-httpd-php53 .php .html .htm
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
# Use PHP53 as default
#AddHandler application/x-httpd-php53 .php

XSendFile on

Code: [Select]
        DocumentRoot /home/mydomain/public_html
        UseCanonicalName Off
        ScriptAlias /cgi-bin/ /home/mydomain/public_html/cgi-bin/

        CustomLog /usr/local/apache/domlogs/ bytes
        CustomLog /usr/local/apache/domlogs/ combined
        ErrorLog /usr/local/apache/domlogs/

        # Custom settings are loaded below this line (if any exist)
        # IncludeOptional "/usr/local/apache/conf/userdata/mydomain/*.conf"

        <IfModule mod_setenvif.c>
                SetEnvIf X-Forwarded-Proto "^https$" HTTPS=on

        <IfModule mod_userdir.c>
                UserDir disabled
                UserDir enabled mydomain

        <IfModule mod_suexec.c>
                SuexecUserGroup mydomain mydomain

        <IfModule mod_suphp.c>
                suPHP_UserGroup mydomain mydomain
                suPHP_ConfigPath /home/mydomain

        <IfModule mod_ruid2.c>
                RMode config
                RUidGid mydomain mydomain

        <IfModule itk.c>
                AssignUserID mydomain mydomain

        <Directory "/home/mydomain/public_html">
                Options -Indexes -FollowSymLinks
                AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch


No matter what menu item I select in the webpanel, it brings me to the same screen!

High Performace WebServers Configuration

Do you want to install php-fpm?
(optional but highly recommended) PHP-FPM gives you the advantage to run PHP via php-fpm sockets with the highest performances!
You will still have the current setup like before but this will allow you to have an increase in performance.

* This step is NOT required and you can skip it or install PHP-FPM later.

This is insane. I tried to click on Manage Email Queue and many other items, and I can't access any of them, because the webpanel is somehow "stuck" on asking me about PHP-FPM. I don't want PHP-FPM, for what it's worth. I'm moving off this server, so it's not worth any risk.

Installation / CWP to CWP doesn't create MySQL databases
« on: March 04, 2019, 01:57:18 PM »
I just ran the CWP to CWP migration, and it seems like there are a couple of bugs
* MySQL databases are not created on the target machine
* Although the files seem to be there, when I go to "list accounts" it says it's using 0/100 KB.

The package definitions (for the user accounts) were moved over, so that is good.

Am I supposed to create the packages BEFORE I run the migration? Is there some issue with the system not knowing what rights to assign the new accounts?

Any advice is appreciated.

I can give more details -- just tell me what details you need.

Thank you in advance,


Updates / Any updates to CWP 7 soon?
« on: February 19, 2019, 08:21:54 PM »
I notice on the Changelog page that CWP 7 hasn't been updated since the 9th of December.

Considering it's Feb. 19th, does that mean another update is coming out in the next few days?

Installation / Advice for migrating CWP 6 server to CWP 7
« on: February 11, 2019, 04:20:25 PM »
I've been using CWP on a physical (bare metal) server for about 3 years. My server is running the latest CWP version. For many reasons, I have decided to build a new server (upgrading in the process) and install CentOS 7 this time.

My current server:
Distro Name: CentOS release 6.10 (Final)
CWP version:

I have about 15 websites hosted. One of then needs an older version of PHP. Several sites use HTTPS. There are several e-mail addresses and forwarders, and about 10 MySQL databases.

I noticed that there is a CWP -> CWP migration feature. I will definitely want to look into this. Which things are brought over in this migration?

I'd also like to migrate as much of the system configuration as possible (Apache config, current list of blocked IP addresses, the CSF and IPtables configration, etc.)

It will be easy enough to compile various versions of PHP again.

I'm looking for advice for what I should do before/during/after the migration. My plan is to build the complete 2nd machine, install CWP and CentOS 7, and then start moving sites over. When everything is working, I'll switch off the old server and switch the internal static IP to the static IP used by the old server (so all web traffic starts forwarding to the new server 1st)

Is there a relatively easy way to forward individual domains to a second server on your internal network?

Has anyone else done a migration of accounts from a CentOS 6 server to a 2nd CentOS 7 server? Any advice or tips?

Thank you in advance,


Addons / Can we install Docker CE on a CentOS CWP server?
« on: July 30, 2018, 07:41:29 PM »
And then we can have a "virtual server" inside our server, which can do things like host web apps (Node.js, Ruby on Rails, etc.)

Is this possible?

Or do we need to install nginx alongside Apache so that SOME requests can be forwarded to a 2nd server, which is set up with Docker only?

There is a project called

which installs on Docker, and allows you to be your own Heroku using your existing server hardware.

Addons / How to host multiple React or Node.js sites on CWP?
« on: July 25, 2018, 11:37:29 PM »
Is there a way to host multiple Node.js or React.js websites using CWP, the way we can host hundreds of PHP sites today?

If not, is this being worked on? Javascript is the most popular language in the world right now; there are hundreds of popular Javascript frameworks being used all over the world.


Information / EMERGENCY! has been hacked!
« on: September 13, 2017, 04:31:19 AM »
I host all my DNS on

Right now, it's not reporting that my website ( directs anywhere but to my server, hosted on IP

However, somehow there's a hidden redirect for the subdomain

which SHOULD NOT BE HAPPENING. I looked into this, and I conclude that there has been a hack, not on my server, but on the FreeDNS system somewhere. PLEASE LOOK INTO IT ASAP!
Host records (by server): has address mail is handled by 10
Host record (by google DNS):
NameServers (by google DNS):
NS search records (by google DNS):
SOA 2017091307 28800 7200 1209600 86400 from server in 57 ms.
SOA 2017091307 28800 7200 1209600 86400 from server in 137 ms.
rDNS/PTR record check: SUCCESS
rDNS A record = [Check SenderBase] [Check RBL]
Host records (by server): has address
Host record (by google DNS):
NameServers (by google DNS):
NS search records (by google DNS):
SOA 2017082101 28800 7200 1209600 86400 from server in 68 ms.
SOA 2017082101 28800 7200 1209600 86400 from server in 151 ms.
rDNS/PTR record check: FAILED
rDNS A record = [Check SenderBase] [Check RBL]

Checking with google if domain is hosted on this server: FAILED

You need to set your domain nameservers to:

*if you want that your dns records works!





Host   Type   Destination   Valid   Delete







CentOS-WebPanel Bugs / MySQL Manager no longer works at all
« on: July 30, 2017, 06:36:00 PM »

This used to display all the MySQL databases and users just fine.
Now it's blank -- it never loads them.

Perhaps a related bug: last time I rebooted the server, it didn't recover! MySQL in particular was a sticking point. I had to log in locally and manually start MySQL to get the server back up and running.

And also possibly related: I can no longer log in to MySQL as root.

Please advise.

CWP version:

Also getting this error:
DBI connect(';;mysql_read_default_group=client','root',...) failed: Access denied for user 'root'@'localhost' (using password: YES) at /usr/bin/pt-show-grants line 1338

Pages: [1] 2 3