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 - leisegang

Pages: [1] 2
1
PHP / Re: CWP falling behind with PHP. Again.
« on: February 22, 2024, 03:41:48 PM »
So CWP 0.9.8.1176 just came out this morning, and PHP wasn't updated.

@josemnunez
Still 2 versions behind on PHP 8.2 and 8.3.

i cant see the changelogs for the 3 or 4 latest releases, where can i find them?

2
CentOS 7 Problems / Re: login loop after sign in
« on: February 21, 2024, 07:54:21 AM »
Try deleting cookies. Login via incognito mode/private browsing. Make sure ad blocker/tracker blocker isn't interfering. Try a different browser.

The incognito saves the day in 90% of these incidents, or you can do what i do, disable wifi on my mobile and log in with that. then you have another session and IP.

3
Information / Re: How many disks are physically installed on the server?
« on: February 15, 2024, 01:36:17 PM »
f you really want to display only the hardware, and not RAID volumes and partitions that might be seen by the OS as physical drives. You might want to try lshw

Code: [Select]
lshw -class disk -short
Quote
H/W path        Device      Class       Description
===================================================
/0/1/0.0.0      /dev/cdrom  disk        DVD-RAM GSA-H55N
/0/1/0.1.0      /dev/sda    disk        160GB ST3160021A
/0/2/0.0.0      /dev/sdb    disk        160GB ST3160815AS

4
WebHosting-Billing / Re: I Cannot Reach CWP Billing Team!
« on: February 15, 2024, 01:33:34 PM »
You can check in terminal:

Code: [Select]
curl "http://www.centos-webpanel.com/ip/"
Then run this to activate it
Code: [Select]
sh /scripts/update_cwp
disable firewall


Enjoy!

5
How to / Re: Preventing Access to wp-login and xmlrpc.php
« on: February 05, 2024, 12:06:54 PM »
i would delete the wp-contents folder from a new file downloaded from wordpress.org

then uploaded ALL files and folders that are left and overwrite the folders and files, then you would have clean wp install.

then you can scan the wp-content folder

6
New Modules / Re: [Module] Track E-mail Delivery
« on: January 19, 2024, 06:53:35 PM »
Thank you, will try it out.

are you able to use it or do you get errors?

7
New Modules / Re: [Module] Track E-mail Delivery
« on: October 08, 2023, 05:36:04 PM »
i really would like this to work but i get this error message:
You are not authorized to use this module (email_delivery)- Contact Server Admin

what can cause this?

8
Postfix / Re: Postfix uses wrong IP address
« on: September 11, 2023, 04:02:41 PM »
I have added that to my postfix configuration but it still sends messages with the addon IP address.
Here are some of the output from the Undelivered Mail Returned to Sender emails
Code: [Select]
    gmail-smtp-in.l.google.com[108.177.15.27] said: 550-5.7.1 [xx.xx.xx.xx
    18] Our system has detected that this message is 550-5.7.1 likely
    suspicious due to the very low reputation of the sending IP 550-5.7.1
    address. To best protect our users from spam, the message has been
    550-5.7.1 blocked. Please visit 550 5.7.1
    https://support.google.com/mail/answer/188131 for more information.
    z5-20020a05600c0a0500b003fbef8ad8f5si3205315wmp.40 - gsmtp (in reply to end
    of DATA command)

9
Scripts / Re: CWP update script
« on: August 30, 2023, 07:48:37 PM »
This is the content of the
Code: [Select]
/scripts/update_cwp file:
Code: [Select]
/usr/local/cwp/php71/bin/php -d max_execution_time=1000000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php
Opening the
Code: [Select]
cron.php file looks like this:

Code: [Select]
<?php //0042b
// Copyright CentOS WebPanel, Decoding is FORBIDDEN
// All Rights Reserved. www.centos-webpanel.com
if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');if(function_exists('dl')){@dl($__ln);}if(function_exists('_il_exec')){return _il_exec();}$__ln='/ioncube/'.$__ln;$__oid=$__id=realpath(ini_get('extension_dir'));$__here=dirname(__FILE__);if(strlen($__id)>1&&$__id[1]==':'){$__id=str_replace('\\','/',substr($__id,2));$__here=str_replace('\\','/',substr($__here,2));}$__rd=str_repeat('/..',substr_count($__id,'/')).$__here.'/';$__i=strlen($__rd);while($__i--){if($__rd[$__i]=='/'){$__lp=substr($__rd,0,$__i).$__ln;if(file_exists($__oid.$__lp)){$__ln=$__lp;break;}}}if(function_exists('dl')){@dl($__ln);}}else{die('The file '.__FILE__." is corrupted.\n");}if(function_exists('_il_exec')){return _il_exec();}echo('No Loader is installed, please try to run this command or contact support: sh /scripts/update_ioncube restart');exit(199);
?>

HR+cPoTbtmwVi28X5jrBBL2P6jRk8obnO6pNLT0RCClQBgWMxWfn/CCNgHQKOgpHLl+vYLBoub3l
v4wyOVfsU8EmTyvxbwGRC3CtfbYPJwpXtikDJFaoqdpXPAi5PT2vVELfG5twWyGg5r5QJS/zACrE
Rvz52/GFwGjh9NGHyz7NWohx2uV49i2GNSu7CK2BpMHTt7YkW2zxs9izxEG2WRzG+M/gh/m9Ghcf
Lk/nbUHjFk5ZSqiDKo5x8eDFN8t8Wfpk8Iv6dmDDRMmXcr8XusMTrvK+hVMptDRbVQ/El+VrTU+5
q9abqO5s0ef92nOxPJWlnmUcMTHUgmANyXXW8vbJVIuzbaTcT/xVjFVC3EnGxwBeibWAR7H9q7Z3

So i have no way of NOT restarting apache every night...

10
Scripts / Re: CWP update script
« on: August 29, 2023, 08:03:32 AM »
That file is manglede by the cwp team so i cannot edit it.

11
Scripts / CWP update script
« on: August 28, 2023, 06:17:21 PM »
I see that the CWP update script runs daily, thats OK i think,. but at the end it restarts Apache webserver, i i really do not get why, this also restarts my PHP cache and several other services, is this possible to turn off?

12
Postfix / Postfix uses wrong IP address
« on: August 28, 2023, 06:15:18 PM »
When i send an email, i have a PTR record for my hostname server.domain.com it has IP 192.168.0.1
I also have an addon IP address 192.168.0.2
IPs and hostname is changed to make this simple.

When i send an email it uses the 192.168.0.2 IP address and not the one for the hostname, this has the "wrong" PTR record, and so gmail blocks the email because its not "correct" ptr and several other parameters.

How do i change this so it doesnt happen? server sends around 1000-2000 mail a day and about 50-100 are blocked. this is quite irritating that it does not use hostname and server IP in CWP for sending email. it uses ANY ip address!

13
I had this problem to and then i enabled logrotation on a weekly basis and that made the monthly stats start to work again. The log files were too big for goaccess to read.

14
Apache / update_cwp restarts apache
« on: July 16, 2023, 07:32:36 PM »
I dont need, and dont want to restart httpd every time the update_cwp runs,

How can i disable this?

15
CentOS-WebPanel GUI / Re: [Feature Request] Use A Full Apache Status
« on: June 25, 2023, 05:09:48 PM »
Following my feature request, I have now integrated it in CWP, so for the benefit of others..

1. Create /usr/local/cwpsrv/htdocs/resources/admin/modules/apache_status.php with the following contents

Code: [Select]
<?php
// Apache Status - Accesses v0.4

$url "http://localhost/server-status";
$ch_session curl_init();
curl_setopt($ch_sessionCURLOPT_RETURNTRANSFER1);
curl_setopt($ch_sessionCURLOPT_URL$url);
$result_url curl_exec($ch_session);
echo 
$result_url;

?>


To Add under webservers instead of Developer Options
/usr/local/cwpsrv/htdocs/resources/admin/include/3rdparty.php
<script type="text/javascript">
        $(document).ready(function() {
                var newButtons = ''
                +' <li>'
                +' <a href="?module=apache_status"><span aria-hidden="true" class="icon16 icomoon-icon-switch"></span>Apache Status - Accesses</span></a>'
                +'</li>';
                $("ul#mn-15-sub").prepend(newButtons);
        });
</script>

Pages: [1] 2