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

2
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

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

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

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

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

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

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

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

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

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

12
E-Mail / Problem mails from server / postfix.
« on: June 05, 2021, 11:38:38 PM »
For a few days I have detected that my server does not send me emails from root (ssh access, firewall warning) ... after reviewing several things I find that, if I execute:
postconf -m
Mysql does not appear (in other servers that I have it does appear, I see this after executing tail -n 30 / var / log / maillog and looking for info online).
So I install postfix-mysql and after restarting postfix, it works again but .... now I have a different version of postfix than in the other servers that I have.
If I run the cwp update script:
sh / usr / local / cwpsrv / htdocs / resources / scripts / update_cwp
I get this error:
Redirecting to / bin / systemctl restart cwpsrv.service
Redirecting to / bin / systemctl restart httpd.service
Redirecting to / bin / systemctl reload httpd.service
curl: (22) The requested URL returned error: 404 Not Found
error: skipping http://repo.centos-webpanel.com/repo/8/x86_64/postfix-3.4.14-1.el8.x86_64.rpm - transfer failed
Redirecting to / bin / systemctl reload httpd.service

On the other servers, of course, I don't have that error.

If I run yum remove postfix-mysql on the other servers it tells me that it is not installed, but in this one if I uninstall it, after that, I have the mail problems again.

It is as if it had been installed through a different channel than the others (channel other than cwp).

All my servers are the same, same characteristics, same centos version, they are identical in everything, and I have not done anything about it.

Thanks in advance.

13
Hi,

After install cwp, always, when I go to access to phpmyadmin from cwp, automatic made login without need insert password root.

A few hours, cwp was updated phpmyadmin to 5.0.4, after this update, after 1440 seconds need insert password root when access to phpmyadmin.

After search info, are a file we can edit for this, but if...after install cwp I don't was need login every time, now I think its possible not for this config...

Thanks.

14
Backup / How change the time of backups?
« on: December 16, 2020, 11:29:47 PM »
Hello.

I search info about this, the backups (old module, not new beta backup) its executed at the same time.

I view this:
https://forum.centos-webpanel.com/index.php?topic=6840.0
Quote
crons jobs for backup are here :
/etc/cron.daily/cwp

you can modify according to your needs.
...
example:
0 3 * * * /usr/local/cwp/php71/bin/php -d max_execution_time=1000000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php
0 3 * * * /usr/local/cwp/php71/bin/php -d max_execution_time=1000000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron_backup.php
If I edit the file /etc/cron.daily/cwp and add at the start line like above, not execute at the time and received, in the anacron info, a error in the lines of this file.

Any suggestion?

Thanks and regards!

15
Updates / Anacron / system update / notifications disabled modules.
« on: December 16, 2020, 11:26:40 PM »
Hello,
I asked the question in another subforum and I think that it was the wrong subforum and my question was wrongly formulated.

Anacron is executed every day at the same time, when it is executed, we receive a notification email, and here I have a couple of doubts:

Is it possible to change this schedule? It just takes when there is more influx of people in one of the sites.

The other, and more important for me, performs a check / notification of updates and not enabled modules (in my case, mod_security for example), every day I have to close those windows in the CWP GUI, it is possible to avoid this check of modules not activated or not appearing every day? I am aware that they are not enabled and for now, I want to leave it that way.

Thanks in advance and best regards!

Pages: [1] 2