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.
1321
CentOS 7 Problems / Re: Cleaned usr/local/cwpsvr/logs/access_log and get Access Denied on website
« on: January 08, 2023, 07:02:08 AM »
Rather than manually cleaning logs, I suggest truncating them to zero bytes. Safer than recreating things or messing with permissions:
Code: [Select]
[overseer@srv2 ~]$ du -sh /usr/local/cwpsrv/logs/error_log
403M /usr/local/cwpsrv/logs/error_log
[overseer@srv2 ~]$ sudo truncate -s0 /usr/local/cwpsrv/logs/error_log
[overseer@srv2 ~]$ du -sh /usr/local/cwpsrv/logs/error_log
0 /usr/local/cwpsrv/logs/error_log
1322
CentOS 7 Problems / Re: Warning: mail(): Multiple or malformed newlines found in additional_header in
« on: January 08, 2023, 06:58:47 AM »
Did you manually try to edit the mail_queue file? It is IonCube obfuscated (encoded), and CWP explicitly warns agains decoding or tinkering with it:
Code: [Select]
<?php //0042b
// Copyright CentOS WebPanel, Decoding is FORBIDDEN
// All Rights Reserved. www.centos-webpanel.com
if(!extension_loaded('ionCube Loader'...
1323
CentOS 7 Problems / Re: How to change Owner and Group on a Directory
« on: January 08, 2023, 06:55:09 AM »
Here's a fun little one-liner you can execute from a root terminal that will reset ownership on all your user directories in /home:
Code: [Select]
for i in $(ls /home); do chown $i:$i /home/$i; done
1324
CentOS 7 Problems / Re: Cannot access CWP via public IP / domain in LAN
« on: January 08, 2023, 06:47:13 AM »
Does your router support loopback / NAT hairpin?
1325
CentOS 7 Problems / Re: NGINX php-fpm 502 and no sockets created
« on: January 08, 2023, 06:44:17 AM »
This doesn't sound nginx related -- I've encountered this with php-fpm and enabling new versions of PHP. The users directory is not created automatically for that new version after building it and will create an error of the .sock file missing. So you have to copy over your older users directory. For example, after enabling php 8.1, I had to create:
/opt/alt/php-fpm81/usr/etc/php-fpm.d/users
this way:
/opt/alt/php-fpm81/usr/etc/php-fpm.d/users
this way:
Code: [Select]
sudo cp -r /opt/alt/php-fpm74/usr/etc/php-fpm.d/users /opt/alt/php-fpm81/usr/etc/php-fpm.d/users
and then edit the new conf files to reflect the new version:Code: [Select]
sudo perl -pi.back -e 's/php-fpm74/php-fpm81/g;' /opt/alt/php-fpm81/usr/etc/php-fpm.d/users/*.conf
Then restart the php-fpm process:Code: [Select]
sudo service php-fpm81 restart
1326
Information / Re: How to enable and configure ipv6 to work with apache / cwp / centos 7 & 8
« on: January 08, 2023, 02:47:54 AM »
This tutorial seems to be a rather comprehensive explainer. On my end, I haven't enabled IPv6 because it isn't yet needed in our environment. Maybe as things become more parallel it will be worth enabling.
1327
Information / Re: FUNDING CWP DEVELOPMENT TEAM
« on: January 07, 2023, 11:32:09 PM »
I think the current pricing is fair -- esp. when compared to cPanel's pricing tiers (and the overall quality assurance difference) -- but it depends on the # of sites on your server -- to make an economical comparison. My experience over the last 3+ years has been generally good and worth the 3x Pro licenses I carry, along with the 2x paid support tickets (worth it during a cPanel server migration). But there have been headaches and road blocks along the way that cause me to hesitate thinking it is worth more $$ per year, across the board. As suggested, if you are having a fabulous experience with CWP and think it worth it, feel free to donate. For me, I am donating my time and sending back bug reports and contributing to this forum. I also hope to contribute to the wiki & documentation, as there is a lot of updating and spit-n-polish that needs to be done to fill in some of the gaps there.
1328
Information / Re: Future of CWP?
« on: January 07, 2023, 11:18:56 PM »
Let me chime in and say, I'm totally on board the CWP train for any of my servers that need LAMP/LEMP functionality (i.e. general purpose web server). It has enabled me to ditch the monthly cPanel tax, as its cPanel -> CWP migration feature, while not flawless was functional. So over the last several years I have become more and more familiar with its internal plumbing, after being on cPanel/WHM for the last decade before that. So while there are some bugs and issues, it is totally workable and affordable.
Even with Red Hat pulling the rug out from under us with CentOS support ending, we have viable alternatives with RockyLinux and AlmaLinux. (I don't really count CentOS 8 Stream being a viable alternative to the stability and long term support offered by CentOS 6 and now CentOS 7.) So I look forward to migrating to either Rocky or Alma before June 2024 when CentOS 7 is EOL.
So welcome to CWP -- enjoy the ride!
Even with Red Hat pulling the rug out from under us with CentOS support ending, we have viable alternatives with RockyLinux and AlmaLinux. (I don't really count CentOS 8 Stream being a viable alternative to the stability and long term support offered by CentOS 6 and now CentOS 7.) So I look forward to migrating to either Rocky or Alma before June 2024 when CentOS 7 is EOL.
So welcome to CWP -- enjoy the ride!
1329
Information / Re: Gateway timeout 504 on nginx + apache
« on: January 07, 2023, 11:06:56 PM »
Anecdotally, nginx seems more like that canary that is prone to producing 504 gateway errors. I have had few errors with apache-based servers. My server which uses nginx produces them far more frequently -- enough to be noticeable, for sure.
1330
Information / Re: error ? daily backup
« on: January 07, 2023, 10:39:21 PM »
Do you have sufficient backup space to complete the daily backup? I backup e-mails offsite & off-server, since some e-mail users are packrats and a couple of accounts have 75+GB of e-mail! At least Dovecot has message compression available!
1331
Information / Re: Virus on some websites hosted on cwp server
« on: January 07, 2023, 10:36:52 PM »
I've had to clean up web shells and also spam sources on various WordPress installs over the years. This is not uncommon and requires much vigilance, as WordPress is a huge attack vector since it makes up such a large percentage of web sites. Here's a recent article about the latest wave. It ends with some salient advice:
Quote
WordPress plugins have long been a common means for infecting sites. While the security of the main application is fairly robust, many plugins are riddled with vulnerabilities that can lead to infection. Criminals use infected sites to redirect visitors to sites used for phishing, ad fraud, and distributing malware.
People running WordPress sites should ensure that they’re using the most current versions of the main software as well as any plugins. They should prioritize updating any of the plugins listed above.
1332
Information / Re: disk r/w io speed
« on: January 07, 2023, 10:30:12 PM »
50MB/sec is likely from a very loaded RAID array shared amongst many VPS users, using older disk technology. They are likely overselling and over-provisioning users to get as many accounts on a single server as possible. Most providers nowadays are using SSDs unless you need a LOT of online storage, which then makes more sense to use "spinning rust." But then again, I'm running my own servers at a colocation facility, so I have RAID SSDs and backup HDs tuned to my configuration needs! So I/O blocking is not so much an issue for me.
1333
Information / Re: Alma Linux 9 Support ETA?
« on: January 07, 2023, 10:23:15 PM »
Likewise, any updates re: AlmaLinux and RockyLinux support would be appreciated. With just over a year to plan a migration from CentOS 7 before it is EOL (2024.06), I would like to have security knowing I can convert my live systems after testing and they will be largely bug free and fully functional!
1334
Information / Re: CentOS Server Log Files Location
« on: January 07, 2023, 10:20:17 PM »
I would suggest changing all log files to be in the form of logfile_name.log
as you have done with the /var/log/cwp_client_login.log file.
Various log readers handle the files better with a .log extension, making them double-clickable if you download a copy of the log or are tailing it via SSH in a log reader. This pertains to the log files in /usr/local/cwpsrv/logs:
as you have done with the /var/log/cwp_client_login.log file.
Various log readers handle the files better with a .log extension, making them double-clickable if you download a copy of the log or are tailing it via SSH in a log reader. This pertains to the log files in /usr/local/cwpsrv/logs:
Code: [Select]
-rw-r--r-- 1 root root 45026 Jan 7 05:35 2304_access_log
-rw-r--r-- 1 root root 151365 Jan 7 05:35 2304_error_log
-rw-r--r-- 1 root root 568702955 Jan 7 14:13 access_log
-rw-r--r--. 1 root root 420969877 Jan 7 14:13 error_log
Simply amend their naming convention:Code: [Select]
-rw-r--r-- 1 root root 45026 Jan 7 05:35 2304_access.log
-rw-r--r-- 1 root root 151365 Jan 7 05:35 2304_error.log
-rw-r--r-- 1 root root 568702955 Jan 7 14:13 access.log
-rw-r--r--. 1 root root 420969877 Jan 7 14:13 error.log
1335
Information / Re: CWP 0.9.8.1147 on AlmaLinux 9.1
« on: January 07, 2023, 10:09:49 PM »
One CentOS 7 server I have uses PHP 7.1.33 just for CWP -- it's not broken, works fine. That way you can update 7.4 for other sites and not risk breaking the web GUI. But now that other servers I have are running PHP 7.4.x for CWP, I'll probably switch that one over, too.
I appreciate anyone posting about their experiences with AlmaLinux and RockyLinux. I'll do a test conversion at some point with a duplicate VM and see what my experience is like. At least we have until June 30th, 2024 before CentOS 7 is EOL.
I appreciate anyone posting about their experiences with AlmaLinux and RockyLinux. I'll do a test conversion at some point with a duplicate VM and see what my experience is like. At least we have until June 30th, 2024 before CentOS 7 is EOL.