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

Pages: [1]
1
CentOS-WebPanel GUI / How to Escape Double Quotes (") in ViewerLogs?
« on: January 17, 2021, 11:53:47 PM »
In the `viewlogs` module / "CWP->Log Viewer"

In my `access log` I am trying to search for 500 Status Errors, ie:

```2xx.1xx.xx.xx - - [17/Jan/2021:06:07:34 -0500] "GET /example/ HTTP/1.1" 500 45342 "https://example.com/example/" "Mozilla User Agent"```

Putting in the `Search Term` box

`HTTP/1.1" 500`
`\" 500"
`" 500`
`" 500`

Nothing works, it just ignores the double quote.
Is it possible to escape double quotes in the `Search Term`? Or how can I modify the search to return results that includes `HTTP/1.1" 500`with the double quote messing up the search query?

2
I think I got it.. looking at the cron logs and some googling

Code: [Select]
15 0 * * * /usr/local/cwp/php71/bin/php-cgi -d max_execution_time=10000000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron_newbackup.php
The other one I believe was
Code: [Select]
38 0 * * * "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh/cwp_certs" > /dev/null I recreated that one by using the
Code: [Select]
install-cronjob command on
Code: [Select]
.acme.sh

3
In my CWP7 admin panel > Server Settings > Crontab for root

I added a custom cronjob, tested it out, and then wanted to delete it so hit the "Delete" button next to it.

But my web panel glitched out! And it deleted the one right above it.  At first I thought it was my own issue, and I clicked "Delete" on the wrong cron job.

Then I attempted to delete it again... and it deleted the (other one) right above it!

Frustrated I gave up with that and was able to delete it via SSH crontab.

I know initially I had 4 cron jobs set-up, and "accidentally" deleted 2.

Here are the remaining ones:

Code: [Select]
1 root /usr/local/cwp/php71/bin/php -d max_execution_time=18000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron_autossl_all_domains.php
(50) (20) (*) (*) (*)
 
2 root /usr/local/cwp/php71/bin/php -d max_execution_time=18000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/alertandautorenewssl.php
Daily (at midnight)

I did not add any cron jobs manually, so the 4 should be default.

Can someone please reference their own, or tell me which ones were deleted so that I can restore them?

Thank you!

Pages: [1]