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

Pages: 1 [2] 3 4 5
16
Updates / Re: Update proof configurations
« on: July 16, 2020, 01:38:19 PM »
OK... The cloud has lifted. I now understand the changes to the way templates and configs are handled in CWP.

In order to edit the main server config, you simply create a new config file and add your edits to it. That file will be included, automatically.

I did encounter a small bug. I get the following error when creating a new config file in CWP->WebServer Settings->WebServers Conf Editor->Apache->conf.d
Code: [Select]
Notice: Undefined variable: file_size in /usr/local/cwpsrv/htdocs/resources/admin/modules/file_editor.php on line 0Although the file was successfully created.

17
Updates / Re: Update proof configurations
« on: July 16, 2020, 10:54:37 AM »
I understand that CWP now has a vhost template editor/switcher but I don't see that same type of functionality being offered for server config files such as Apache's 'httpd.conf' file.

So, for example, if I want to enable an Apache module (that is not enabled by default) such as 'mod_remoteip.so', do I have to manually edit the 'httpd.conf' file every time I rebuild Apache or is there a better way?

18
Updates / Update proof configurations
« on: July 15, 2020, 12:25:13 PM »
My CWP install is behind a gateway device so all logged IP's are 192.168.1.1. Because of a CWP bug (don't know if it was ever fixed), I am using Nginx & Varnish & Apache.

Before updating (which update I do not know), I had my CWP set up to log the client IP's. It was using mod_rpaf with x-forward but it seems an update has removed the mod_rpaf option from the control panel.

What is the proper way to setup client IP logging so that the custom config does not get blown away by a future update?

19
Other / Re: CWPPRO
« on: June 20, 2020, 10:48:40 PM »
Mine keeps periodically reverting from CWPPro to free. This is very frustrating.

Running
Code: [Select]
sh /scripts/update_cwpand
Code: [Select]
sh /usr/local/cwpsrv/htdocs/resources/scripts/update_cwpDo not help.

Anyone have any suggestions? Is there a static IP address or a specific port that I need to whitelist that handles license verification?

20
CentOS-WebPanel Bugs / Re: Backup error since last update
« on: March 24, 2020, 12:17:40 PM »
I never created a scheduled backup so it shouldn't even attempt a backup.

Does anyone know how to disable?

UPDATE: I deleted the cron job. That should stop it, right?

21
CentOS-WebPanel Bugs / Backup error since last update
« on: March 23, 2020, 12:56:01 PM »
Daily, I'm getting an email with the following data:

Email subject:
Code: [Select]
Cron <root@cwp> /usr/local/cwp/php71/bin/php-cgi -d max_execution_time=10000000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron_newbackup.php
Body of the email:
Code: [Select]
PHP Warning:  SQLite3::exec(): database is locked in /usr/local/cwpsrv/htdocs/resources/admin/include/cron_newbackup.php on line 0
I haven't attempted to schedule any backup jobs because I backup the whole VM with Veeam. When I visit CWP Settings->NEW Backup (beta) tab and click on Log Monitor, I see the following:

Code: [Select]
Log Monitor

2020-03-23 00:15:01 Backup Initiated
2020-03-23 00:15:01 ["account1","account2","account3","account4"]
2020-03-23 00:15:01 Starting compression
2020-03-23 00:15:01
2020-03-23 00:15:04 UPDATE backups SET LASTEXEC = "2020-03-23 00:15:04", STRUN ="0" WHERE ID="1"

tail -f /var/log/cwp/cron_backup.log

So I guess there are two issues;
  • Why is a backup attempted when I never scheduled it?
  • What is causing it to error out?
Where do I begin troubleshooting this?

22
SSL / Re: AutoSSL not working
« on: October 24, 2019, 08:08:00 PM »
@jeffshead

This may help you:
...rate limit...

Thanks but as I mentioned in my last post, I can obtain certs from LE (for the same domains) using my gateway so I haven't hit any limits. I encounter the issue only with CWP.

What CWP logs should I be checking to see what is happening?

23
SSL / Re: AutoSSL not working
« on: October 23, 2019, 11:39:08 PM »
Ok… Let me start over.

I currently have commercial SSL certs for all of my domains. I manually installed them and they are working. I wanted to start using AutoSSL but it always fails without any errors when I remove an existing cert and use the AutoSSL tab. It actually says it completed successfully but it never does for any domain.

I am behind a gateway so CWP is NAT’ed. I do not use CWP’s BIND DNS Server nor do I use CWP’s email services. I use an external DNS provider and I have a separate email server that handles all email for all of the domains I host on the CWP server.

My DNS records at my DNS provider are all correct. In fact, my gateway appliance has built-in Let’s Encrypt functionality and it can successfully obtain a Let’s Encrypt SSL cert for any of my domains so that means the DNS records are correct. The problem I run into is that I also have to have certs on the CWP server or a couple of my web apps fail to work properly.

@adamjedgar
- The records I posted in my previous reply are the contents of the HOSTS file on the CWP server.
- I do have a separate/different A record for each domain just as you posted in number 1 of your response.
- Number 2 of your response is part of the issue. CWP automatically creates a CNAME for the www sub of every account and it will not let you create a separate www subdomain so there is no option on the AutoSSL tab to get a cert for only www.

AutoSSL fails to work for any of my domains including the domains that have both the base domain and the www sub hosted on the CWP server. I even created a test.mysite.com subdomain and allowed enough time for the DNS to propagate. It failed too. Just to be clear, I'm not actually using mysite.com. I'm using it as a substitute for my real domain names, only in my forum posts.

24
SSL / Re: AutoSSL not working
« on: October 21, 2019, 12:52:59 PM »
try to create a seprate A records for www, I have not tested but it should work. Also you can use domains default DNS settings and create A records for www (A=IP of server 1)  and non-www ( A= IP of server 2) and create the host records.
My CWP is NAT'ed so all IP's for the domains are local. I use a DNS provider so I rely on the vanity DNS servers that I have specified with them for resolution.  I already have separate A records for the public IP's of 'mysite.com' and 'www.mysite.com' registered with my DNS provider.

Below is what is currently in my HOSTS file:
Code: [Select]
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
127.0.0.1 cwp.mysite.com
127.0.0.1 autoreply.cwp.mysite.com

25
SSL / Re: AutoSSL not working
« on: October 20, 2019, 03:42:32 PM »
Thanks but your suggestion doesn't seem to work with www as the subdomain.

26
SSL / AutoSSL not working
« on: October 20, 2019, 01:35:25 AM »
I can't figure out how to set up my account/domain/subdomain on CWP. For example, let's assume my domain name is: mysite.com.

I want only www.mysite.com hosted on CWP, not mysite.com. mysite.com is on a different server, with a different public IP.

www.mysite.com is not an option to choose from when attempting to use AutoSSL; only "mysite.com" or "All Domains".

So how am I supposed to set this up? Also, my CWP is behind a gateway so I use NAT.

27
Information / Re: CWPpro version: 0.9.8.742 vhost templates
« on: April 07, 2019, 03:38:47 PM »
depends on how/where you manually change that ip address for the user, latest version if you use edit account from cwp will modify dns and webservers
Not working for me.

I have tried that and I do make sure that the ‘Update WebServers’ checkbox is ticked before I save the account settings but the IP listed in all of the vhost files does NOT change even though the correct, alternate IP is listed in that account’s settings.

I have to go back and manually edit the Apache, NGINX and Varnish vhost files for that account every time I rebuild the servers because the CWP ‘Edit Account Settings’ does NOT update them .

It’s either a bug or something is keeping CWP from updating the vhost files. What should I check?

28
Information / Re: CWPpro version: 0.9.8.742 vhost templates
« on: March 04, 2019, 02:39:18 PM »
this can't be any easier and simpler, there are also several instructions on the forum and wiki
http://wiki.centos-webpanel.com/webservers-vhost-templates
Thanks for the link :D When I first updated to v0.9.8.742, all I realized was that the template editing functionality was removed from the admin. That's when I started editing each individual vhost. Back then (http://forum.centos-webpanel.com/updates/every-menu-item-showing-high-performace-webservers-configuration/msg20157/#msg20157), I did not find any info on the new way of doing templates.

So it is normal behavior to manually assign a particular IP to an account but CWP does not automatically update the vhost files for the domains under that account?

29
Information / Re: CWPpro version: 0.9.8.742 vhost templates
« on: March 04, 2019, 02:07:24 PM »
I updated to CWPpro version: 0.9.8.742. I don't seem to see the vhost templates. Can someone please point to me to it?
I posted about this earlier. This was a major change (I believe for the worse).

Now you have to edit each domain's vhost, manually.

30
Information / Re: Add additional IP addresses to CWP 7
« on: March 04, 2019, 02:03:00 PM »
Did you edit the Apache hosts files and nginx config for each domain so they use the new IP? I don't know why CWP doesn't do this automatically. You would think it would but CWP associates the new IP to the user account(s) only.

Pages: 1 [2] 3 4 5