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
1
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.

HERE'S MY PROBLEM:
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.

2
Addons / How to install Mod XSendfile
« on: October 22, 2022, 05:27:06 AM »
Here are the instructions
https://tn123.org/mod_xsendfile/

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?

3
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 --

Matthew

4
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)
https://192.168.1.20:2031/pma/

Now gives a

404 Not Found
cwpsrv

Error.

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.

5
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)
Why?
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 65.19.138.33:65124] 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 65.19.138.33:65124] Caused by SystemException in API_Linux.cpp:444: execve() for program "/opt/alt/php56/usr/bin/php-cgi" failed: Permission denied

Matthew

6
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.
https://wiki.centos.org/About/Building_8

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.

7
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 192.168.1.10 (local IP of my server) for the domain name mydomain.com
However, when I visit "mydomain.com" in my browser, it gives me the CentOS default page. Why isn't it directing such traffic to the account for mydomain.com which I set up in Apache?

Matthew

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.

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

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

Vhosts:
Code: [Select]
<VirtualHost 192.168.1.20:80>
        ServerName mydomain.com
        ServerAlias www.mydomain.com
        ServerAdmin webmaster@mydomain.com
        DocumentRoot /home/mydomain/public_html
        UseCanonicalName Off
        ScriptAlias /cgi-bin/ /home/mydomain/public_html/cgi-bin/

        CustomLog /usr/local/apache/domlogs/mydomain.com.bytes bytes
        CustomLog /usr/local/apache/domlogs/mydomain.com.log combined
        ErrorLog /usr/local/apache/domlogs/mydomain.com.error.log

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

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

        <IfModule mod_userdir.c>
                UserDir disabled
                UserDir enabled mydomain
        </IfModule>

        <IfModule mod_suexec.c>
                SuexecUserGroup mydomain mydomain
        </IfModule>

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

        <IfModule mod_ruid2.c>
                RMode config
                RUidGid mydomain mydomain
        </IfModule>

        <IfModule itk.c>
                AssignUserID mydomain mydomain
        </IfModule>

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

</VirtualHost>

8
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.

9
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,

Matthew

10
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?

11
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: 0.9.8.573

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,

Matthew


12
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
https://github.com/githubsaturn/captainduckduck

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

13
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.

Matthew

14
Information / EMERGENCY! freedns.centos-webpanel.com has been hacked!
« on: September 13, 2017, 04:31:19 AM »
I host all my DNS on
http://freedns.centos-webpanel.com

Right now, it's not reporting that my website (www.chantcd.com) directs anywhere but to my server, hosted on IP 64.250.9.27.

However, somehow there's a hidden redirect for the subdomain
books.chantcd.com

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!



chantcd.com
Host records (by server):
chantcd.com has address 64.250.9.27
chantcd.com mail is handled by 10 mail.chantcd.com.
Host record (by google DNS):
64.250.9.27
NameServers (by google DNS):
ns2.centos-webpanel.com.
ns1.centos-webpanel.com.
NS search records (by google DNS):
SOA ns1.centos-webpanel.com. freedns.centos-webpanel.com. 2017091307 28800 7200 1209600 86400 from server 167.114.21.225 in 57 ms.
SOA ns1.centos-webpanel.com. freedns.centos-webpanel.com. 2017091307 28800 7200 1209600 86400 from server 185.4.149.83 in 137 ms.
rDNS/PTR record check: SUCCESS
rDNS/PTR = 64-250-9-27.gvec.net
rDNS A record = 64.250.9.27 [Check SenderBase] [Check RBL]



books.chantcd.com
Host records (by server):
books.chantcd.com has address 212.47.235.72
Host record (by google DNS):
212.47.235.72
NameServers (by google DNS):
ns2.centos-webpanel.com.
ns1.centos-webpanel.com.
NS search records (by google DNS):
SOA ns1.centos-webpanel.com. freedns.centos-webpanel.com. 2017082101 28800 7200 1209600 86400 from server 167.114.21.225 in 68 ms.
SOA ns1.centos-webpanel.com. freedns.centos-webpanel.com. 2017082101 28800 7200 1209600 86400 from server 185.4.149.83 in 151 ms.
rDNS/PTR record check: FAILED
rDNS/PTR = 72.1-24.235.47.212.in-addr.arpa72-235-47-212.rev.cloud.scaleway.com
rDNS A record = 212.47.235.72 [Check SenderBase] [Check RBL]

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

You need to set your domain nameservers to:
ns1.centos-webpanel.com
ns2.centos-webpanel.com
ns3.centos-webpanel.com
ns4.centos-webpanel.com
ns5.centos-webpanel.com

*if you want that your dns records works!

Zone:
chantcd.com   
Serial:
2017091308
Refresh:

28800
Retry:

7200
Expire:

1209600
TTL:

86400
NS1:

ns1.centos-webpanel.com
NS2:

ns2.centos-webpanel.com
    
Host   Type   Destination   Valid   Delete

@
    
64.250.9.27
 YES


@
    
10
 
mail.chantcd.com
 YES


books
    
64.250.9.27
 YES


ftp
    
64.250.9.27
 YES


mail
    
64.250.9.27
 YES


www
    
@


15
CentOS-WebPanel Bugs / MySQL Manager no longer works at all
« on: July 30, 2017, 06:36:00 PM »
http://mylocalip:2030/admin/index.php?module=mysql_manager

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: 0.9.8.260

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