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.

Messages - bentsea

Pages: [1]
I am experiencing this issue, too. I have a WSGI application that requires a custom vhost file to deploy and this is breaking my website every single night. If there isn't a solution soon I'll have to stop using CWP.

CentOS 7 Problems / Yum Manager "no such file or directory"
« on: August 28, 2020, 03:16:05 PM »

I'm trying to keep my server up to date and in my Yum Manager I have a recommendation to update selinux-policy-minimum.noarch. When running the update and after confirming the update, the CWP panel says that the software is updated successfully, I suppose because the installer itself did not fail, even though the updates are not installed and continue to remain in the section.

The output to the console is as follows:

Code: [Select]
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base:
 * centos-sclo-rh:
 * centos-sclo-sclo:
 * epel:
 * extras:
 * remi-safe:
 * updates:
Resolving Dependencies
--> Running transaction check
---> Package selinux-policy-minimum.noarch 0:3.13.1-252.el7.1 will be updated
---> Package selinux-policy-minimum.noarch 0:3.13.1-266.el7_8.1 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

 Package                    Arch       Version                Repository   Size
 selinux-policy-minimum     noarch     3.13.1-266.el7_8.1     updates     7.0 M

Transaction Summary
Upgrade  1 Package

Total download size: 7.0 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
/var/tmp/rpm-tmp.94uBvf: line 19: /usr/share/selinux/minimum/instmodules.lst: No such file or directory
error: %pre(selinux-policy-minimum-3.13.1-266.el7_8.1.noarch) scriptlet failed, exit status 1
  Verifying  : selinux-policy-minimum-3.13.1-252.el7.1.noarch               1/2
  Verifying  : selinux-policy-minimum-3.13.1-266.el7_8.1.noarch             2/2

  selinux-policy-minimum.noarch 0:3.13.1-252.el7.1                             
  selinux-policy-minimum.noarch 0:3.13.1-266.el7_8.1                           


Can anyone help resolve this "no such file or directory" issue so that I can install the update? Do I need to install this update? If I don't, can this be excluded from future update prompts? Will this create dependency chains in the future for other updates I need?

Code: [Select]
[root@server3 ~]# curl|sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   899  100   899    0     0   1721      0 --:--:-- --:--:-- --:--:--  1718
Linux 3.10.0-957.1.3.el7.x86_64 #1 SMP Thu Nov 29 14:49:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

CPU info:
model name      : Intel(R) Xeon(R) CPU E5-2630 v3 @ 2.40GHz

CentOS Linux release 7.8.2003 (Core)


Virtualization Type:

              total        used        free      shared  buff/cache   available
Mem:          15885        2873       12694          31         316       12711
Swap:             0           0           0

MySQL info:
mysql  Ver 15.1 Distrib 10.1.46-MariaDB, for Linux (x86_64) using readline 5.1

Disk Info:
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        7.8G     0  7.8G   0% /dev
tmpfs           7.8G     0  7.8G   0% /dev/shm
tmpfs           7.8G  1.2M  7.8G   1% /run
tmpfs           7.8G     0  7.8G   0% /sys/fs/cgroup
/dev/sda1       160G   20G  141G  13% /
tmpfs           1.6G     0  1.6G   0% /run/user/1000
tmpfs           1.6G     0  1.6G   0% /run/user/0

# /etc/fstab
# Created by anaconda on Mon Jan 28 20:51:49 2019
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
UUID=f41e390f-835b-4223-a9bb-9b45984ddf8d /                       xfs     defaults        0 0

Apache PHP info:
Failed loading /usr/local/ioncube/  /usr/local/ioncube/ cannot open shared object file: No such file or directory
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/' - cannot open shared object file: No such file or directory in Unknown on line 0
PHP 7.0.33 (cli) (built: Jul 23 2019 19:34:25) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies

Apache start script check:
grep: /etc/init.d/httpd: No such file or directory

CWP Admin check:

CWP version:

How to / Cron job works from command line but not in cron
« on: July 22, 2019, 04:11:45 PM »

The following works for me from the command line:

/usr/local/bin/php /home/tetra/help/public_html/api/cron.php

However, I've tried the following cron jobs and none of them have produced any results:

* * * * * tetra /usr/local/bin/php /home/tetra/help/public_html/api/cron.php
* * * * * nobody /usr/local/bin/php /home/tetra/help/public_html/api/cron.php
* * * * * /usr/local/bin/php /home/tetra/help/public_html/api/cron.php
* * * * * /opt/alt/php-fpm70/usr/bin/php /home/tetra/help/public_html/api/cron.php

The permissions for that file are 755. I've checked my cron logs, and I'm not 100% sure it is being run at all, but honestly I do not know how to identify for sure. This is for the past hour and I've had 1 minute crons in this queue for over an hour and this is the only output from tail (I wasn't able to do this as the user, I had to do it as root):

Code: [Select]
Jul 22 14:10:01 server3 CROND[24716]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Jul 22 14:20:01 server3 CROND[25605]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Jul 22 14:30:01 server3 CROND[28042]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Jul 22 14:40:01 server3 CROND[21551]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Jul 22 14:50:01 server3 CROND[7167]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Jul 22 15:00:01 server3 CROND[4888]: (root) CMD (/usr/share/clamav/freshclam-sleep)
Jul 22 15:00:01 server3 CROND[4889]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Jul 22 15:01:01 server3 CROND[4969]: (root) CMD (run-parts /etc/cron.hourly)
Jul 22 15:01:01 server3 run-parts(/etc/cron.hourly)[4969]: starting 0anacron
Jul 22 15:01:01 server3 run-parts(/etc/cron.hourly)[4978]: finished 0anacron
Jul 22 15:10:01 server3 CROND[6247]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Jul 22 15:20:01 server3 CROND[6985]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Jul 22 15:30:01 server3 CROND[7756]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Jul 22 15:40:01 server3 CROND[10443]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Jul 22 15:50:02 server3 CROND[14263]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Jul 22 16:00:01 server3 CROND[15617]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Jul 22 16:01:01 server3 CROND[15689]: (root) CMD (run-parts /etc/cron.hourly)
Jul 22 16:01:01 server3 run-parts(/etc/cron.hourly)[15689]: starting 0anacron
Jul 22 16:01:01 server3 run-parts(/etc/cron.hourly)[15698]: finished 0anacron
Jul 22 16:10:01 server3 CROND[16183]: (root) CMD (/usr/lib64/sa/sa1 1 1)

SSL / Re: Can't autossl domain
« on: April 05, 2019, 06:43:31 AM »
I'm experiencing this same issue with all domains on a new installation.

CentOS 7 Problems / Changing Hostname Inserts Junk into Hostname
« on: April 01, 2019, 12:19:23 AM »
From the change hostname menu (Server Settings -> Change Hostname) I am experiencing an error when clicking the change hostname button. No matter what I set my hostname to, the server appends "" to the hostname when it moves to the next screen.

Example, if I try to set my hostname to the server sets it to server5.bentsea.net127.0.0.1.

THis obviously causes SSL generation to fail and causes the "You do not have a valid hostname set" error.

Can anyone recommend any kind of troubleshooting for this?

CentOS 7 Problems / Re: AutoSSL Hangs and Fails
« on: March 30, 2019, 06:17:32 PM »
Sure, this is what it looks like on the add a domain screen of the user login (This is a real domain pointed to the server):

While the processing...! will never resolve, the domain will get added. If you go to the user AutoSSL screen it will act normally at first, it will say Validating! iin the button next to your domain after you select your domain, and if you click install it will give the Success! notification, but, it will not have added an SSL and here there will be an error "Error_domainError_domain":

From the root SSL Certificates menu it will hang forever, never resolving "Installing please wait":

If I attempt to add a new user with a real domain that is pointed to the server and select generate AutoSSL at the bottom of the add a user page, it will get stuck at the blank page where it is processing the new user, however, unlike the other items where the end result is no effect happening, attempting to add a new user with AutoSSL enabled for the domain will cause the user account to fail to provision correctly with all kinds of issues, such as not being able to add domains, etc, and it will never complete adding the user. VS the expected behavior of, if AustoSSL fails the user is still provisioned but the SSL is not generated. The only real visible direct error is in the user AutoSSL page when it says Error_domainError_domain after attempting to generate an SSL.

As I said, this is a brand new installation from scratch, with CWP Pro, on Centos 7. Every action with auto SSL generation causes that action to hang without ever completing. I really need a solution.

CentOS 7 Problems / AutoSSL Hangs and Fails
« on: March 30, 2019, 10:44:32 AM »
I just reinstalled CWP from scratch and AutoSSL is not issuing an SSL for the hostname, in addition to this when attempting to enable autossl for any domains installed on the server causes the install process to hang and not complete. I'm not sure where to troubleshoot this because no error is generated, any use of Autossl just hangs for forever. Any recommendations for how to troubleshoot?

DNS / Re: BIND DNS / Nameservers are unreachable
« on: January 05, 2019, 03:10:44 AM »
I found the issue and I want to be sure to post the answer here for anyone else who experiences this issue:

When I reinstalled BIND DNS, it installed with a default config file that didn't contain any of the zone file paths that had been added up to date, additionally, it was configured to only server for local DNS queries and was not configured to listen to or respond to external DNS queries which made it impossible for it to act as a name server host.

By editing /etc/named.conf I was able to add the previously existing zone files as well as update the configuration to listen externally and disable recursive lookup.

Afer performing both of these changes to named.conf and restarting BIND, DNS began to work correctly on the server.

DNS / BIND DNS / Nameservers are unreachable
« on: December 29, 2018, 11:41:46 PM »

While trying to rollback an update using yum history undo, I accidentally rolled back the wrong update and it broke bind. I'm not sure which one. It would not start, but I was able to fix it by reinstalling BIND with
Code: [Select]
yum install bind bind-utils. At this time BIND will start and run normally, however, none of the domains using my custom name servers will resolve. Leaf DNS returns the following error:

"FAIL: Nameserver is unreachable."

Here are zone files for the two domains that will not load:

Code: [Select]
; Generated by CWP
; Zone file for
$TTL 14400
@    86400        IN      SOA (
2018071600      ; serial, todays date+todays
3600            ; refresh, seconds
7200            ; retry, seconds
1209600         ; expire, seconds
86400 )         ; minimum, seconds

@ 86400 IN NS
@ 86400 IN NS
@ IN MX 0
mail 14400 IN CNAME
smtp 14400 IN CNAME
pop  14400 IN CNAME
pop3 14400 IN CNAME
imap 14400 IN CNAME
webmail 14400 IN A
cpanel 14400 IN A
cwp 14400 IN A
www 14400 IN CNAME
ftp 14400 IN CNAME
_dmarc 14400 IN TXT "v=DMARC1; p=none"
@ 14400 IN TXT "v=spf1 +a +mx +ip4: ~all"

default._domainkey 14400 IN TXT "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDeyZLcuYMlLXr2kN0C6q/aSK8WltaHIzoGgGed1yrc2BlQmpmvb6fU5PtPtHxDXhVRK5xNH8xe6gJSeVqoUDcMZGICY5VMjrS0b4RCZ7NlPl1MWY9hCoke09iDe7khzNE8UEQyf+Yu+5lKCgRyRUNZGdABrFE3h7N0ALtO95tkywIDAQAB"

Code: [Select]
; Generated by CWP
; Zone file for
$TTL 14400      86400        IN      SOA (
2013071600      ; serial, todays date+todays
86400           ; refresh, seconds
7200            ; retry, seconds
3600000         ; expire, seconds
86400 )         ; minimum, seconds 86400 IN NS 86400 IN NS IN A IN A IN MX 0

; Add additional settings below this line
_dmarc 14400 IN TXT "v=DMARC1; p=none"

I've tried recreating the name servers, removing and re-adding the domains. All the records appear to be correct to me. BIND service is running... I'm at a complete loss for why the name servers are not responding and for what can resolve this.

CentOS 6 Problems / Blank White Screen
« on: January 28, 2017, 05:19:41 AM »
My CWP control panel has suddenly started to display a blank white screen, both on the secure and unsecure ports. Nothing was changed on the server (Manually) since the last time I accessed it, which was some months ago. I'm not even sure where to start troubleshooting this one. This looks like a PHP error that I've seen with other scripts but I have no idea, really. The control panel URL:

Any ideas how to resolve this? I'm using CentOS 6

Apache appears to still be resolving:

SSL / Re: Error Restarting cwpsrv Service for Servername SSL
« on: January 23, 2017, 12:50:42 PM »
Thank you so much! This successfully allowed me to reach the server without a security warning via port 2031, however, configured with the root of the domain it loads a default apache server page instead of CWP Control Panel, do you happen to know what the document root would need to be to correctly serve the control panel at that port so that I can securely perform admin tasks?

SSL / Re: How to remove LetsEncrypt Certificate
« on: January 21, 2017, 05:49:24 PM »
Is there any way to delete only a single domain?

SSL / Error Restarting cwpsrv Service for Servername SSL
« on: January 21, 2017, 05:40:40 PM »
Hello, I am attempting to install an SSL for my server name using the Tutorial available here:

I am using CentOS 7 with the default apache only configuration.

I am successful through step one and two, and my host name can be reached via HTTPS:

When I perform step 3 to enable HTTPS access via port 2031,  there is no cwp-ssl.conf file. So I have created one with the following code:

Code: [Select]
Listen 2031

        SSLEngine on
 SSLCertificateFile /etc/letsencrypt/live/
 SSLCertificateKeyFile /etc/letsencrypt/live/
 SSLCertificateChainFile /etc/letsencrypt/live/
 SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown

When restarting the cwpsrv, I get the following error:

Code: [Select]
Redirecting to /bin/systemctl restart  cwpsrv.service
Job for cwpsrv.service failed because the control process exited with error code. See "systemctl status cwpsrv.service" and "journalctl -xe" for details.

The ouput for "journalctl -xe" yields the following error:
Code: [Select]
Jan 21 11:31:46 server3 systemd[1]: Starting CentOS Web Panel service (daemon)...
-- Subject: Unit cwpsrv.service has begun start-up
-- Defined-By: systemd
-- Support:
-- Unit cwpsrv.service has begun starting up.
Jan 21 11:31:46 server3 cwpsrv[30103]: nginx: [emerg] unexpected end of file, expecting ";" or "}" in /usr/local/cwpsrv/conf.d/cwp-ssl.conf:10
Jan 21 11:31:46 server3 cwpsrv[30103]: nginx: configuration file /usr/local/cwpsrv/conf/cwpsrv.conf test failed

I have been unable to locate any alternative cwp-ssl.conf code given that the error appears to be potentially with syntax or alternative directions for configuring correct use of an SSL for service over port 2031 with the letsencrypt issues SSL. Any help resolving this issue or with alternative directions for configuring for use on port 2031 would be greatly appreciated.

Pages: [1]