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 ... 45 46 [47] 48 49
SSL / Re: Only authorised on 8443
« on: February 05, 2020, 03:37:40 PM »
Try rebuilding the vhosts in cwp

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)

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.

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

Run the following Commands in order

cd /usr/local/cwpsrv/htdocs

unzip -o -q
rm -f

cat /usr/local/cwpsrv/conf/cwpsrv.conf 

ls /usr/local/cwpsrv/htdocs/admin/login/

Run the following:

systemctl status cwp-phpfpm
systemctl status cwpsrv

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, and change the http to https

Just changing to https will fail with a self signed cert.

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.

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:

Proper formats are as follows:
my in A (IP)
my in CNAME @  // make sure you have an @ in A (IP)
my in CNAME

NOTE YOU tried in CNAME  This could crash a named server. Don't ever do a looped lookup

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.

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?

DNS / Re: How to solve :: BIND DNS Server always shutting down?
« on: February 05, 2020, 01:45:35 AM »
systemctl enable named

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

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
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/*.confcwpsrv -s reload
Code: [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.php
Code: [Select]
if (isset($_GET["loadfile"])) {
if (
file_exists("/usr/local/apache/domlogs/{$_GET["loadfile"]}.error.log")) {
$content file_get_contents("/usr/local/apache/domlogs/{$_GET["loadfile"]}.error.log");
} else {
"No File Found";
//  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 ($chCURLOPT_POSTFIELDShttp_build_query($data));
curl_setopt ($chCURLOPT_POST1);
$response curl_exec($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 bye
Code: [Select]
<div class="row">
    <div class="col-lg-12">
        <h1>Error Log</h1>
<form action="{{mod.returl}}" action="get"><select id="loadfile">

{% for option in %}
   <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>
javascript   /usr/local/cwpsrv/var/services/users/cwp_theme/modified/js/modules/php_error.js.twig
Code: [Select]
$(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";
INI File   /usr/local/cwpsrv/var/services/users/cwp_lang/en/php_error.ini
Code: [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>

« 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).

Pages: 1 ... 45 46 [47] 48 49