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.
Pages: [1]
1
Updates / Re: How to revert an update?
« on: January 09, 2025, 11:32:05 AM »Also look at the PHP scripts, and change any references from '127.0.0.1' to 'localhost'
All the users on VPS have the same scripts, but only 2-3 are problematic.
At the current time, only 2 are problematic, the 3rd repaired by itself.
Load is 1.7.
Will try to add a new user + domain a little bit later today.
2
Updates / Re: How to revert an update?
« on: January 09, 2025, 11:28:51 AM »Hello
Please run the following script and let me know how it goes
sh /scripts/phpfpm_rebuild_user_conf
It is also important that you check that the hostname has a valid ssl
I look forward to your response to help you resolve this situation
The script simply overwrote phpfpm user configs, which were rechecked already and correct.
The hostname has a valid SSL.
3
Updates / Re: How to revert an update?
« on: January 07, 2025, 11:19:52 AM »Are they all using the same package definitions (same limits)?
All using the same php-fpm version?
Can you switch to nginx for better performance, or is there something tying you to Apache?
Yes, the same limits and the same php-fpm for all users.
Apache is handling my needs very well, one of other my sites has traffic 3x more than these of my 3 problematic users together - and the server load now is 1.
Where are located all possible user config files? I need to compare these 3 problematic users with others.
4
Updates / Re: How to revert an update?
« on: January 06, 2025, 09:19:27 PM »
UPDATE:
These 3 problematic accounts were created in 2020-2021.
The rest accounts were created in 2023+.
Any of them can become problematic randomly by playing a suspend - unsuspend account game.
These 3 problematic accounts were created in 2020-2021.
The rest accounts were created in 2023+.
Any of them can become problematic randomly by playing a suspend - unsuspend account game.
5
Updates / Re: How to revert an update?
« on: January 06, 2025, 07:23:22 PM »The last update 0.9.8.1190 only had PHP updates in it.
Could you please advise of the following:
What 'errors' and/or 'messages' are being displayed in the logs?
On the main panel, what are you Top 5 processes?
What distro are you are you running CWP on?
VPS or Dedicated?
System Specs?
I did not find any useful info in the logs. I run 8 clone sites on the same script on 8 different users. Controlling CWP by admin login.
So, there is no useful info in domlogs. PHP slow log starts to write by all domains, as then the server becomes very slow, it is normal that PHP will execute very slow.
Only found some interesting lines in some log files (do not remember the names):
Too many connections in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.php on line 0
Undefined index: start in /usr/local/cwpsrv/htdocs/resources/admin/addons/ajax/ajax_list_accounts.php on line 0
My main Top 5 processes usually are php-fpm executions of my sites.
The CPU load by them is up to 50%, sometimes spikes to 100%.
But this is the same in both cases, the server is loaded by 2 or 40-80.
After recent tests, I found 2-3 of 8 of my sites causing high load. Suspending these user accounts drops the load to 5-10 or even 2. Unsuspending them after night - load can go low to 2, or spike to very high.
There is no huge traffic on those 3 sites and there is no DDOS attack - tested by enabling "under attack mode" on Cloudflare.
I do not have an idea where can be a problem as all my 8 sites are clones.
So after playing with accounts suspensions, restarts, etc, in a couple of days, I can get a stable 2-5 server load.
Until the next user account is created and added new domain - the load spikes and if I delete that new account quickly - the load drops to previous levels.
If I do not delete the new account - I should do a long play as mentioned above.
When I manage to get a low load, it keeps for 5-7 days (load 2-3), then spikes to ~6 and runs stable on that load.
Until new account + domain are added.
I am running the latest CWP7pro on CentOS Linux release 7.9.2009 (Core) 3.10.0-1160.119.1.el7.x86_64
VPS 8 Core (2200 MHz), 30 GB Ram, 800 Gb SSD.
Regarding installing SSL I found Cloudflare didn't let it do, as by default setting it has "Always use HTTPs" enabled and redirects newly added domains to the https version.
It is strange, as 5-7 days ago new SSLs on CWP worked just fine with newly added domains on Cloudflare.
6
Updates / How to revert an update?
« on: January 05, 2025, 10:10:41 PM »
After December 23rd I am getting a random huge server load. About 80. Which disappears randomly after switching users off and on / restarting the server / restarting PHP-FPM. Especially after adding new users on CWP admin load spikes hardly in 1-6 hours. Also, about 5 days ago started - I can't install any SSL for a new or old domain. I am a CWPpro user. The question is - how can I revert to an older working version of CWP and prevent future updates?
7
Updates / Re: PHP-FPM Enable
« on: December 13, 2018, 05:42:59 PM »
I have in /opt/alt/php-fpm72/usr/etc/php-fpm.d/users/ conf files for each user. Also nobody.conf. For all files permissions is root:root 0644
In users conf i have this:
[USER]
listen = /opt/alt/php-fpm72/usr/var/sockets/USER.sock
listen.allowed_clients = 127.0.0.1
listen.owner = USER
listen.group = nobody
listen.mode = 0660
user = USER
group = USER
;request_slowlog_timeout = 15s
;slowlog = /opt/alt/php-fpm72/usr/var/log/php-fpm-slowlog-USER.log
pm = ondemand
pm.max_children = 4
pm.max_requests = 4000
pm.process_idle_timeout = 15s
;listen.backlog = -1
;request_terminate_timeout = 0s
rlimit_files = 131072
rlimit_core = unlimited
catch_workers_output = yes
env[HOSTNAME] = $HOSTNAME
env[TMP] = /home/USER/tmp
env[TMPDIR] = /home/USER/tmp
env[TEMP] = /home/USER/tmp
env[PATH] = /usr/local/bin:/usr/bin:/bin
All "USER" is cwp user in lowercase.
In /opt/alt/php-fpm72/usr/etc/php-fpm.d/users.conf i have:
include=/opt/alt/php-fpm72/usr/etc/php-fpm.d/users/*.conf
USER.sock files in /opt/alt/php-fpm72/usr/var/sockets/ have permissions:
Group: nobody [99]
Owner USER [100*]
0660
"USER" is cwp user in lowercase.
In users conf i have this:
[USER]
listen = /opt/alt/php-fpm72/usr/var/sockets/USER.sock
listen.allowed_clients = 127.0.0.1
listen.owner = USER
listen.group = nobody
listen.mode = 0660
user = USER
group = USER
;request_slowlog_timeout = 15s
;slowlog = /opt/alt/php-fpm72/usr/var/log/php-fpm-slowlog-USER.log
pm = ondemand
pm.max_children = 4
pm.max_requests = 4000
pm.process_idle_timeout = 15s
;listen.backlog = -1
;request_terminate_timeout = 0s
rlimit_files = 131072
rlimit_core = unlimited
catch_workers_output = yes
env[HOSTNAME] = $HOSTNAME
env[TMP] = /home/USER/tmp
env[TMPDIR] = /home/USER/tmp
env[TEMP] = /home/USER/tmp
env[PATH] = /usr/local/bin:/usr/bin:/bin
All "USER" is cwp user in lowercase.
In /opt/alt/php-fpm72/usr/etc/php-fpm.d/users.conf i have:
include=/opt/alt/php-fpm72/usr/etc/php-fpm.d/users/*.conf
USER.sock files in /opt/alt/php-fpm72/usr/var/sockets/ have permissions:
Group: nobody [99]
Owner USER [100*]
0660
"USER" is cwp user in lowercase.
8
CentOS 7 Problems / Re: Average resource usage on Centos7 + CWP ?
« on: December 11, 2018, 09:17:12 AM »
Very strange. One day i have with zero users online ~90% cpu load , next day with 3 users browsing right now :
http://prntscr.com/ltfsju
http://prntscr.com/ltfsju
9
CentOS 7 Problems / Average resource usage on Centos7 + CWP ?
« on: December 08, 2018, 04:05:13 PM »
I am running 2 php websites on 6 core 2.2Ghz and 16Gb ram.
Sites are on identical small php scripts (robocripts csb) , 100mb DB each.
Before i was using tmd shared hosting and these 2 sites has enough power to run.
Now on CWP and on not bad VPS it seems 2 scripts are eating quite a bit of resources.
Apache -> php-fpm 7.2.
About 100 users per day on 2 sites , do you think is it normal:
http://prntscr.com/lsdwec
http://prntscr.com/lsdwti
I have these spikes on each site visit. And on cron run i think (i have 3 and 8 minutes crons for each site).
On idle load:
http://prntscr.com/lsdypx
Can you guys share your servers load ?
Sites are on identical small php scripts (robocripts csb) , 100mb DB each.
Before i was using tmd shared hosting and these 2 sites has enough power to run.
Now on CWP and on not bad VPS it seems 2 scripts are eating quite a bit of resources.
Apache -> php-fpm 7.2.
About 100 users per day on 2 sites , do you think is it normal:
http://prntscr.com/lsdwec
http://prntscr.com/lsdwti
I have these spikes on each site visit. And on cron run i think (i have 3 and 8 minutes crons for each site).
On idle load:
http://prntscr.com/lsdypx
Can you guys share your servers load ?
10
Updates / Re: PHP-FPM Enable
« on: December 07, 2018, 03:26:04 PM »
Ok
For me php-fpm not worked only on https.
I have added new user and domain in CWP as non SSL and phpinfo shows everything is ok.
What i found: For non SSL version there is /usr/local/apache/conf.d/vhosts.conf and in it is only
IncludeOptional /usr/local/apache/conf.d/vhosts/*.conf
So all vhosts sits in that directory.
For SSL:
/usr/local/apache/conf.d/vhosts-ssl.conf
Here i have all domains in this file, but here is no such line on each domain:
<IfModule proxy_fcgi_module>
<FilesMatch \.php$>
SetHandler "proxy:unix:/opt/alt/php-fpm72/usr/var/sockets/USERNAME.sock|fcgi://localhost/"
</FilesMatch>
</IfModule>
In /usr/local/apache/conf.d/vhosts/ in each domains vhost (ssl and non ssl) i have that line with php-fpm proxy socket.
I deleted all in vhosts-ssl.conf and put that line in it:
IncludeOptional /usr/local/apache/conf.d/vhosts/*.conf
Restarted Apache.
So now seems php-fpm is working on all domains.
Also i uncommented in httpd.conf LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so
But i think this is already done in /usr/local/apache/conf.d/php-fpm.conf
For me php-fpm not worked only on https.
I have added new user and domain in CWP as non SSL and phpinfo shows everything is ok.
What i found: For non SSL version there is /usr/local/apache/conf.d/vhosts.conf and in it is only
IncludeOptional /usr/local/apache/conf.d/vhosts/*.conf
So all vhosts sits in that directory.
For SSL:
/usr/local/apache/conf.d/vhosts-ssl.conf
Here i have all domains in this file, but here is no such line on each domain:
<IfModule proxy_fcgi_module>
<FilesMatch \.php$>
SetHandler "proxy:unix:/opt/alt/php-fpm72/usr/var/sockets/USERNAME.sock|fcgi://localhost/"
</FilesMatch>
</IfModule>
In /usr/local/apache/conf.d/vhosts/ in each domains vhost (ssl and non ssl) i have that line with php-fpm proxy socket.
I deleted all in vhosts-ssl.conf and put that line in it:
IncludeOptional /usr/local/apache/conf.d/vhosts/*.conf
Restarted Apache.
So now seems php-fpm is working on all domains.
Also i uncommented in httpd.conf LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so
But i think this is already done in /usr/local/apache/conf.d/php-fpm.conf
11
Updates / Re: PHP-FPM Enable
« on: December 07, 2018, 02:15:25 PM »
After several days full of reading and experiments i decided to add new user and domain in CWP (with Apache-->>php-fpm config enabled). And what i get :
So going to compare all configs of domains added before php-fpm update to find a bug.
So going to compare all configs of domains added before php-fpm update to find a bug.
12
Updates / Re: PHP-FPM Enable
« on: December 07, 2018, 11:07:36 AM »I must say that i add config in webservers domain config https://prnt.sc/lrolbl maybe it can help to u.
I did that , i am using apache-->>php-fpm. Can you share your php info screen ?
13
Updates / Re: PHP-FPM Enable
« on: December 06, 2018, 07:43:50 PM »I enabled Apache -> PHP-FPM with version 7.2, however, when I run phpinfo() function it shows CGI/FastCGI version 5.6. So why PHP-FPM not working?
I also have enabled Apache -> PHP-FPM in Webserver domain Conf. Even I tried using nginx only with php-fpm but it gives 404 error. By the way, i am testing this on freshly installed machine.
Please help me to understand it better.
I have exactly the same problem. I am using apache + php-fpm 7.2.
I think there is problem in permissions - for me seems php-fpm working , but only for root , not for users (i have 3 of them):
Also i can see in CWP dashboard's -Top 5 Process- - when process is running by root it is php-fpm mostly , some times php - and when from other user - php-cgi. And at that time i have big spikes on cpu usage.
I rebuilded all vhosts in Main Conf and Domain Conf.
Here my php info:
Pages: [1]