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.
316
Installation / Re: PHP Version Switcher v2 not changing version
« on: February 06, 2022, 01:46:45 AM »am have 3 test servers VPS with centos stream 8.5 preinstalled Centos Stream 8 and use sandeep setup from step 2 step 3 step 4
https://www.mysterydata.com/convert-centos-8-to-centos-8-stream-install-cwp-control-panel-in-centos-8-stream/
PHP-FPM Selector works fine PHP Version Switcher v2 works now olso after today automatic updated
https://prnt.sc/26n0n2d
https://prnt.sc/26n0nif
I'm wondering why you have automatic updates enabled on php-fpm? Don't you have settings changed or secured in the php.ini files? These auto updates will reset php.ini every time.
Your second screenshot tells you everything you need to know. You are forcing all domains to use FPM, thus there is no need for a default PHP. If you turn off forced FPM, please respond back with any errors you receive while switching.
317
CentOS-WebPanel GUI / Re: Change List Accounts "Open Panel" link to hostname instead IP address
« on: February 06, 2022, 01:43:00 AM »
Not sure then. If you hit save, it should have changed it from IP to Hostname. Every CWP i've ever done uses the hostname. Possible check /etc/hostname to make sure it's set there. Also remember the hostname has to be a FQDN
318
CentOS-WebPanel Bugs / Re: Problem with VARNISH config files .... and CWP update to new version
« on: February 06, 2022, 01:38:01 AM »
Copy /usr/local/cwpsrv/htdocs/resources/conf/web_servers/vhosts/varnish/default.tpl to /usr/local/cwpsrv/htdocs/resources/conf/web_servers/vhosts/varnish/custom.tpl
Make your modifications for the port there.
In CWP, goto WebServer Settings -> WebServers Main Config
Set the template to custom.tpl
On Update, the sites should rebuild using your custom.tpl file
Make your modifications for the port there.
In CWP, goto WebServer Settings -> WebServers Main Config
Set the template to custom.tpl
On Update, the sites should rebuild using your custom.tpl file
319
Apache / Re: Internal Server Error
« on: February 05, 2022, 07:26:00 PM »
f script "/usr/local/apache/htdocs/index.php" is smaller than min_uid <<< This is your error
chown "/usr/local/apache/htdocs/index.php" to nobody, or a user account other than root
chown "/usr/local/apache/htdocs/index.php" to nobody, or a user account other than root
320
Backup / Re: Can you add automatic backup to Amazon s3 and Wasabi?
« on: February 05, 2022, 07:18:01 PM »
Here is a workaround for you.
https://www.nakivo.com/blog/mount-amazon-s3-as-a-drive-how-to-guide/
Mount s3 as a drive. Then set your backup location to you s3 drive
https://www.nakivo.com/blog/mount-amazon-s3-as-a-drive-how-to-guide/
Mount s3 as a drive. Then set your backup location to you s3 drive
321
CentOS-WebPanel GUI / Re: Change List Accounts "Open Panel" link to hostname instead IP address
« on: February 05, 2022, 07:16:12 PM »
Server Settings -> Change Hostname
It seems you don't have one set, so it uses the IP instead.
It seems you don't have one set, so it uses the IP instead.
322
CentOS 7 Problems / Re: CWP admin login to white blank page
« on: February 05, 2022, 07:14:06 PM »
Sure. Use whatever the latest version available. I wasn't going hunting for the latest version
323
CentOS 7 Problems / Re: CWP admin login to white blank page
« on: February 05, 2022, 03:47:52 AM »
cd /usr/local/cwpsrv/htdocs
wget static.cdn-cwp.com/files/cwp/el7/cwp-el7-0.9.8.1048.zip
unzip -o -q cwp-el7-0.9.8.1048.zip
rm -f cwp-el7-0.9.8.1048.zip
wget static.cdn-cwp.com/files/cwp/el7/cwp-el7-0.9.8.1048.zip
unzip -o -q cwp-el7-0.9.8.1048.zip
rm -f cwp-el7-0.9.8.1048.zip
324
CentOS 7 Problems / Re: After centos update, all sites go to test page
« on: February 05, 2022, 03:40:23 AM »
admin/index.php?module=WebServers_conf
Check Rebuild vhosts on save.
Check Rebuild vhosts on save.
325
Updates / Re: Adding post-script to auto php updates?
« on: February 05, 2022, 03:38:24 AM »
php.ini will be overwritten every time it's updated. But if you want things to stick, and they can be configured, you can create a template at this location " /usr/local/cwpsrv/htdocs/resources/conf/web_servers/vhosts/php-fpm/ ", and set your settings there. Then set your php-fpm to use your custom template.
326
CentOS-WebPanel Bugs / Re: CentOS 8 minor bug
« on: April 05, 2021, 03:21:14 AM »
Is the 1 update by chance MariaDB? Because there is a huge difference in the minor upgrade, and they provide instructions on a "Manual Upgrade". If it's not Maria, please cite what program refused to update.
327
DNS / Re: SRV records not working
« on: April 04, 2021, 07:29:27 AM »
https://www.cloudflare.com/learning/dns/dns-records/dns-srv-record/
1) You are looking up a "A" record via DIG. to look up SRV records, you use "dig SRV (domain)"
2) play.elementia.tk is a NX domain, becasue it has no A record
3) because you ended play with a period, Bind does not attack the rest of the domain name. By RFC, any domain ending with a . is considered absolute. So I'm honestly suprised your not getting an Error of an out of zone domain name. The following line should work correctly.
_minecraft._tcp.play IN SRV 0 5 80 minecraft.elementia.tk.
or
_minecraft._tcp.play.elementia.tk. IN SRV 0 5 80 minecraft.elementia.tk.
Finally, the best way to check a SRV recrod is using the "Host command"
host -t SRV _minecraft._tcp.play.elementia.tk
1) You are looking up a "A" record via DIG. to look up SRV records, you use "dig SRV (domain)"
2) play.elementia.tk is a NX domain, becasue it has no A record
3) because you ended play with a period, Bind does not attack the rest of the domain name. By RFC, any domain ending with a . is considered absolute. So I'm honestly suprised your not getting an Error of an out of zone domain name. The following line should work correctly.
_minecraft._tcp.play IN SRV 0 5 80 minecraft.elementia.tk.
or
_minecraft._tcp.play.elementia.tk. IN SRV 0 5 80 minecraft.elementia.tk.
Finally, the best way to check a SRV recrod is using the "Host command"
host -t SRV _minecraft._tcp.play.elementia.tk
328
Suggestions / Re: Two-Factor Authentication (2FA) - Google Authenticator for CWP and CWP PRO !
« on: April 04, 2021, 07:00:56 AM »
If you truely want to secure your CWP Admin interface, do the following.
Setup DDNS somewhere (No-ip is a good free version)
edit /etc/csf/csf.dyndns and add your ddns hostname there
edit /etc/csf/csf.conf
find DYNDNS set it to a value of 600 (10 minutes) DYNDNS="600";
find DYNDNS_IGNORE = "0" and change it to 1
On TCP_IN and TCP6_IN, remove port 2086,2087,2030,2031.
then restart csf. csf -r
You can still login to CWP as long as your match your dyndns, as it allows you through the firewall on all ports.
Setup DDNS somewhere (No-ip is a good free version)
edit /etc/csf/csf.dyndns and add your ddns hostname there
edit /etc/csf/csf.conf
find DYNDNS set it to a value of 600 (10 minutes) DYNDNS="600";
find DYNDNS_IGNORE = "0" and change it to 1
On TCP_IN and TCP6_IN, remove port 2086,2087,2030,2031.
then restart csf. csf -r
You can still login to CWP as long as your match your dyndns, as it allows you through the firewall on all ports.
329
CentOS 7 Problems / Re: Virus on my CWP sites
« on: April 04, 2021, 06:50:41 AM »
If it's wordpress sites, use wordfence to fix the issue.
The "viruses", are from improperly filtering code injection on your websites. It's not something CWP did, but instead PHP and bad programming.
The "viruses", are from improperly filtering code injection on your websites. It's not something CWP did, but instead PHP and bad programming.
330
CentOS 7 Problems / Re: Daily Spamassassin update reports error
« on: March 18, 2021, 06:46:04 PM »
The problem has arisen because CWP uses an outdated version of Spamassasin. The Sought server pulled all updates for this old version, as they no longer support it. CWP needs to update to the latest version of SA to correct this error. The only option to disable the errors at this point, is to delete the mirror.