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 3
1
Informations / Re: Congrats for the new features
« on: December 29, 2018, 04:48:16 PM »
Plus 1

2
DNS / Re: Unable to start BIND DNS server
« on: December 29, 2018, 03:28:39 PM »
I had exactly the same problem.

It looks as though the problem originates with:

Code: [Select]
Dec 25 17:41:04 server.aalasolutions.com bash[18311]: zone aalasolutions.com/IN: NS 'ns1.aalasolutions.com' has no address records (A or AAAA)
Dec 25 17:41:04 server.aalasolutions.com bash[18311]: zone aalasolutions.com/IN: NS 'ns2.aalasolutions.com' has no address records (A or AAAA)
Dec 25 17:41:04 server.aalasolutions.com bash[18311]: zone aalasolutions.com/IN: not loaded due to errors.

Although I had got separate ns1 and ns2 zone files for my name servers, it was only when I added the following lines to the main domain zone file (aalasolutions.com.db in this example) that BIND would restart (make sure that there is a blank line at the end of the file as well or it won't load):

Code: [Select]
ns1 14400 IN A xxx.xxx.xxx.xxx
ns2 14400 IN A xxx.xxx.xxx.xxx

where xxx.xxx.xxx.xxx is the ip address of the respective nameserver. I couldn't add those lines using the 'Edit Records' button, I had to use 'Edit File' option.

I suspect that the problem may be because the main domain zone file (aalasolutions.com.db) is processed before the nameserver files (ns1.aalasolutions.com.db, ns2.aasolutions.com.db).

Hope this helps someone

3
DNS / Re: DNS Slave
« on: December 19, 2018, 10:10:25 AM »
I know this is a couple of months old, but in case it helps anyone else - what I did was write a script that
  • copies all of the zone files to a second server
  • checks and updates (if necessary) etc/named.conf (this tells bind what files to load)
  • restarts bind on the second server

I set this up as a cron job that runs every half hour. Then any dns zones that are updated or added are automatically updated on the secondary server within 30 minutes of the change.

4
CentOS-WebPanel Bugs / Mailbox Usage is Kb NOT Mb
« on: November 27, 2018, 11:50:52 AM »
I have set a 200Mb limit on my email account, but roundcube / CWP is translating this as 200Kb.

I have set the figure to 200,000 Mb and Roundcube is now reporting this as 195Mb

The script needs updating to convert Mb to the correct value.

Thanks

5
E-Mail / Re: Two Instances of Clamd running
« on: November 22, 2018, 07:35:26 PM »
UPDATE:

So I stopped Clamd from my server control panel, and that removed PID 5241, but PID 1571 remained.

Eventually, I 'bit the bullet' and did

Code: [Select]
# kill -9 1571

which removed it, but it was immediately replaced with another instance.

Do I still need to start clamd in my web panel ?

It's a production server so I can't afford to get this wrong

6
E-Mail / Two Instances of Clamd running
« on: November 22, 2018, 08:37:57 AM »
I've got two instances of clamd running on my server and it's sucking 60% of my Memory allocation.

Code: [Select]
top - 08:34:41 up 32 min,  1 user,  load average: 0.00, 0.04, 0.14
Tasks: 146 total,   1 running, 145 sleeping,   0 stopped,   0 zombie
%Cpu(s):  1.0 us,  1.0 sy,  0.0 ni, 97.2 id,  0.0 wa,  0.0 hi,  0.2 si,  0.7 st
KiB Mem :  1882576 total,    92308 free,  1641380 used,   148888 buff/cache
KiB Swap:   524284 total,   226848 free,   297436 used.    79476 avail Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
 5240 amavis    20   0  837436 566280   2576 S   0.0 30.1   0:14.47 clamd
 1571 amavis    20   0  837568 563556    480 S   0.0 29.9   0:16.84 clamd
 5250 amavis    20   0  367108 106644   2756 S   0.0  5.7   0:00.48 /usr/sbin/+
 5238 amavis    20   0  362956 103896   2516 S   0.0  5.5   0:01.23 /usr/sbin/+
 5251 amavis    20   0  364500 102868   1488 S   0.0  5.5   0:00.00 /usr/sbin/+

Can anyone provide any suggestions as to how I can stop one of them or how to find out why there are two instances running.

Thanks in anticipation.

7
FTP / Re: TLS problem
« on: November 20, 2018, 06:39:30 PM »
I followed the tutorial here: https://www.howtoforge.com/tutorial/pureftpd-tls-on-centos/ and it worked for me.

You do need to edit the firewall configuration to add 30000:50000 to the TCP port range to prevent the firewall from locking you out:

Go to Security > CSF Firewall and click the button to 'Edit Configuration File'. Find:
Code: [Select]
# Allow incoming TCP ports
TCP_IN = "20,21,22,25,53,80,110,143,443,465,587,993,995,2030,2031,2082,2083,2086,2087,2095,2096"
 
# Allow outgoing TCP ports
TCP_OUT = "20,21,22,25,53,80,110,113,443,2030,2031,2082,2083,2086,2087,2095,2096,587,993,995"

and add 30000:50000 to to both lines

No, it isn't using the Letsencrypt SSL certificate, but so what ?  You can 'Require explicit FTP over TLS' and the files will transfer securely. The SSL certificate generated by following the tutorial is valid for 20 years, so your server is likely to be obsolete well before the certificate expires.

I do take the point that this is a fundamental requirement for FTP and it would be better if CWP automatically accommodated it, but for the price I've paid ($10 pa for CWP Pro), I'm not complaining. Last time I looked, cPanel was $200 PER YEAR !!

8
CentOS-WebPanel GUI / Re: User panel don't work - Users Cant login
« on: November 16, 2018, 01:54:01 PM »
I'm having this problem too now.

9
I'm not sure if this is the official place to report a bug, but here goes . . .

I was running version 0.9.8.671 when I first encountered this error. I've upgraded to 0.9.8.672 and it's still a problem (CWP Pro).

When I select a User to install an SSL certificate, the Domain dropdown remains empty.

It would seem that an apostrophe (') in the word "doesn't" needs to be escaped in the javascript function validatevhostssl. the offending line is:

Code: [Select]
text: 'DNS of your domain doesn't point to this server or you have htaccess restrictions',
A quick fix would be very much appreciated.

Kind regards

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


11
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

12
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

13
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  :) :)

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


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

Pages: [1] 2 3