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.


Topics - kandalf

Pages: [1] 2 3
1
Updates / How to upgrade the OS
« on: June 29, 2023, 11:25:18 AM »
I currently manage three servers, one running CentOS 7 and two running CentOS 8 Stream. All of them use CWP Pro. As CentOS 7 is nearing its end of life, I'm considering upgrading to either AlmaLinux or RockyLinux. I understand that there are ways to upgrade from CentOS 7 to AlmaLinux, but I'm concerned about potential compatibility issues with CWP. I'm leaning towards setting up a new server entirely to avoid these issues. Has anyone here already done this?

On the CentOS 7 server, I host around 100 domains. I'm trying to figure out the most efficient way to migrate these to a new server. Is there a method to move all accounts at once, or will I have to transfer each user account manually?

Furthermore, if I switch to a new machine, the IP will change. Will I need to inform all of my clients to update the IP on their nameservers?

Any suggestions to simplify this process will be greatly appreciated.

2
E-Mail / Problem when a certificate Renew
« on: June 13, 2023, 08:25:48 AM »
I have multiple servers with CWP with multiple domains of clients, from times to times my clients have errors caused by the certificate, I think is when the certificate renew the mail server continue to use the old one.

Most of the times to fix this I rebuild the mailserver but this is should somehow be handle automatically it's really annoying to have this issue.
Any tips to fix this?

3
DKIM / How to change DKIM Selector
« on: August 24, 2022, 09:13:07 AM »
I have two CWP servers one will host the domain and the mail and the other is only used to send newsletters, but both will send emails for the same domain, to prevent spam I need to configure the dkim, but the problem is that both generate the dkim with the same selector "default" -> default._domainkey.

How can I change the selector in one of them?

4
E-Mail / How to use server with CWP as email server
« on: August 23, 2022, 05:09:25 PM »
I have a new server that will host a mautic instance (it's a plataform for send newsletters) I want to send the email directly from that server, but  need to have everything correctly configured to prevent the emails from go to spam.

This server will only sent newsletters emails the transactional emails are sent from the main server that host the domain, what should I do in this new server to be able to create a dkim that I will add to my dns?

Should I create a new user account and add the domain localy? But if I do it the dkim generated will be have the default name "default._domainkey" but this is a problem because this is also the dkim from the main server that is also running cwp.

5
I have multiple servers running cwp, I have update at least 3 of them and now I have this error:
PHP Warning:  PHP Startup: Unable to load dynamic library 'imagick.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20210902/imagick.so (libMagickWand-6.Q16.so.6: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20210902/imagick.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20210902/imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
 
Fortunately 2 servers are only for development and the other is new and don't have any production website. How can I fix this?

6
I found a possible security bug in my servers and I think most of CWP users will have exactly the same problem.

It's possible to everyone send and email (at least via port 25) without use any username or password to every domain in the server used as host.

For example you have the server with hostname server.example.com, this server have multiple domain in it domain1.com, domain2.com, domain3.com.
If you send an email from other server via smtp and you use "server.example.com" as hosname, as email you can use what you want and you send an email to one of the domains hosted by the server for example domain1.com it is delivered without any problem.

This is a major security problem.
How can we prevent this?

7
Other / Why centos-webpanel.com use Cpanel instead of CWP
« on: May 19, 2022, 08:29:59 AM »
I was trying to confirm a security problem on email server from CWP and found that the website of CWP use cpanel instead of CWP.

It's only for me that this seems really odd?

There are any reason for that?

8
E-Mail / Roundcube profile image too big
« on: March 25, 2022, 07:24:53 PM »
I have a problem with Roundcube, when I open an email the profile image is too big.



How can I fix it?

9
DKIM / DKIM record not generated
« on: March 14, 2022, 10:26:50 AM »
I have 3 servers with CWP (2x centos 7 and 1x centos 8 stream delayed), the Centos 8 is my most recent server, I think I configure everything correctly but the cwp is not generating a DKIM record for new domains added.

I use cloudflare go manage the dns, usually I add a new domain it created the dns records locally and I copy the values to cloudflare, but on my new server the DKIM record is never created.

I already rebuild multiple times the mail server, I tried to go to Email -> DKIM manager and "Add DKIM" but it never adds a dkim record, it show a success message but don't do nothing.
When I add a new domain in the other server if I go to Dkim Manager I get all columns green, in the new server I get
TrustedHosts = Red   
KeyTable = Red
v=DKIM1 = Green
v=spf1 = Green

I already tried do add the domain to /etc/opendkim/TrustedHosts manually and in that case I can turn TrustedHosts to green, but the dkim record is never generated. I saw that the /etc/opendkim/userkeys/ folder don't even exist I have a /etc/opendkim/keys/ but it's empty, I tried to create that folder but even after rebuild mailserver it still empty.

Please any tips to solve this problem

10
Apache / Serve index.php first than index.html
« on: March 12, 2022, 09:07:45 AM »
I updates Apache to version 2.4.52, and some sites on the server start showing the default cwp page, this happens because the index.html start being handle before the index.php, the websites where I forget to delete the index.html are getting problems.

How can I change the settings to restore the previous configuration and start serve first the .php files?

I use Apache with nginx and use php cgi.

11
E-Mail / How to change MX record to subdomain?
« on: March 10, 2022, 04:30:22 PM »
In many panels the MX record is something like "mail.domain.com", but in cpanel the MX record is only the domain in this example is "domain.com".

If I set a different mx record for example "mail.domain.com" even if that subdomain points to the server I don't receive any email, how can we create a different mx record that works?

12
I have multiple accounts in my server most of the users have a limit of 40 processes at the same time, but in the last days some of the wordpress websites are getting hit by some bots doing login attemps, the problem is that in that times the cwp don't limit the number of proccess, and an account can have many more processes that was supposed.

I'm using netdata, and I can check the number of processes in a specific time:

As you can check the user dietafin have 269 processes at the same time that account should be limited to 40processes.

What is wrong and how can I force the limit to be applied?

13
Backup / Storage Box Hetzner via SSH
« on: February 28, 2022, 06:18:16 PM »
Storage Box from hetzner.com are a cheap option to create remote backups it supports rsync via SSH but I can't make it work.

Anyone have already tested it? If I ran on the server the rsync command it connects to the storage box, but I have tried both the regular and the new backup system an can't connect.

I think the SSH connection to storage box it's really limited it only can be done directly from the rsync command something like this:
rsync --progress -e 'ssh -p23' --recursive <local_directory> <username>@<username>.your-storagebox.de:<target_directory>

Documentation here - https://docs.hetzner.com/robot/storage-box/access/access-ssh-rsync-borg

I'd like to enable the new backup system using incremental backup via SSH, I thought it use rsync command but probably it try to connect first to do something and it fails.
Any help?

14
Installation / Centos 7 still the recommended version?
« on: February 28, 2022, 11:47:24 AM »
I will buy a new server I read on the official documentation that Centos 7 is the recommended version, we also have the centos 8 stream delayed or even Rocky Linux. This information is updated? Do you still recommend Centos 7?

When the Centos 7 reach the end of life it's possible to update for example to Centos Stream or I will need to create a new installation and migrate manually everything?

It's a little strange to install a OS with about 2 years of life, it's a lot of work to migrate websites and emails and everything related

15
Apache / nginx -> apache -> php-fpm VS nginx -> php-fpm
« on: February 27, 2022, 10:17:32 AM »
I found that CWP have a configuration that is nginx -> apache -> php-fpm what are the advantages of this instead of nginx -> php-fpm?

With nginx -> apache -> php-fpm can we still use .htaccess?

At the moment I'm using Nginx + Varnish + Apache php-cgi, I don't know exactly the impact of Varnish since I don't change any configuration but all websites work well.

Most of the examples on the internet use nginx + php-fpm or apache + php-fpm, I don't understand what are exactly the advantages of have nginx + apache + php-fpm

Pages: [1] 2 3