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 [3]
31
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?

32
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!

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

34
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?

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

36
I can build it / Re: Apache Status - Accesses
« on: June 24, 2023, 07:36:41 PM »
This would be better and show more info:

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;

?>

Pages: 1 2 [3]