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.
736
Installation / Re: Install failed - Minimum requeriments
« on: February 13, 2020, 07:44:27 AM »
Cwp does not currently have comparability with centos 8.
737
CentOS-WebPanel Bugs / Re: ftp accounts not showing created accounts (stuck) from user cwp
« on: February 13, 2020, 02:50:43 AM »
Workaround for those bold enough:
1) nano /usr/local/cwpsrv/var/services/users/cwp_theme/original/js/jsfix.php
Step 2:
nano /usr/local/cwpsrv/var/services/users/cwp_theme/original/js/modules/ftp_accounts.js.twig
At the very top of the file is "let ftp_list = JSON.parse('{{mod.ftp_account_list|json_encode|raw}}');"
Replace with below
1) nano /usr/local/cwpsrv/var/services/users/cwp_theme/original/js/jsfix.php
Code: [Select]
<?php
$user = $_GET['user'];
$data = array("key" => "","action"=>'list',"user"=>"{$user}");
$url = "https://LOCALHOST:2302/v1/ftpaccount";
$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);
$vars = json_decode($response);
$js = "[";
foreach($vars->userftp as $key => $value) {
$vals = explode("\t",$value);
#var_dump($vals);
$val = explode("@",$vals[0]);
#var_dump($val);
if ($val[0] != "") {
$js .= "{\"username\":\"".$val[0]."\",\"domain\":\"".$val[1]."\",\"path\":\"".$vals[1]."\"},";
}
}
$js = rtrim($js,",");
$js .= "]";
$js = str_replace("/","\/",$js);
echo $js;
?>
Step 2:
nano /usr/local/cwpsrv/var/services/users/cwp_theme/original/js/modules/ftp_accounts.js.twig
At the very top of the file is "let ftp_list = JSON.parse('{{mod.ftp_account_list|json_encode|raw}}');"
Replace with below
Code: [Select]
// CECILIO MORALES JS
$.ajaxSetup({
async: false
});
$.get( "/cwp_theme/original/js/jsfix.php", { user: "{{users}}" } )
.done(function( data ) {
ftp_listdata = data;
});
let ftp_list = JSON.parse(ftp_listdata);
//let ftp_list = JSON.parse('{{mod.ftp_account_list|json_encode|raw}}');
738
CentOS 7 Problems / Re: User domain & Subdomain page loading forever
« on: February 13, 2020, 02:05:57 AM »
they broke something in the api in the last update. FTP accounts is the same.
739
Installation / Re: The big Question
« on: February 13, 2020, 01:26:54 AM »
Simple workaround. Create an account with the domain localhost.localdomain. << DOesn't server anything. Addon domains now got to /public_html/mydomainname.com
Now public_html doesn't have to server any website.
Of course you could always create your own template for apache/nginx
Location of the files: /usr/local/cwpsrv/htdocs/resources/conf/web_servers/ | http templates = .tpl | https templates = .stpl |
Create a new template that points your main domain to public_html/(domian), and use that template for your website. Custom templates will not get overwritten.
Now public_html doesn't have to server any website.
Of course you could always create your own template for apache/nginx
Location of the files: /usr/local/cwpsrv/htdocs/resources/conf/web_servers/ | http templates = .tpl | https templates = .stpl |
Create a new template that points your main domain to public_html/(domian), and use that template for your website. Custom templates will not get overwritten.
740
CentOS-WebPanel Bugs / Re: ftp accounts not showing created accounts (stuck) from user cwp
« on: February 12, 2020, 11:42:48 PM »
Just looked into it. Bug in the module:
jquery-3.1.1.min.js:2 jQuery.Deferred exception: Cannot read property 'forEach' of null TypeError: Cannot read property 'forEach' of null
at listFTP (https://server3.schaffner.org:2083/cwp_8cebff215234c501/schaffne/?module=ftp_accounts:3056:12)
at HTMLDocument.<anonymous> (https://server3.schaffner.org:2083/cwp_8cebff215234c501/schaffne/?module=ftp_accounts:3049:3)
at j (https://server3.schaffner.org:2083/schaffne/cwp_theme/original/js/jquery-3.1.1.min.js:2:29948)
at k (https://server3.schaffner.org:2083/schaffne/cwp_theme/original/js/jquery-3.1.1.min.js:2:30262) undefined
r.Deferred.exceptionHook @ jquery-3.1.1.min.js:2
k @ jquery-3.1.1.min.js:2
setTimeout (async)
(anonymous) @ jquery-3.1.1.min.js:2
i @ jquery-3.1.1.min.js:2
fireWith @ jquery-3.1.1.min.js:2
fire @ jquery-3.1.1.min.js:2
i @ jquery-3.1.1.min.js:2
fireWith @ jquery-3.1.1.min.js:2
ready @ jquery-3.1.1.min.js:2
R @ jquery-3.1.1.min.js:3
jquery-3.1.1.min.js:2 Uncaught TypeError: Cannot read property 'forEach' of null
at listFTP (?module=ftp_accounts:3056)
at HTMLDocument.<anonymous> (?module=ftp_accounts:3049)
at j (jquery-3.1.1.min.js:2)
at k (jquery-3.1.1.min.js:2)
jquery-3.1.1.min.js:2 jQuery.Deferred exception: Cannot read property 'forEach' of null TypeError: Cannot read property 'forEach' of null
at listFTP (https://server3.schaffner.org:2083/cwp_8cebff215234c501/schaffne/?module=ftp_accounts:3056:12)
at HTMLDocument.<anonymous> (https://server3.schaffner.org:2083/cwp_8cebff215234c501/schaffne/?module=ftp_accounts:3049:3)
at j (https://server3.schaffner.org:2083/schaffne/cwp_theme/original/js/jquery-3.1.1.min.js:2:29948)
at k (https://server3.schaffner.org:2083/schaffne/cwp_theme/original/js/jquery-3.1.1.min.js:2:30262) undefined
r.Deferred.exceptionHook @ jquery-3.1.1.min.js:2
k @ jquery-3.1.1.min.js:2
setTimeout (async)
(anonymous) @ jquery-3.1.1.min.js:2
i @ jquery-3.1.1.min.js:2
fireWith @ jquery-3.1.1.min.js:2
fire @ jquery-3.1.1.min.js:2
i @ jquery-3.1.1.min.js:2
fireWith @ jquery-3.1.1.min.js:2
ready @ jquery-3.1.1.min.js:2
R @ jquery-3.1.1.min.js:3
jquery-3.1.1.min.js:2 Uncaught TypeError: Cannot read property 'forEach' of null
at listFTP (?module=ftp_accounts:3056)
at HTMLDocument.<anonymous> (?module=ftp_accounts:3049)
at j (jquery-3.1.1.min.js:2)
at k (jquery-3.1.1.min.js:2)
741
Installation / Re: The big Question
« on: February 12, 2020, 10:42:07 PM »
Every hosting panel does the same thing. Setup add-on domains of you want them all under one account.
742
CentOS-WebPanel Bugs / Re: ftp accounts not showing created accounts (stuck) from user cwp
« on: February 12, 2020, 06:15:31 PM »
Centos runs on nginx /usr/local/cwpsrv/logs/error_log
743
CentOS-WebPanel Bugs / Re: ftp accounts not showing created accounts (stuck) from user cwp
« on: February 12, 2020, 05:19:37 PM »
Check the error log. Might be a file/system lock preventing access. And timeout for cwpsrv is high.
744
CentOS-WebPanel GUI / Re: How to change domain name from user account?
« on: February 12, 2020, 05:18:22 PM »
I'm not saying it's impossible. Just unrealistic when we can barely get a response on bug reports
745
E-Mail / Re: Help! I cannot send mail using the editor type HTML
« on: February 12, 2020, 04:50:34 PM »
Good solution.
746
CWP API / Re: Opencart and CWP? No need for WHMCS
« on: February 12, 2020, 04:44:59 PM »
In which way shape or form is this a solution? If you managed to get abante cart working, why not post your code... That would be a solution for others. Oh wait, you probably want people to pay you for your work. So hypocritical.
747
CWP API / Re: Opencart and CWP? No need for WHMCS
« on: February 12, 2020, 04:36:58 PM »
Free billing system for CWP Septemeber 2019???
That was 5 months ago, and NOBODY offered any solutions. So if they did do it, they're not sharing, or your just wrong, and you're the only one who wants to do it this way.
That was 5 months ago, and NOBODY offered any solutions. So if they did do it, they're not sharing, or your just wrong, and you're the only one who wants to do it this way.
748
CWP API / Re: Opencart and CWP? No need for WHMCS
« on: February 12, 2020, 04:16:53 PM »Alternatives to WHMCS
BILLmanager. BILLmanager is a highly customizable billing software for hosting and IaaS business with the full scope of functionality for... ...
BoxBilling. Complete client management, billing & support software. ...
Blesta. ...
ZBillingNET. ...
ClientExec. ...
HostShop from 20i. ...
HostBill. ...
Atomia Billing Platform.
All have the ability to connect to a backend to automate the process.
Which one is opensource and free supports cwp with a ready-made extension or plugin or inbuilt with cwp automation? You can buy me whmcs if you want lol
Your asking about an opencart in which you would have to program the API, but are concerned about doing the same with a software designed for this purpose? So what your really saying is you want someone else to do all the work, and you want it all for free. Good luck with that.
Good day!
750
CWP API / Re: Opencart and CWP? No need for WHMCS
« on: February 12, 2020, 03:49:51 PM »
Alternatives to WHMCS
BILLmanager. BILLmanager is a highly customizable billing software for hosting and IaaS business with the full scope of functionality for... ...
BoxBilling. Complete client management, billing & support software. ...
Blesta. ...
ZBillingNET. ...
ClientExec. ...
HostShop from 20i. ...
HostBill. ...
Atomia Billing Platform.
All have the ability to connect to a backend to automate the process.
BILLmanager. BILLmanager is a highly customizable billing software for hosting and IaaS business with the full scope of functionality for... ...
BoxBilling. Complete client management, billing & support software. ...
Blesta. ...
ZBillingNET. ...
ClientExec. ...
HostShop from 20i. ...
HostBill. ...
Atomia Billing Platform.
All have the ability to connect to a backend to automate the process.