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

Pages: [1] 2
1
Informations / Hourly Email Limits
« on: May 23, 2018, 07:04:34 PM »
Can anyone clarify how the package 'Hourly Email Limits' works in practice.

I have written a one-off script for a client that will send out a batch of emails that will slightly exceed the hourly limit. Will the excess emails be delayed and sent later (which would be OK), or do the excess emails get deleted and not sent (not OK)?

I know I could set the script up to send the emails out in two separate batches, but I think it would be useful to know the answer to my question in case a similar scenario comes up in the future.

Any insights would be much appreciated.


2
CentOS-WebPanel GUI / Re: no domain work after i change the ip
« on: May 14, 2018, 05:34:37 PM »
I know this is over a month old and you've probably either fixed the problem or reinstalled everything, but . . .

Have you tried changing the ip addresses in the individual DNS Zones ?

DNS Settings > List DNS Zones and then click Edit Records for each zone.

Don't forget to restart Bind DNS Server after saving your changes.

I hope this helps

3
CentOS-WebPanel GUI / Re: Can't access CWP Admin panel
« on: May 14, 2018, 05:27:54 PM »
I had this problem recently too.

Try connecting to your server with ssh. You need to be logged in as root, so use su or sudo

Code: [Select]
# /bin/bash /scripts/restart_cwpsrv
look for error messages. In my case, I had to do:

Code: [Select]
# journalctl -xe
to find the fault (which was related to a missing ssh public and private key pair).

I hope this helps

4
Informations / Re: Has centos-webpanel.com been hacked ?
« on: May 14, 2018, 05:01:36 PM »
why do you say that? I see everything ok

Yes, everything is back as it should be now  :) :)

5
Informations / Has centos-webpanel.com been hacked ?
« on: May 14, 2018, 11:47:51 AM »
I looked at the Centos Webpanel home page today and it looks like it has been hacked / spoofed. Is this the case ?

Or has the project just been abandoned by the developers? I hope not, because I really like this panel.


6
I note that the Postfix mail log is 'rotated' on an intermittent basis - the file var/log/maillog is renamed to include a date based suffix and a new file var/log/maillog is created, but I want to be able to do this more frequently.

A Google search revealed that
Code: [Select]
# logrotate -f /etc/logrotate.d/syslog will reset the maillog (plus others), but I've found that the maillog is renamed maillog.1 and then deleted.

Does anyone know what script CWP uses to rotate the log ?

7
Mod_Security / Re: Status engine is currently disabled ?
« on: April 02, 2018, 05:05:32 PM »
I know this is an old thread, but I saw this error today (Status Engine is Currently Disabled) and found this post while searching for a solution. So I thought I'd share my findings with anyone else who has the same 'error'.

It seems that it is OK for the Status Engine to be disabled because all it does is provide feedback to the ModSecurity team.

See here : https://www.trustwave.com/Resources/SpiderLabs-Blog/Introducing-ModSecurity-Status-Reporting/

Hope someone finds it useful.

8
CentOS-WebPanel Bugs / Re: CPU 100% clamd
« on: April 01, 2018, 02:31:06 PM »
I have had this problem a couple of times now. It seems to occur following a Yum Update.

The first time petrosvels solution worked for me:

# systemctl stop clamd.service
# rm -f /var/run/clamd.amavisd/clamd.sock
# systemctl start clamd.service


The problem is in the error message from the postfix log (var/log/maillog) - ERROR: LOCAL: Socket file /var/run/clamd.amavisd/clamd.sock is in use by another process. Deleting the file clamd.sock is what is required to fix the problem.

The above didn't fix the problem straight away on the most recent occasion, so what I did was:

  • From the CWP Dashboard - stop ClamAV
  • stop AMaViS (A Mail Virus Scanner)
  • Waited until USER amavis no longer appeared in the Top 5 Processes list and the 1 minute load average dropped back to normal levels (below 0.1 in my case). This is probably not necessary, but I did it anyway to be absolutely sure amavis/clamd were not running.
  • Open Filemanager and browse to the folder /var/run/clamd.amavisd. Delete the file clamd.sock. It was an empty file (0 bytes)
  • From the CWP Dashboard Start AMaViS
  • Start ClamAV

If that does not fix the problem, check the postfix log for other possible causes:

# tail -100 var/log/maillog | grep clamd



9
Installation / Re: I have two SECURITY WARNING....
« on: February 11, 2018, 06:01:28 PM »
Are there any disadvantages to hiding all processes if not owned by the user ?

I ask from a position of total ignorance on this subject and the point of view of the server administrator who is managing a number of clients websites

10
Backup / Re: Cron Job Backup
« on: February 01, 2018, 07:07:17 AM »
Try:

0 0 * * 0 /bin/bash /usr/local/cwpsrv/htdocs/resources/scripts/user_backup asklepiy

11
Installation / Re: Upgrade to pro and updates/upgrades/changes
« on: February 01, 2018, 06:35:12 AM »
I had to rebuild my server from 'scratch' recently. Provided the licence is still current, CWP Pro will automatically re-install when the automatic update script runs (I'm not sure how frequent this is, but I don't think it's daily).

If you don't want to wait you can always open a PuTTY or Terminal session and call:

/bin/bash /scripts/update_cwp

That should update to CWPPro straight away.

12
Installation / Re: Upgrade to CWPPro
« on: February 01, 2018, 06:28:22 AM »
I know this is a few weeks old now an the OP will have decided to 'take the plunge' or not by now, but in case it helps anyone else - once you've purchased the licence (make sure you enter the correct IP address when you order), open a PuTTY console to your server and enter:

/bin/bash /scripts/update_cwp

I found that it updated to CWPPro straight away.

13
Updates / Re: Reinstalling CWP Pro after Server Reinstall
« on: January 30, 2018, 08:21:01 AM »
UPDATE: After checking my account, it seems I actually paid for CWP Pro to be installed on a different IP Address to the one I'm currently using.

As the year had nearly expired, I cancelled that subscription and took out a new one with the correct ip address. Running the bash script 'update_cwp' installed CWP Pro immediately.

14
Updates / Reinstalling CWP Pro after Server Reinstall
« on: January 27, 2018, 03:39:09 PM »
My Centos Server crashed yesterday and I finally got it running again today after having to reinstall everything from scratch.

The IP addresses are the same as before, but CWP has not automatically updated to the Pro version (which I paid for previously). Is it simply a case of waiting for it to self update or do I need to take some action (eg run a bash script / contact support etc) ?

Any advice gratefully received.

Thanks

15
DNS / Best Practise For Multiple IP Addresses ?
« on: November 15, 2017, 03:19:22 PM »
I have a VPS based on Centos 7 with Centos Web Panel. There are 4 IP addresses:

xx.xx.xx2.188
xx.xx.xx3.188
xx.xx.xx4.188
xx.xx.xx4.189

My server is installed on xx2.188 and I have set the shared IP as xx2.188

I have set ns1.server as xx4.188 and ns2.server as xx4.189

I have a number of client accounts set up on the panel spread over xx2.188, xx3.188 and xx4.188

And everything was going well. . .

Until I started messing around with the server and DNS nameserver zones. Having recently recovered access to the websites and email (a whole day wasted !), I wondered if I should change to the following:

  • Leave main server address as xx.xxx.xx2.188
  • Leave Nameservers as they are xx.xxx.xx4.188 / xx4.189
  • Set Shared IP to xx.xxx.xx3.188
  • Put all user accounts on IP address xx.xxx.xx3.188


What is best practise here ?
And what is the relevance of the Shared IP address if I can still access domains that are on other IP Addresses ?

Any enlightenment would be very much appreciated.

Kind regards

JC

Pages: [1] 2