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

Pages: [1] 2
1
SSL / Moving server site, not SSL
« on: June 29, 2024, 03:13:51 PM »
Well this happens to me:
Original server (server1), destination server (srv1) .

Both Almalinux8.

I configure everything on a new server (srv1), and once I have everything configured, I start cwp transfer to cwp account.
Perfect, correct transfer.

I change DNS entries (I have them in cloudflare), all to the new server and I change the mail and srv1 entries but with transparency (cloufdlare cloud not activated in those entries).

On a new server, reload webserver, I am going to renew the certificate along with the email address and...

Error;The domain does not point.

And I can't...

I ping mail.mydomain.com and it tells me the new server/ip (I don't have the san entries with the orange cloud so that they don't generate "problems" in the SSL renewal).

I try and try, always the same error:
The domain does not point.

But if I generate the main ssl, the site is navigated, but I can't do any san...always error, the domain does not point...

I'm desperate because my old server is about to expire and I don't want to renew it.

And....I performed this same operation last month on two other servers, renewing the certificate and renewing it without any problem.
What difference is there from one to the other?

I have followed the same steps, and both sites, on cloudflare, are the same (as far as "free" entries for san I am referring).

I do not know what to do...

Thank you...

2
This happens to me, I have a server, Almalinux8, I want to migrate to another, I install Almalinux and I can't, it gives me an error (which I will indicate below), but on the other hand, if I install Almalinux8 on the new server, I don't have any problem in the migration, from what I deduce it is a matter of Almalinux9, since the only thing that varies with the new server is the operating system it installs.

This is the error:

Code: [Select]
[root@srv1 ~]# tail -50 /var/log/cwp/account_transfer.log

2024-06-26 11:41:28 export SSHPASS=************; /usr/bin/sshpass -e /usr/bin/ssh -p4444 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet  root@MYIPSERVER
2024-06-26 11:41:28 test -d /usr/local/cwp/ && echo 'true' || echo 'false'
2024-06-26 11:41:29 true

2024-06-26 11:41:29 /usr/bin/ssh-copy-id: ERROR: Too many arguments.  Expecting a target hostname, got:

Usage: /usr/bin/ssh-copy-id [-h|-?|-f|-n|-s] [-i [identity_file]] [-p port] [-F alternative ssh_config file] [[-o <ssh -o options>] ...] [user@]hostname
-f: force mode -- copy keys without trying to check if they are already installed
-n: dry run    -- no keys are actually copied
-s: use sftp   -- use sftp instead of executing remote-commands. Can be useful if the remote only allows sftp
-h|-?: print this help

2024-06-26 11:41:29 export SSHPASS=**********;/usr/bin/sshpass -e ssh-copy-id "-p 4444" root@MYIPSERVER -o StrictHostKeyChecking=no 2>&1
2024-06-26 11:41:29 /usr/bin/ssh -p 4444 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet root@MYIPSERVER test -d /usr/local/cwp/ && echo 'true' || echo 'false' 2>&1
2024-06-26 11:41:29 false

[root@srv1 ~]#

Thanks

3
Installation / ip route replace $(ip route list dev eth0...
« on: June 13, 2024, 05:00:30 PM »
I put it in this section, but I have no idea where to put it in the forum...

I recently installed cwp pro on a new VPS for me, Almalinux 8.

I migrated from my old VPS, everything is fine, but...

Every time I restart or after a few days I receive an email from the server:

Subject: Cron <root@server2> ip route replace $(ip route list dev eth0 scope link | head -n1 | awk '{ print $1 }') via $(ip route list dev eth0 | awk '/default/{ print $3 }') dev eth0

Content:
Error: any valid address is expected rather than "dev".

The server works well, I have not detected any problems but... it has me surprised, and with the "alarm set".

I've searched the internet but I haven't been able to see what's going on...

Does anything occur to you?

Thank you and greetings.

4
PHP / PHP Switcher version in Almalinux 9
« on: May 06, 2024, 08:14:09 PM »
I currently have two vps running on Almalinux 8.9, cwp pro.
As 8.9 reaches EOL soon, I have taken a VPS to do the migrations (VPSold to VPSnew, reconfigure VPS with Almalinux 9.x) and then, VPS new to VPS old.
Obviously, the new VPS that I use for this, I will do it from one account to one account, so I don't put CWP pro on it and I don't have access to PHP FPM (I don't need it).
My surprise was that PHP Switcher does not take me any version lower than php 7.4.33, I need php 7.1.33 but I can't.

Is there any limitation or am I doing something wrong?

5
PHP / 503 Service unavailable
« on: March 26, 2024, 06:47:35 PM »
I am encountering this problem and I don't know how to solve it.

I have a PHP script, which in the past worked for me without any problem on the same database, same environment...etc...

But it was on another host and another panel...

I launch it, it works, and from time to time, I get this error message, 503 service unavailable.
If I change a number in the url (what it does is that it imports data from one site to another) it continues without a problem.

After a lot of searching, the only error in the log I see is:
"child 4484 exited on signal 11 (sigsegv) after xxxxx seconds"

I have increased the times (set to -1) resources in php, in php-fpm I have set:
"pm = ondemand
pm.max_children = 100
pm.max_requests = 10000
pm.process_idle_timeout = 900s"
I did get that the max_children was low, it was advisable to raise it, but it was not the error.

I deleted the error log, I repeat the process, and the only error that appears is the previous one, signal 11...

I've been like this for 1 month or more, and I'm desperate...

Any ideas?

6
PHP / Internal server Error or The server is temporarily unable
« on: March 06, 2024, 12:01:27 AM »
This happens to me.

I run a script in PHP, what it performs is a conversion of tables in the database, I used this script in the past, and it didn't give me any problems (in the same database) but... I used another panel.

Well, if I configure it to use php-cgi, at one point I get "Internal Server Error", if I configure it to use php-fpm, at the same point I get "The server is temporarily unable..."

And I've been dealing with this for many hours, I've tried everything I can think of and found, but I can't solve it.

Any idea? I'm starting to get a little desperate, to say the least... :)

PS: No errors in the apache or mysql log

7
SSL / AutoSSL and Cloudflare
« on: February 26, 2024, 02:51:39 AM »
Curious what happens to me, I have two servers, they are two different vps, both, the dns in the registrar point to Cloudflare and from there, to the sites.

Well, one, no problem, I have the A record of www and the site name pointing to VPS1 (proxyfied by Cloudflare, orange icon) and without problem, autossl renews me without any problem.

The second VPS, VPS2 and another site, there is no way, if I don't deactivate Cloudflare it won't generate the AutoSSL certificate... and I don't know what to do anymore, I'm a little desperate.

Thanks and regards.

8
CSF Firewall / The module csfofficial does not exist
« on: January 17, 2023, 11:43:32 AM »
Hello,
I have 2 servers, are same, same o.s. same version of cwp, same version of config server...al are same.
In one, I have in my menu: ConfigServerScripts - ConfigServerFirewall.
In the other server, I don't have this, and if I try to access by url per module, appears:
The module csfofficial does not exist

How can solved this?

Thanks and regards.

9
E-Mail / Not connect to mail from i-mac devices
« on: January 12, 2023, 11:01:28 AM »
Well, this strange case happens to me, from any other client, such as thunderbird, everything is perfect but... from two new i-mac devices, it does not connect to mail, testing, I have seen that, if I deactivate Firewall then it does connect, if I activate firewall does not connect.
But the imap firewall ports are correctly open, 993, 465...etc...otherwise it wouldn't work from Thunderbird for example.
And I don't like having to have the firewall disabled.

Any ideas? Because for me, it's the strangest thing I've ever seen...

Regards.

10
Installation / Backup cpanel to CWP?
« on: February 09, 2022, 02:29:31 PM »
Hello.
I transfer some sites from cpanel to CWP trough cPanel-->CWP Migration, in this case, CWP contact direct with server with cpanel.

But now, I have a old backup of a old site and I want re open this site, I have a backup of this old account of cpanel, but not have this format: cpmove-{USER}.tar.gz

The format are:
backup-3.9.2018_16-47-07_xxx.tar.gz

This format is valid for option cpanel account restore?

Thanks and regards.

11
Since 2 days ago, I have this problem, if execute manually /scripts/update_cwp or simple, wait to anacron execute this, my conf files of my vhosts are revert to default, exact that, If I rebuilt configuration.

This cause to me the lost trafic in 2 nights, because, in my DNS (I use vpn) I have set the ipv6 and in my conf file of vhost I set ipv4 and ipv6 but the dns to my site point to ipv6.

When this update are execute, this files return to stock files and lost all changes, include, my ipv6 add configuration.

A big problem for me because I don't want point to ipv4, I want point to ipv6 like this lasts months...

12
E-Mail / spamassassin.service: Failed with result 'start-limit-hit'
« on: August 01, 2021, 08:46:35 PM »
Hello,
I put this post here, mail section, because although it is from spamassassin, it is the most suitable section that I see.

I have this problem, for a long time, spamassassin only lasts a few hours, the most I have managed to work has been 3 or 4 days in a row.
At the moment that, for whatever reason, it stops working (according to the line of the subject and log that I will put below) I can no longer solve it in any way, if I do a restart, it takes just a few minutes.

I have done many tests, even another vps that I have without use, I have transferred the entirety of this server, so they have exactly the same accounts, same mails ... everything is the same, even both vps are the same (same cores, same ram) except that one is intel, the other epyc (it is the one that fails).
I have even transferred this account to another vps that has 2 accounts and added the server epyc (which are 2 accounts) in total 4, and it does not fail either.

To understand us:
Server1: Epyc (two accounts, is the one that gives me the problems).
Server2: Intel: Not used, I have transferred the whole of server1 and it does not fail.
Server3: Intel: With use of 2 accounts, I have added by transfer the 2 accounts of server1, and this does not fail.

So that they always have the same mails, through rsync I transfer the mails from server1 to server2 and server3.

I have followed the spamassassin installation wiki, also in rebuild from cwp, with Amavis / Clamd and without it.
Always, sooner or later, it ends up failing.

The other difference between server1 and server2 and server3 is that server1 is with php-fpm, the other two are not.

As I comment, same cores, same ram, same s.o. all equal.

I doubt that the cause is because it is an Epyc instead of an Intel ...

This is the log (I put 3 logs).

Code: [Select]
● spamassassin.service - Spamassassin daemon
   Loaded: loaded (/usr/lib/systemd/system/spamassassin.service; enabled; vendor preset: disabled)
   Active: failed (Result: start-limit-hit) since Thu 2021-07-15 14:00:49 CEST; 6h ago
  Process: 390132 ExecStart=/usr/bin/spamd $SPAMDOPTIONS (code=exited, status=0/SUCCESS)
 Main PID: 390132 (code=exited, status=0/SUCCESS)

Jul 15 14:00:49 server.mydomain.com systemd[1]: spamassassin.service: Succeeded.
Jul 15 14:00:49 server.mydomain.com systemd[1]: spamassassin.service: Service RestartSec=100ms expired, scheduling restart.
Jul 15 14:00:49 server.mydomain.com systemd[1]: spamassassin.service: Scheduled restart job, restart counter is at 9444.
Jul 15 14:00:49 server.mydomain.com systemd[1]: Stopped Spamassassin daemon.
Jul 15 14:00:49 server.mydomain.com systemd[1]: spamassassin.service: Start request repeated too quickly.
Jul 15 14:00:49 server.mydomain.com systemd[1]: spamassassin.service: Failed with result 'start-limit-hit'.
Jul 15 14:00:49 server.mydomain.com systemd[1]: Failed to start Spamassassin daemon.




● spamassassin.service - Spamassassin daemon
   Loaded: loaded (/usr/lib/systemd/system/spamassassin.service; enabled; vendor preset: disabled)
   Active: failed (Result: start-limit-hit) since Sun 2021-08-01 09:02:50 CEST; 1min 33s ago
  Process: 3493 ExecStart=/usr/bin/spamd $SPAMDOPTIONS (code=exited, status=0/SUCCESS)
 Main PID: 3493 (code=exited, status=0/SUCCESS)

Aug 01 09:02:50 server.mydomain.com systemd[1]: spamassassin.service: Service RestartSec=100ms expired, scheduling restart.
Aug 01 09:02:50 server.mydomain.com systemd[1]: spamassassin.service: Scheduled restart job, restart counter is at 115.
Aug 01 09:02:50 server.mydomain.com systemd[1]: Stopped Spamassassin daemon.
Aug 01 09:02:50 server.mydomain.com systemd[1]: spamassassin.service: Start request repeated too quickly.
Aug 01 09:02:50 server.mydomain.com systemd[1]: spamassassin.service: Failed with result 'start-limit-hit'.
Aug 01 09:02:50 server.mydomain.com systemd[1]: Failed to start Spamassassin daemon.



● spamassassin.service - Spamassassin daemon
   Loaded: loaded (/usr/lib/systemd/system/spamassassin.service; enabled; vendor preset: disabled)
   Active: failed (Result: start-limit-hit) since Sun 2021-08-01 20:26:21 CEST; 2h 6min ago
  Process: 57453 ExecStart=/usr/bin/spamd $SPAMDOPTIONS (code=exited, status=0/SUCCESS)
 Main PID: 57453 (code=exited, status=0/SUCCESS)

Aug 01 20:26:21 server.mydomain.com systemd[1]: spamassassin.service: Service RestartSec=100ms expired, scheduling restart.
Aug 01 20:26:21 server.mydomain.com systemd[1]: spamassassin.service: Scheduled restart job, restart counter is at 5916.
Aug 01 20:26:21 server.mydomain.com systemd[1]: Stopped Spamassassin daemon.
Aug 01 20:26:21 server.mydomain.com systemd[1]: spamassassin.service: Start request repeated too quickly.
Aug 01 20:26:21 server.mydomain.com systemd[1]: spamassassin.service: Failed with result 'start-limit-hit'.
Aug 01 20:26:21 server.mydomain.com systemd[1]: Failed to start Spamassassin daemon.


If when this happens, I run this statement:
Code: [Select]
systemctl reset-failed spamassassinWorks again for a few hours, then crashes again.

Any ideas?

Thanks in advance.

13
E-Mail / What best way for enabled and configure spamassasin.
« on: June 29, 2021, 11:19:04 AM »
Hi,
I have enabled and auto start SpamAssasin like servide, but view that, I received a lot spam.
I search for the forum, I view this link: https://forum.centos-webpanel.com/index.php?topic=1746.0
But I think is some old.

I view this guide / article in the wiki cwp:
https://wiki.centos-webpanel.com/how-to-configure-spamassassin
Is from 2019, is good this guide or better made some modification about this?

Thanks in advance.

14
E-Mail / Transfer server from cPanel, problems with mail-SSL
« on: June 20, 2021, 01:07:18 AM »
I know the post is long, but for me it is important.

I have been using CWP for a few months, in principle, on test servers, by the time this day arrives.
Yesterday I started a transfer from cPanel to CWP Pro, this server is no longer testing, it is in production.
All good except the mail ...
The dns are in cloudflare, but both the hostname and the mail field are grayed out, that is, not proxy and they point directly to my VPS.
I create A register with the name "mail" and the ip of my VPS.
In MX Record I indicate: mail.mydomain.com
I ping mail.mydomain.com and it returns the ip of my VPS.
I use Thunderbird, I open it and .... it does not connect, no error but it stays connecting all the time ....
I check SSL, despite enabling LetsTry in mail service, it keeps crashing.
If I try to send an email it tells me that the self-signed server is invalid and shows me the CWP ...
Through the CWP panel I make a change of hostname, I indicate exactly the same as before.
Everything remains the same...
I want to change my mail server in Thunderbird from mail.mydomain.com to server.mydomain.com (which is the hostname), voila, then it works !!
Return to mail.mydomain.com ... stops working ...

The strange thing about all this is that, in cPanel it works, I just change the ip in the cloudflare dns records and it works perfectly through mail.mydomain.com.
(Right now I have the two VPS's, one with cPanel the other with CWP Pro).

The answer would be: Leave the hostname configured.

But no, I need it to work with mail.mydomain.com, I manage the VPS, the web is not mine, and the owners of the web need it to work this way.

Apart from that, I do not understand where the problem is, the SSL generated by Lets is only for the hostname?
I have activated the mail in SSL Admin services and it keeps failing.

Where is the problem? I'm starting to go crazy ... and I need to fix it relatively quickly or else you'll have to follow that site in cPanel ...

The fact is that, in one of the test VPS with CWP if I tried this and if I remember correctly, it worked.

I have read some threads, confirm me if I am not mistaken, CWP does not allow it? Doesn't allow SSL with mail.mydomain.com, only with the hostname?

Thanks and regards.

15
Installation / Restore cPanel account / transfer mails
« on: June 14, 2021, 06:27:32 PM »
Hello,
At the moment, I have 4 servers with CWP and I am going to move a client from a cPanel to CWP.
I have performed the restoration of the other cPanel accounts and I saw that it was better not to select the database and thus everything else was restored well (then I restored the database manually) since the database was large.

Well, this account of a client of mine, their email accounts occupy ... I estimate that about 75 gigabytes in total, an outrage.

And here my question, would it be possible to restore cPanel account, excluding email accounts, then create them by hand, and with rsync transfer all emails from the server with cpanel to the new one with CWP?

Thanks in advance.

Pages: [1] 2