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.


Topics - isaack

Pages: [1]
1
CWP API / MySQL User Pass Update
« on: October 25, 2020, 10:32:59 AM »
is it possible that the api can be extended in this point to update the password for an existing MySQL user?

2
CentOS 7 Problems / Add IP4
« on: October 21, 2020, 04:29:04 PM »
Hello,
I just wanted to store a second IP address in the CWP.
I used the IP Manager, which is located in the admin panel.
He creates the following file:

ifcfg-:1
with the following content

    DEVICE=:1
    TYPE=Ethernet
    ONBOOT=yes
    NM_CONTROLLED=no
    BOOTPROTO=static
    IPADDR=5.199.130.204
    NETMASK=255.255.255.255
    GATEWAY=91.194.84.1

when I enter the command

    service network restart
    I get the following message
    [root@cpanel network-scripts]# service network restart
    Restarting network (via systemctl):
    ** (pkttyagent:19657): WARNING **: 18:17:04.966: Unable to register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject
    Error registering authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject (polkit-error-quark, 0)
    [ OK ]

but with the command ifconfig I cannot see the new IP address

    [root@cpanel network-scripts]# ifconfig
    docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
    inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
    ether 02:42:80:6b:74:bf txqueuelen 0 (Ethernet)
    RX packets 0 bytes 0 (0.0 B)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 0 bytes 0 (0.0 B)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
    enp1s0f0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
    inet 91.194.84.77 netmask 255.255.255.0 broadcast 91.194.84.255
    inet6 fe80::225:90ff:fee1:a1cc prefixlen 64 scopeid 0x20<link>
    ether 00:25:90:e1:a1:cc txqueuelen 1000 (Ethernet)
    RX packets 896454492 bytes 77246656595 (71.9 GiB)
    RX errors 0 dropped 121675 overruns 21 frame 0
    TX packets 328489556 bytes 321552938430 (299.4 GiB)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
    device memory 0xfea80000-feafffff
    enp1s0f1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
    ether 00:25:90:e1:a1:cd txqueuelen 1000 (Ethernet)
    RX packets 0 bytes 0 (0.0 B)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 0 bytes 0 (0.0 B)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
    device memory 0xfe980000-fe9fffff
    lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
    inet 127.0.0.1 netmask 255.0.0.0
    inet6 ::1 prefixlen 128 scopeid 0x10<host>
    loop txqueuelen 1000 (Local Loopback)
    RX packets 28795464 bytes 8187828621 (7.6 GiB)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 28795464 bytes 8187828621 (7.6 GiB)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
    virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
    inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
    ether 52:54:00:d8:74:c8 txqueuelen 1000 (Ethernet)
    RX packets 0 bytes 0 (0.0 B)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 0 bytes 0 (0.0 B)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

Why?

3
How to / Cronjob Problem
« on: February 01, 2020, 09:23:40 AM »
Hello,
I have a problem with a cronjob.
I have entered the following with me:

Code: [Select]
/usr/local/bin/php -f /home/losebra/public_html/cron.php?id=3429&pw=demodmeo&rallys=Tagesklick
this is also called according to logfile. unfortunately nothing happens.

When I test this cron as described in the instructions via the ssh console, I get the following message:

Code: [Select]
Could not open input file: /home/losebra/public_html/cron.php?id=3429
Can someone help me here?

4
CentOS-WebPanel Bugs / API Domain
« on: September 10, 2018, 07:20:45 PM »
Hallo,
ich bin leider jetzt erst dazu gekommen die Domain Funktion bei der Api zu testen.
leider muss ich feststellen, das der Server keine Antwort auf die Anfrage per Curl gibt.
Liegt das an meinem Code oder ist hier eventuell noch ein kleiner fehler im Script?

this is my code:

Code: [Select]
$data = array(
"key" => $key,
"action" => 'list',
"user" => 'isaack',
"type" => 'subdomain',
"name" => $domain,
"path" => 'public_html/vms-suee/'
);

$url = "https://91.194.84.77:2304/v1/admindomains";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt ($ch, CURLOPT_POSTFIELDS, http_build_query($data));
curl_setopt ($ch, CURLOPT_POST, 1);
$response = curl_exec($ch);
curl_close($ch);
$response = json_decode($response);
return $response;

5
Other / Add domain with API
« on: August 02, 2018, 12:54:21 PM »
Hello, I do not really know if I'm right here. At least I did not find anything else where you can write API questions purely.
Is it possible to add a domain with target directory via API for an existing user, if so which function should I use?

Thanks for the answers.

6
SSL / Automatically on https
« on: May 20, 2018, 07:11:03 AM »
Hello,
how can i set it to be taken automatically https instead of http?
Currently I always have to write https with in the URL.
An SSL certificate has already been created for each domain.

thanks for the answers.

Pages: [1]