How to ignore wp-toolkit process?

dotcomUNDERGROUND
Junior Member
Posts: 7
Joined: 02 Sep 2022, 19:22

How to ignore wp-toolkit process?

Post by dotcomUNDERGROUND »

I tried adding the following to csf.pignore:

Code: Select all

pcmd:*/usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/wpt-wp-cli\.php*
pcmd:/opt/cpanel/ea-php74/root/usr/bin/php -r require '/usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/wpt-wp-cli\.php*
pcmd:/opt/cpanel/ea-php74/root/usr/bin/php -r require \'/usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/wpt-wp-cli\.php*
But it's not working.

From the alert email:

Code: Select all

Executable:   /opt/cpanel/ea-php74/root/usr/bin/php
Command Line: /opt/cpanel/ea-php74/root/usr/bin/php -r require '/usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/wpt-wp-cli.php'; -d safe_mode=off -d display_errors=on -d opcache.enable_cli=off -d open_basedir= -d error_reporting=341 -d max_execution_time=60 --no-header -- --no-color --path=/home/mytourin/public_html instance info --format=json --check-updates=true
Sergio
Junior Member
Posts: 1714
Joined: 12 Dec 2006, 14:56

Re: How to ignore wp-toolkit process?

Post by Sergio »

Just curious,
Why did you wrote those " * " on the following line?
pcmd:*/usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/wpt-wp-cli\.php*
alexf
Junior Member
Posts: 22
Joined: 27 May 2023, 15:49

Re: How to ignore wp-toolkit process?

Post by alexf »

This is the entry that works for me on:
OS: CentOS v7.9.2009 STANDARD virtuozzo
cPanel Version: 110.0.9

This line is added to my csf.pignore file.

Code: Select all

exe:/usr/local/cpanel/3rdparty/wp-toolkit/bin/wpt-panopticon
Know the difference between when to use: cmd:, exe:, pcmd: preceding your search pattern.
dotcomUNDERGROUND
Junior Member
Posts: 7
Joined: 02 Sep 2022, 19:22

Re: How to ignore wp-toolkit process?

Post by dotcomUNDERGROUND »

Sergio wrote: 02 Aug 2023, 06:06 Just curious,
Why did you wrote those " * " on the following line?
pcmd:*/usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/wpt-wp-cli\.php*
Wildcard since there are more to the command line before and after it. Basically, I tried everything I could think of.
dotcomUNDERGROUND
Junior Member
Posts: 7
Joined: 02 Sep 2022, 19:22

Re: How to ignore wp-toolkit process?

Post by dotcomUNDERGROUND »

alexf wrote: 03 Aug 2023, 14:57 This is the entry that works for me on:
OS: CentOS v7.9.2009 STANDARD virtuozzo
cPanel Version: 110.0.9

This line is added to my csf.pignore file.

Code: Select all

exe:/usr/local/cpanel/3rdparty/wp-toolkit/bin/wpt-panopticon
Know the difference between when to use: cmd:, exe:, pcmd: preceding your search pattern.
Didn't work for me.

From the notification email, I believe the exe here is "/opt/cpanel/ea-php74/root/usr/bin/php" ?
Sergio
Junior Member
Posts: 1714
Joined: 12 Dec 2006, 14:56

Re: How to ignore wp-toolkit process?

Post by Sergio »

Try this:

Code: Select all

exe:/usr/local/cpanel/3rdparty/wp\-toolkit/plib/vendor/wp\-cli/wpt\-wp\-cli\.php
dotcomUNDERGROUND
Junior Member
Posts: 7
Joined: 02 Sep 2022, 19:22

Re: How to ignore wp-toolkit process?

Post by dotcomUNDERGROUND »

Sergio wrote: 04 Aug 2023, 18:33 Try this:

Code: Select all

exe:/usr/local/cpanel/3rdparty/wp\-toolkit/plib/vendor/wp\-cli/wpt\-wp\-cli\.php
Tried but did not work.

Also tried:

Code: Select all

pcmd:*/usr/local/cpanel/3rdparty/wp\-toolkit/plib/vendor/wp\-cli/wpt\-wp\-cli\.php*
pcmd:/opt/cpanel/ea-php74/root/usr/bin/php -r require '/usr/local/cpanel/3rdparty/wp\-toolkit/plib/vendor/wp\-cli/wpt\-wp\-cli\.php*
pcmd:/opt/cpanel/ea-php74/root/usr/bin/php -r require \'/usr/local/cpanel/3rdparty/wp\-toolkit/plib/vendor/wp\-cli/wpt\-wp\-cli\.php*
Note that this is my alert email content:

Code: Select all

Resource:     Process Time
Exceeded:     1801 > 1800 (seconds)
Executable:   /opt/cpanel/ea-php74/root/usr/bin/php
Command Line: /opt/cpanel/ea-php74/root/usr/bin/php -r require '/usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/wpt-wp-cli.php'; -d safe_mode=off -d display_errors=on -d opcache.enable_cli=off -d open_basedir= -d error_reporting=341 -d max_execution_time=300 --no-header -- --no-color --path=/home/jskbdorg/public_html/new/wp plugin update elementor --format=json --skip-plugins=akismet,blockart-blocks,contact-form-7,everest-forms,give,hello,ocean-extra,one-click-demo-import,pagelayer,themegrill-demo-importer,wpforms-lite
PID:          3089425 (Parent PID:3089418)
Killed:       Yes
Sergio
Junior Member
Posts: 1714
Joined: 12 Dec 2006, 14:56

Re: How to ignore wp-toolkit process?

Post by Sergio »

ok, this will help you:
in csf.pignore add:
exe:/opt/cpanel/ea-php74/root/usr/bin/php
dotcomUNDERGROUND
Junior Member
Posts: 7
Joined: 02 Sep 2022, 19:22

Re: How to ignore wp-toolkit process?

Post by dotcomUNDERGROUND »

Sergio wrote: 11 Aug 2023, 21:26 ok, this will help you:
in csf.pignore add:
exe:/opt/cpanel/ea-php74/root/usr/bin/php
But won't it just ignore all PHP processes?
Sergio
Junior Member
Posts: 1714
Joined: 12 Dec 2006, 14:56

Re: How to ignore wp-toolkit process?

Post by Sergio »

your email is telling that your PHP exceeded the time allowed to run
Exceeded : 1801 > 1800 (seconds)

So, with that rule you will let PHP to use the time needed.
Post Reply