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.
826
Installation / Re: after finish install cwp on Centos7 got 404 Not Found on https:myIp:2031
« on: February 05, 2020, 07:58:59 AM »
Run the following Commands in order
cd /usr/local/cwpsrv/htdocs
wget static.cdn-cwp.com/files/cwp/el7/cwp-el7-0.9.8.928.zip
unzip -o -q cwp-el7-0.9.8.928.zip
rm -f cwp-el7-0.9.8.928.zip
cd /usr/local/cwpsrv/htdocs
wget static.cdn-cwp.com/files/cwp/el7/cwp-el7-0.9.8.928.zip
unzip -o -q cwp-el7-0.9.8.928.zip
rm -f cwp-el7-0.9.8.928.zip
827
Installation / Re: after finish install cwp on Centos7 got 404 Not Found on https:myIp:2031
« on: February 05, 2020, 07:14:33 AM »
cat /usr/local/cwpsrv/conf/cwpsrv.conf
ls /usr/local/cwpsrv/htdocs/admin/login/
ls /usr/local/cwpsrv/htdocs/admin/login/
828
Installation / Re: after finish install cwp on Centos7 got 404 Not Found on https:myIp:2031
« on: February 05, 2020, 06:49:21 AM »
Run the following:
systemctl status cwp-phpfpm
systemctl status cwpsrv
systemctl status cwp-phpfpm
systemctl status cwpsrv
829
CentOS-WebPanel Bugs / freeDNS module bug
« on: February 05, 2020, 03:05:26 AM »
You can no longer include an insecure iframe on a secured connection. YOu need to get a signed cert for http://freedns.centos-webpanel.com/, and change the http to https
Just changing to https will fail with a self signed cert.
Just changing to https will fail with a self signed cert.
830
DNS Manager / Re: Sub Domain Registration with free DNS
« on: February 05, 2020, 02:58:42 AM »
first off, is your domain setup to the proper nameservers at your registar.
ns1.centos-webpanel.com
ns2.centos-webpanel.com
ns3.centos-webpanel.com
ns4.centos-webpanel.com
ns5.centos-webpanel.com
Second, if they indeed are, it may take 24 hours after setting them at the registar to propogate, until that point, the old NS are still considered Authorative
Use this tool, and select NS for what to look for: https://www.digwebinterface.com/
Proper formats are as follows:
my in A (IP)
my in CNAME @ // make sure you have an @ in A (IP)
my in CNAME mydomain.com
NOTE YOU tried my.domain.com in CNAME my.domain.com. This could crash a named server. Don't ever do a looped lookup
ns1.centos-webpanel.com
ns2.centos-webpanel.com
ns3.centos-webpanel.com
ns4.centos-webpanel.com
ns5.centos-webpanel.com
Second, if they indeed are, it may take 24 hours after setting them at the registar to propogate, until that point, the old NS are still considered Authorative
Use this tool, and select NS for what to look for: https://www.digwebinterface.com/
Proper formats are as follows:
my in A (IP)
my in CNAME @ // make sure you have an @ in A (IP)
my in CNAME mydomain.com
NOTE YOU tried my.domain.com in CNAME my.domain.com. This could crash a named server. Don't ever do a looped lookup
831
DNS Manager / Re: HTTP Test Page on the homepage and 404 Not Found
« on: February 05, 2020, 02:36:12 AM »
P.S. If your using CWP, you shouldn't be installing anything via terminal. You should use the CWP to select your configurations and let it do the work. If you install LAMP before CWP, you will most definitely break CWP.
832
DNS Manager / Re: HTTP Test Page on the homepage and 404 Not Found
« on: February 05, 2020, 01:47:40 AM »
probably received an update from CWP that overwrote all customer user settings.
Are you using apache or nginx-phpfpm?
Are you using apache or nginx-phpfpm?
833
DNS / Re: How to solve :: BIND DNS Server always shutting down?
« on: February 05, 2020, 01:45:35 AM »
systemctl enable named
834
Updates / Re: User Error logs disappeared after recent update
« on: February 05, 2020, 01:44:01 AM »
Additional Note, because the theme changer doesn't work, you need to change /home/(users)/.conf/cwp.ini THEME to modified
835
Updates / Re: User Error logs disappeared after recent update
« on: February 05, 2020, 01:24:50 AM »
Seriously Devs. It's not that hard if you would be willing to expand basedir
Edit file /usr/local/cwpsrv/var/services/users/cwp_theme/modified/menu_left.html
find (~ Line 62)
{% if ("statistics" in rmenu )or(swmenu==1) %}
<li class="search"><a href="?module=statistics">{{langene.GNLABEL51}}</a></li>
{% endif %}
add after
<li class="search"><a href="?module=php_error">PHP Error Log</a></li>
Code: [Select]
sed -i "s@fastcgi_param PHP_ADMIN_VALUE \"open_basedir =/home@fastcgi_param PHP_ADMIN_VALUE \"open_basedir =/usr/local/apache/domlogs/:/home@g" /root/cwpsrv/conf.d/users/*.conf
cwpsrv -s reloadCode: [Select]
cp -R /usr/local/cwpsrv/var/services/users/cwp_theme/origional /usr/local/cwpsrv/var/services/users/cwp_theme/modified/
// PHP Section /usr/local/cwpsrv/var/services/user_files/modules/php_error.phpCode: [Select]
<?php
if (isset($_GET["loadfile"])) {
if (file_exists("/usr/local/apache/domlogs/{$_GET["loadfile"]}.error.log")) {
echo $content = file_get_contents("/usr/local/apache/domlogs/{$_GET["loadfile"]}.error.log");
} else {
echo "No File Found";
};
exit;
}
// Replace this with built in code to populate domains and subdomains //
//use API to get list of users
$mod["returl"] = $_SERVER['REQUEST_URI'];
$data = array("key" => "(SET YOUR API KEY HERE)","action"=>'list',"user"=>$_SESSION ['username']);
$url = "https://{$_SERVER['SERVER_NAME']}:2304/v1/accountdetail";
$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);
$domains = array();
$mod['select'] = array();
foreach ($response->result->domains as $key) {
$domains[] = trim($key->domain);
}
foreach ($response->result->subdomins as $key) {
$domains[] = trim($key->subdomain .".". $key->domain);
}
foreach ($domains as $domain) {
$mod['select'][] = $domain;
}
if (file_exists("/usr/local/apache/domlogs/{$domains[0]}.error.log")) {
$mod['file'] = file_get_contents("/usr/local/apache/domlogs/{$domains[0]}.error.log");
} else {
$mod['file'] = "No File Found";
};
?>
HTML /usr/local/cwpsrv/var/services/users/cwp_theme/modified/mod_php_error.html <<< YOu might want to copy origional to modified so it doesn't go bye byeCode: [Select]
<div class="row">
<div class="col-lg-12">
<h1>Error Log</h1>
</div>
<div>
/usr/local/apache/domlogs/
<form action="{{mod.returl}}" action="get"><select id="loadfile">
{% for option in mod.select %}
<option>{{ option }}</option>
{% endfor %}
</select><noscript><input type="submit" value="Change"></noscript></form>
<textarea id="logfile" readonly style="width:800px; height:400px">{{mod.file}}</textarea>
</div>
</div>
javascript /usr/local/cwpsrv/var/services/users/cwp_theme/modified/js/modules/php_error.js.twigCode: [Select]
(function($){
$(document).ready(function() {
$("#loadfile").change(function() {
$.get( "{{mod.returl}}", { loadfile: $("#loadfile").val() },"text" )
.done(function( data ) {
if (data == "") data = "Congratulations! No PHP Errors were logged";
$("#logfile").text(data);
});
});
});
})(jQuery);
INI File /usr/local/cwpsrv/var/services/users/cwp_lang/en/php_error.iniCode: [Select]
SOMETHING="Nobody Really Cares"
Edit file /usr/local/cwpsrv/var/services/users/cwp_theme/modified/menu_left.html
find (~ Line 62)
{% if ("statistics" in rmenu )or(swmenu==1) %}
<li class="search"><a href="?module=statistics">{{langene.GNLABEL51}}</a></li>
{% endif %}
add after
<li class="search"><a href="?module=php_error">PHP Error Log</a></li>
836
SSL / Re: ERR_SSL_PROTOCOL_ERROR Problem
« on: February 04, 2020, 10:19:49 PM »
Simple Answer, all CWP ports use the hostname certificate. I foresee only 2 options for you.
1) http proxy script to access the 2031 port
2) Regenerate a hostname.crt that includes all of your domians you host. Though this could get costly. ( Cpanel does this by having their own root certificate authority. No other panel has this option).
1) http proxy script to access the 2031 port
2) Regenerate a hostname.crt that includes all of your domians you host. Though this could get costly. ( Cpanel does this by having their own root certificate authority. No other panel has this option).
837
E-Mail / Re: Delayed mail with remote mail exchangers
« on: February 04, 2020, 10:10:15 PM »
MX is handled by DNS. Simply editing the DNS without doing anything in the mail server itself should suffice.
838
Information / Re: Current work to improve CWP.
« on: February 04, 2020, 10:08:26 PM »Opening the source code, I think, would not be a solution at all. The important thing is that you get organized with a roadmap and improve so that we can bring more customers to this panel.
Opening the source code would allow knowledgeable users to fix our own errors that arise, and submit patches. More coloration from developers and users always makes a better product. If they are worried about certain functions, then fine, encode the core functions. I've already developed a 2FA option for CWP, but the developers don't respond to anything, so it might be their loss.
The way they are trying to incorporate 2FA using JQuery/Ajax from what I've seen so far is a joke, and easily worked around.
839
Information / Re: Current work to improve CWP.
« on: February 04, 2020, 04:16:58 AM »
Lets add another item to the list.
Quit overwriting everything on an update. Why in the heck do you reset users cwp_theme to original after an update? This makes absolutely no sense.
Quit overwriting everything on an update. Why in the heck do you reset users cwp_theme to original after an update? This makes absolutely no sense.
840
Information / Re: Current work to improve CWP.
« on: February 04, 2020, 12:31:06 AM »
+1 for the above, but I think the most important feature would be to open up the source code to those of us that have contacted them about development. It's been a month, and I've heard nothing. Others have said they sent an email up to 6 months ago when they were begging for developers. So it seem like they aren't all that serious about this project anymore, if they don't want help.
This compiled source code is garbage, because most good developers can simply recreate what they have already done on their own anyways.
This compiled source code is garbage, because most good developers can simply recreate what they have already done on their own anyways.