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

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

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

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

5
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

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

7
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


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

9
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

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


11
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

12
MySQL / Can't load phpMyAdmin any longer
« on: February 12, 2017, 08:56:04 PM »
I get this error:

PHP Fatal error:  main(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition &quot;PMA\\libraries\\ThemeManager&quot; of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition  in /usr/local/apache/htdocs/phpMyAdmin/libraries/common.inc.php on line 700

13
Apache / How to install mod_ratelimit?
« on: August 06, 2016, 12:32:31 AM »
This is quite a useful module, but it needs to be compiled into Apache, I think.
Moreover, I couldn't find anything mod_ratelimit.* anywhere on my server.
You can't seem to download the .c file separately.

https://httpd.apache.org/docs/2.4/mod/mod_ratelimit.html

14
Backup / How to change default target directory on backup server
« on: June 09, 2016, 05:33:34 AM »
Right now backup is working fine -- my server is logging in OK, and uploading all backups to the directory: /home/user/cwp_remote

But what if I want to use a different directory than that? How do I change it?

I'd like my backups to be somewhere outside the home folder, like /backup

15
Updates / Undefined variables after update to 0.9.8.15
« on: June 07, 2016, 02:49:12 AM »
Notice: Undefined index: lic in /usr/local/cwpsrv/htdocs/admin/index.php(1) : eval()'d code(1) : eval()'d code on line 44

And in the new Firewall Manager, I get a TON of "undefined variable" notices like this one:
Notice: Undefined variable: xvwksi117 in /usr/local/cwpsrv/htdocs/resources/admin/modules/firewall.php(1) : eval()'d code(1) : eval()'d code on line 44

ALSO --

When I go here:
http://IPADDRESS:2030/index.php?module=iptables_list

The webpage just hangs. I have a lot of entries in my IPTABLES, but still...

Pages: [1] 2