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

Pages: [1] 2
1
CentOS-WebPanel Bugs / Apache failure to start - Modsecure mess vhost/
« on: February 11, 2021, 08:35:22 AM »
Hi,
frankly speaking I am fed-up with constantly arrisen errors in CWP.
To whomever who had issues with this - if you have such problem with apache - check modsecure rules file for every domains. Even ith this apply to only one domain apache wont start.

ok-  straight to the point.
Beeing on short vacation one of my seerver stop responding - apache wont start.  Clients calls ant texts. ... Everything was working earlier.

After 1-2 hours I finally find that editing ModSecure rules may break server.

During adding new rule to modsecure it wrongly format whole file putting TWO times </IfModule> . Need to correct it and have only one </IfModule>

2
CentOS 7 Problems / Re: Very High swap memory usage
« on: January 15, 2021, 10:35:28 AM »
For future reference - to set swapiness to 1 (use only whan much needed)

To check what parameter is set now:
# sysctl vm.swappiness
vm.swappiness = 30

Temporaly set
# sysctl -w vm.swappiness=1

Permamently (need reboot) - edit file:
# nano /etc/sysctl.conf

and put:
vm.swappiness = 1

and reboot.


3
Addons / Re: Installing munin for monitoring
« on: January 13, 2021, 08:55:19 AM »
This NOT work on Centos7 and present CWP version (01.2021). Cant provide valid installation method as I myself didnt get it working correctly.
Maybe advanced CWP configuration with Apache/Varnish/ngnix prevent munin from working?

4
Information / Re: How to tell which user consumes the most resources?
« on: January 12, 2021, 11:28:36 AM »
Thank You for all responces.

Munin, afaik cant provide statistics per user- Ive used it before, on cPanel but it only gives me "total", summarize stats per whole server- not per user. But If I mistaken - please post tutorial if You can ;-)

I am looking for a solution to have simple stats like concurrent connections, visitors count, bandwidth but per user in long time-frame (no TOP like information - this second only)
Is this possible?

Basically - for 60 users I have on my server, one of them stress server very much and I can find which user cause this.

High load is purely random to that extend that every few days apache hang and stop serving pages. Manual restart help but I would like to pinpoint user (and dont have time to sit 24h and look after every load spikes ;-D)

 Ill look into "Glances"

5
Information / Re: How to tell which user consumes the most resources?
« on: January 08, 2021, 07:04:26 PM »
Thank You. But theres a way we could monitor user usage in longet timeframe? To see who is using the most resources on server over a month or so?

6
Information / How to tell which user consumes the most resources?
« on: January 07, 2021, 12:03:00 PM »
Hi,
is there a way we can check which user consumes the most of the resources??
I have around 60 users on one server and I got feeling one of them put a lot of stress to whole server.

Ive set limits in /Security/cgroups - > Limit server resources (cgroups) -  they are all red (Columns in red are disabled in cgroups limits configuration. )

Anyway - is there a way I could monitor which user take the most server resources?

King regards,
 Piotr

7
CentOS-WebPanel Bugs / Re: Missing Account
« on: November 05, 2020, 11:58:32 AM »
This is serious bug I am facing since long time ago. quite often accounts are not properly migrated between cPanel ->CWP.
Today I even got one of client account dissapear. It worked before but dissapear. I have to create new account with this domain and move files to it. Hopefully I dont use CWP for mails as this would be disaster.

8
I can build it / Re: Apache Status - Accesses
« on: October 01, 2020, 06:33:49 PM »
tried this but et 404 files not found
issuing command
#/usr/local/apache/bin/apachectl fullstatus
give me 404 ngnix error

I configure webserver with ngnix/varnish/apache

10
Updates / Re: Error on yum update python conflict
« on: August 12, 2020, 06:46:31 AM »
Thank You!


Please try to search the forum for future issues.  But here you go.
Code: [Select]
yum remove  python36u-3.6.8-1.el7.ius.x86_64
 yum -y update
yum -y install cmake3

11
Backup / Re: Backups
« on: May 23, 2020, 08:01:42 AM »
Hi,

Just a question? When I want to use the new backup system, do I need to enable backup in the old backup system?

Regards Marcel :-\

New backup is a separate option but dont bother - I couldnt make backups to work realiable.

12
Backup / Re: Custom Backup
« on: May 23, 2020, 08:00:06 AM »
Thank You!! Script finally give CWP the ability to backup databases. With both buildin options I culdnt do this at all!

13
nobody is apache user

Hi Sandeep!
thank for stepping by ;-)
I know that an APache username but the issue remains - how to find what script cause high load. Apache is just processing queries made by some script with user set as nobody.

How to precisely find out where is that script?
kind regards,
 Piotr

14
once "TOP" is loaded, hit SHIFT+F to bring up interactive selector.  Use up/Down arrows to select RUSER, then hit "d" to add a start next to it.   go back up to %CPU, and hit "s".   Hit "Enter" then "Esc" to see the top used process with a username.

Thnak You! I didnt know about such function in TOP....

Still - user nobody is known in RUSER column as nobody so didnt help much. ;-) I still dont know what script cause this...

15
Thank You - of course  Ive tried top. But still have problem with pinpoint process to specific folder/script.

"top" command to find out what process is using all of your resources (Chances are apache/mysql/php).

Pages: [1] 2