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.


Messages - rcschaff

Pages: 1 ... 50 51 [52] 53 54 ... 57
766
phpfpm is not running. 

767
Seen that for almost 2 years.  No offense.

768
Suggestions / Please start locking topics.
« on: February 13, 2020, 07:50:32 AM »
Once a topic has a resolution, you really should lock it.  People posting on 3 year old issues is ridiculous.

769
I released a module of you all would like to try it out.  Check the modules board.

770
Installation / Re: How to install CentOS Web Panel?
« on: February 13, 2020, 07:45:48 AM »
See other post.  And please try not to double post.

771
Installation / Re: Install failed - Minimum requeriments
« on: February 13, 2020, 07:44:27 AM »
Cwp does not currently have comparability with centos 8.

772
Workaround for those bold enough:

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($chCURLOPT_URL$url);
curl_setopt($chCURLOPT_RETURNTRANSFERtrue);
curl_setopt($chCURLOPT_CUSTOMREQUEST"POST");
curl_setopt($chCURLOPT_SSL_VERIFYPEERfalse);
curl_setopt ($chCURLOPT_POSTFIELDShttp_build_query($data));
curl_setopt ($chCURLOPT_POST1);
$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}}');

773
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.

774
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.

775
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)

776
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.

777
Centos runs on nginx  /usr/local/cwpsrv/logs/error_log

778
Check the error log.  Might be a file/system lock preventing access.  And timeout for cwpsrv is high.

779
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  ;)

780
E-Mail / Re: Help! I cannot send mail using the editor type HTML
« on: February 12, 2020, 04:50:34 PM »
Good solution.

Pages: 1 ... 50 51 [52] 53 54 ... 57