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 [2]
16
CWP API / Error API 404
« on: January 05, 2024, 07:34:33 PM »
When I make a post using curl the API returns a 404 error page to me.
I'm trying to list all cwp accounts but only the error is returned, checking the logs in /usr/local/cwpsrv/logs/2304_error_log it shows me the following
Can anyone shed some light on what this problem could be?
I am using the following command to get the information
I'm trying to list all cwp accounts but only the error is returned, checking the logs in /usr/local/cwpsrv/logs/2304_error_log it shows me the following
Quote
2024/01/05 16:31:01 [notice] 79020#0: *7119 "^/v1/([^/]+)/?$" matches "/v1/account", client: my_ip, server: localhost, request: "POST /v1/account?key=my_key&action=list HTTP/1.1", host: "my_server_ip:2304"
2024/01/05 16:31:01 [notice] 79020#0: *7119 rewritten data: "/v1/index.php", args: "method=", client: my_ip, server: localhost, request: "POST /v1/account?key=my_key&action=list HTTP/1.1", host: "my_server_ip:2304"
2024/01/05 16:31:01 [info] 79020#0: *7119 client my_ip closed keepalive connection
Can anyone shed some light on what this problem could be?
I am using the following command to get the information
Quote
curl -k -X POST "https://my_server_ip:2304/v1/account?key=my_key&action=list"
17
MySQL / Re: problem with database creation
« on: October 27, 2023, 11:18:55 AM »
Solved✅
Thanks for the reply!
Thanks for the reply!
This may happen when the account comes from a cpanel or cwp migration.
To solve it, run the following command cat /usr/local/cwp/.conf/mysql_user_prefix.conf and only leave in that file the users whose name has more than 8 characters, the rest must be eliminated
This will solve the problem
18
MySQL / problem with database creation
« on: October 26, 2023, 05:17:17 PM »
Hello everybody,
I'm having a problem with creating mysql databases.
When trying to create banks using the panel, the banks are created without the username preceding them, just being
_database
when it should be
user_database
This causes the database to not be displayed on the panel to the user.
The same happens when trying to create users.
I'm having a problem with creating mysql databases.
When trying to create banks using the panel, the banks are created without the username preceding them, just being
_database
when it should be
user_database
This causes the database to not be displayed on the panel to the user.
The same happens when trying to create users.
Pages: 1 [2]