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
Information / Error when using api to create email account
« on: September 13, 2025, 10:31:45 AM »
Error when using api to create email account
I get response Error :
{"status":"Error","result":"invalid action"}
code :
<?php
$url = "https://my_server_ip:2304/v1/email";
$api = "lgyfdsgfdsgkuh6Z4Eicoxedwfcc34153vtK0QUQCgbStG9T2ufUjw4";
$data = [
'key' => $api,
'user' => 'mooga',
'action' => 'add',
'domain' => "mooga.com",
'email' => "info",
'pass' => "123456",
'quotamail' => "500",
'debug' => 1
];
$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_VERIFYHOST, FALSE);
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);
echo $response;
?>
I get response Error :
{"status":"Error","result":"invalid action"}
code :
<?php
$url = "https://my_server_ip:2304/v1/email";
$api = "lgyfdsgfdsgkuh6Z4Eicoxedwfcc34153vtK0QUQCgbStG9T2ufUjw4";
$data = [
'key' => $api,
'user' => 'mooga',
'action' => 'add',
'domain' => "mooga.com",
'email' => "info",
'pass' => "123456",
'quotamail' => "500",
'debug' => 1
];
$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_VERIFYHOST, FALSE);
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);
echo $response;
?>
2
Information / Re: disable pages cache (updated page showen immediately )
« on: September 04, 2025, 03:53:46 PM »
I found answer is to set opcache.enable=0 in php.ini file
3
Information / disable pages cache (updated page showen immediately )
« on: September 04, 2025, 01:56:58 PM »
Hi everyone,
when I update any page the effects will showen on the browser after some seconds
the page updated not showen immediately
how to avoid this
how to disable pages cache (I want updated page showen immediately )
I'm using apache only
when I update any page the effects will showen on the browser after some seconds
the page updated not showen immediately
how to avoid this
how to disable pages cache (I want updated page showen immediately )
I'm using apache only
4
Installation / edit or change HTTP Test Page
« on: September 03, 2025, 06:05:14 PM »
Hi everyone
how to edit or change HTTP Test Page (the default page for any domain or subdomains)
and where is the path for it
please note the domain is not added yet from the cwp control panel ,
it just refere to cwp shared IP (A record)
how to edit or change HTTP Test Page (the default page for any domain or subdomains)
and where is the path for it
please note the domain is not added yet from the cwp control panel ,
it just refere to cwp shared IP (A record)
Pages: [1]
