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
CWP API / Re: How To delete domain Annd subdomain use api
« on: April 02, 2024, 08:50:13 AM »
If there's no reply, please check the firewall on the CWP server. Allow the correct ports. 2304 I think.
2
CWP API / Re: Delete cronjob users via API
« on: April 01, 2024, 02:59:49 PM »
Thanks for the replies.
Yes sure.
I have a few extra cron jobs for a user. With the API I can send a command to the server (as I have many) running the software for the users. They don't have access to the server. Only to the software via the browser.
So they don't know about these cron jobs as they just use the software.
But the set up script for the software accidentally created multiple cron jobs as it was stuck on that step. So I if I need to delete them, what command would I send was my question as it wasn't clear?
By the way, I think it worked by sending the cron job timing * * * * * and the command /usr/local/bin/php /home/dir/script.php
Yes sure.
I have a few extra cron jobs for a user. With the API I can send a command to the server (as I have many) running the software for the users. They don't have access to the server. Only to the software via the browser.
So they don't know about these cron jobs as they just use the software.
But the set up script for the software accidentally created multiple cron jobs as it was stuck on that step. So I if I need to delete them, what command would I send was my question as it wasn't clear?
By the way, I think it worked by sending the cron job timing * * * * * and the command /usr/local/bin/php /home/dir/script.php
3
CWP API / Re: Delete cronjob users via API
« on: March 29, 2024, 04:43:14 PM »
This is not deleting the account. It's specific to user cron tabs. To add cron tasks and the purpose is to delete duplicates that occurred on my software.
4
CWP API / Delete cronjob users via API
« on: March 28, 2024, 05:14:20 AM »
The API docs says to send:
key: Key authorized by Api administrator
action: del
user: User owners of the scheduled tasks
execute: Frequency with which to execute the cron Example: * * * * * *
command: Command to execute, Example: /usr/bin/php test.php
debug: (0 / 1) Debug display file: /var/log/cwp/cwp_api.log
How do you specify which line or command to delete? Do you just send the execute and command lines to determine this?
key: Key authorized by Api administrator
action: del
user: User owners of the scheduled tasks
execute: Frequency with which to execute the cron Example: * * * * * *
command: Command to execute, Example: /usr/bin/php test.php
debug: (0 / 1) Debug display file: /var/log/cwp/cwp_api.log
How do you specify which line or command to delete? Do you just send the execute and command lines to determine this?
5
CentOS-WebPanel Bugs / Re: [CWP Pro] Bug Cron Jobs Section not usable.
« on: January 22, 2023, 12:07:17 PM »
The bug is still active.
The issue is that there's 2 cron files:
[file] /home/{username}/cron
[file] /var/spool/cron/{username}
CWP dashboard uses the user folder whereas the OS uses var/spool/cron
I have had to use the API and FTP to create my own fixes by FTP delete cron and recreate each time with API.
Cronjobs are critical and I'm surprised CWP has not sorted this still.
The issue is that there's 2 cron files:
[file] /home/{username}/cron
[file] /var/spool/cron/{username}
CWP dashboard uses the user folder whereas the OS uses var/spool/cron
I have had to use the API and FTP to create my own fixes by FTP delete cron and recreate each time with API.
Cronjobs are critical and I'm surprised CWP has not sorted this still.
6
CWP API / Re: API connection refused from another server only
« on: December 25, 2022, 09:36:24 PM »
SOLVED:
It was the server sending the requests. The host blocked port 2304 as a non-standard port. Once unblocked, no more connection refused.
CWP Devs, please remove the torturous Captcha.. i'm sick of selecting bridges, traffic lights and crosswalks. Use a better one, this one is the worst thing on the internet after cookie notices.
It was the server sending the requests. The host blocked port 2304 as a non-standard port. Once unblocked, no more connection refused.
CWP Devs, please remove the torturous Captcha.. i'm sick of selecting bridges, traffic lights and crosswalks. Use a better one, this one is the worst thing on the internet after cookie notices.
7
CWP API / Re: API connection refused from another server only
« on: December 25, 2022, 05:24:48 PM »
This is horrible. 2 days spent on this already.
I have 2 VPS - both configured almost identical with 2 different domains. Both domains configured same on DNS.
The server that I'm using the API from is also whitelisted on CSF. Logs don't show anything (access logs and CWP's API logs)
I'm absolutely stumped. What am I missing?
I have 2 VPS - both configured almost identical with 2 different domains. Both domains configured same on DNS.
The server that I'm using the API from is also whitelisted on CSF. Logs don't show anything (access logs and CWP's API logs)
I'm absolutely stumped. What am I missing?
8
CWP API / Re: API connection refused from another server only
« on: December 25, 2022, 04:50:04 PM »
Update: CSF turned off, server rebooted and still connection refused issue with API requests.
9
CWP API / API connection refused from another server only
« on: December 25, 2022, 04:08:15 PM »
Hi,
I use the API to create accounts and it's working fine from localhost. I used an API key with IP set as * and also another API key with IP set to the other server IP that accesses the API.
The one with * works from localhost and not from server. From server I get "connection refused"
I checked the topic https://forum.centos-webpanel.com/index.php?topic=7844.0 but that's not my issue.
I have port 2304 added to IP4 and IP6 on CSF firewall.
I have another vps with CWP and CSF is off. There it works.
On the new one I'm using CSF so I'm suspecting it's this. What else can I try?
PS. Devs, please remove Captcha, it's the most horrible thing you can do to your visitors. The math sum should be sufficient
I use the API to create accounts and it's working fine from localhost. I used an API key with IP set as * and also another API key with IP set to the other server IP that accesses the API.
The one with * works from localhost and not from server. From server I get "connection refused"
I checked the topic https://forum.centos-webpanel.com/index.php?topic=7844.0 but that's not my issue.
I have port 2304 added to IP4 and IP6 on CSF firewall.
I have another vps with CWP and CSF is off. There it works.
On the new one I'm using CSF so I'm suspecting it's this. What else can I try?
PS. Devs, please remove Captcha, it's the most horrible thing you can do to your visitors. The math sum should be sufficient
Pages: [1]