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.
691
SSL / Re: Only authorised on 8443
« on: February 05, 2020, 03:37:40 PM »
Try rebuilding the vhosts in cwp
692
DNS Manager / Re: HTTP Test Page on the homepage and 404 Not Found
« on: February 05, 2020, 03:31:36 PM »
You can try yum removing the lamp stack you installed, then rerun /use/local/src/
sh (installscript)
sh (installscript)
693
Installation / Re: after finish install cwp on Centos7 got 404 Not Found on https:myIp:2031
« on: February 05, 2020, 09:07:38 AM »
Not sure then. Just installed 3 VM's with it flawlessly. So something fubared on your machine. Just try the reinstall and hopefully everything works out.
694
Installation / Re: after finish install cwp on Centos7 got 404 Not Found on https:myIp:2031
« on: February 05, 2020, 08:25:33 AM »
By Chance did you terminate the install script?
cd /usr/local/src
sh cwp-el7-latest
something went very wrong with your install
If that's no the script you have, you installed the os6 version
cd /usr/local/src
sh cwp-el7-latest
something went very wrong with your install
If that's no the script you have, you installed the os6 version
695
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
696
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/
697
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
698
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.
699
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
700
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.
701
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?
702
DNS / Re: How to solve :: BIND DNS Server always shutting down?
« on: February 05, 2020, 01:45:35 AM »
systemctl enable named
703
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
704
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>
705
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).