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

Pages: [1] 2 3 ... 6
Updates / Re: After the last Yum updates user can't login to cpanel
« on: October 27, 2023, 08:47:58 PM »

Sure it comes from the updates? It is not a general problem, as I can still login to the user Panels (tested from outside my home network)

Do you make backups from your servers? Are you able to restore a point before the update or make a backup of the other server, then make the updates and try if it is the same problem?

Hello Painkiller88. Yes, that was for sure from the latest updates as I can easily compare it with the other servers. 
I finally managed to fix the issue by restarting the containers.
That was the last thing I usually tried as I needed to keep my servers up.
Thank you for your reply and feedback as It certainly helped me a lot and will save some time from other administrators.  :)

Updates / Re: Aftera the last Yum updates user can't login to cpanel
« on: October 27, 2023, 03:35:13 PM »

To the server that I have not run the following updates cpanel still works normally for users.

Code: [Select]
Package Name Version Repository Action
bind-export-libs.x86_64 32:9.11.4-26.P2.el7_9.15 updates Update
bind-libs-lite.x86_64 32:9.11.4-26.P2.el7_9.15 updates Update
bind-libs.x86_64 32:9.11.4-26.P2.el7_9.15 updates Update
bind-license.noarch 32:9.11.4-26.P2.el7_9.15 updates Update
bind-utils.x86_64 32:9.11.4-26.P2.el7_9.15 updates Update
bind.x86_64 32:9.11.4-26.P2.el7_9.15 updates Update
ca-certificates.noarch 2023.2.60_v7.0.306-72.el7_9 updates Update
kernel-headers.x86_64 3.10.0-1160.102.1.el7 updates Update
kernel-tools-libs.x86_64 3.10.0-1160.102.1.el7 updates Update
kernel-tools.x86_64 3.10.0-1160.102.1.el7 updates Update
kernel.x86_64 3.10.0-1160.102.1.el7 updates Update
libssh2.x86_64 1.8.0-4.el7_9.1 updates Update
nspr.x86_64 4.35.0-1.el7_9 updates Update
nss-softokn-freebl.x86_64 3.90.0-6.el7_9 updates Update
nss-softokn.x86_64 3.90.0-6.el7_9 updates Update
nss-sysinit.x86_64 3.90.0-2.el7_9 updates Update
nss-tools.x86_64 3.90.0-2.el7_9 updates Update
nss-util.x86_64 3.90.0-1.el7_9 updates Update
nss.x86_64 3.90.0-2.el7_9 updates Update
python-perf.x86_64 3.10.0-1160.102.1.el7 updates Update

Updates / Re: Aftera the last Yum updates user can't login to cpanel
« on: October 27, 2023, 03:32:24 PM »
Already tested the following solution but the problem remains.

Code: [Select]
cd /scripts
sh generate_hostname_ssl
sh cwpsrv_rebuild_user_conf

Updates / After the last Yum updates user can't login to cpanel
« on: October 27, 2023, 03:30:04 PM »
After the latest CWP updates none of my users can login to cpanel.
The error is the same "Failed".

Is there a fast fix for the problem?
Thank you in advance.

CentOS Configuration / Re: How to configure SpamAssassin
« on: May 28, 2023, 10:04:38 AM »

Thank you so much for this easy guide :) One thing is that the AmaVis service is disabled in my CWP instance by default, does this configuration need that to be enabled? Do I really need ClamAV & AmaVis side by side?


Hello  :)
AmaVis is a very important tool to the whole implementation as it helps to block spam,  viruses and malware. You can find more information to the following links to understand why it is critical to have it installed

CentOS Configuration / Re: How to configure SpamAssassin
« on: May 21, 2023, 07:25:54 PM »
I can't find this line in the file.
Would you suggest I add it to the bottom?

Code: [Select]
spamassassin      unix -      n      n      -      -      pipe
  user=nobody argv=/usr/bin/spamc -f -e
  /usr/sbin/sendmail -oi -f ${sender} ${recipient}

That is exactly what I suggest.  ;). You should add it to the bottom of the file after the SPF Check.

Updates / Re: Bugs at
« on: May 20, 2023, 02:15:24 PM »
One more very important thing to check is the following parameter 

Code: [Select]
Quota Type:
It should be empty if your partition is ext4
or it should be 

Code: [Select]
Quota Type:xfs
if your partition is xfs

In case you messed up with that the use putty or filezzila  and edit the following file

Code: [Select]
Lastly run the following command to have your server rock again :)

Code: [Select]
/scripts/cwp_api account update_diskquota_all

Hope that will save the day to anyone having such problems  8)

Updates / Re: Bugs at
« on: May 20, 2023, 12:35:29 PM »
For the user remove error seems like a server configuration as to the other servers I can remove and add users normally.

1. From putty use the following command
Code: [Select]
cd /home
2. Then remove username folder
Code: [Select]
rm -rf username 

3. Delete the user from CentOS Web Panel (CWP) so that DNS records and other data can be removed.

Reason why that happened and solution.

Checking the quota to this server I noticed that I had no grace time so I used the following command to set grace time to 7days

Code: [Select]
edquota -t

And now everything is back to normal.  :)

Updates / Re: Bugs at
« on: May 20, 2023, 11:22:21 AM »
After you create any demo account to see the above issues, try to delete it to see the following error

Code: [Select]
User Account Removal FAILED! User account folder still exists!

I am running the CWPRo and never had problem with updates but those bugs are critical.  :-\

Updates / Bugs at
« on: May 20, 2023, 11:19:02 AM »
After the latest update, even if I add a new user, the account is not usable.
The FTP created and the cpanel is not working for new users.
It is very easy to recreate the issue. Create a and try to connect with ftp or use the cpanel. (no need to register domain just use the server name for filezilla.)
If I try to delete the same user then I get an error account was not able to delete.
Also clamscan is getting more cpu and ram consumption as it worls always to 100%. That is not a new issue but has to do with  previous updates.

Thank you in advance.

CentOS 7 Problems / Re: Disk Quota
« on: November 04, 2022, 07:04:08 AM »

have you check the reseller part ?

Hello PakPos,
Could you please give me a scenario for your case so that i can test it for you creating the same package and the needed quota?

CentOS 7 Problems / Re: Disk Quota
« on: November 03, 2022, 06:23:10 PM »
After testing to a non production VPN I managed to test everything and really the solution for the email disk quota and the packages works as stated to the wiki.
The last mail i got was the following :)

<>: host[private/dovecot-lmtp] said:
    552 5.2.2 <> Not enough disk quota (in reply to end of
    DATA command)

Thank you guys.

CentOS 7 Problems / Re: Disk Quota
« on: November 03, 2022, 04:15:28 PM »
if you have emails on the same partition as /home then they use the same quota and users can't get over the quota

I have moved all the mails from the /var/vmail directory to /home/vmail according this wiki --> but again the user can send and receive mail normally.

Should the mailboxes for every account set to unlimited to follow the rules or have another configuration?

I am struggling to find a solution to this issue as at the same wiki there is the following note

MAIL DISK QUOTA (postfix vmail)
Please note that if you want quota to work for mail then it needs to be on the same partition as user home files.

Is that really works or this is just a false statement and maybe a future feature?

CentOS 7 Problems / Re: cpanel is not working after CWP migration
« on: November 01, 2022, 02:28:45 PM »
The issue is the same as this one -->

I tested the script provided by rcschaff here -->

After some hours searching and testing and reviewing the logs the solution was much much easier and provide it here to save some people from headaches  :)

If after an upgrade or migration you are unable to use user panel and getting the HTTP 500 error then follow the next steps to fix the issue.
1. Login to your panel
2. Select User Accounts --> Features,Themes,Languages
3. Select everything to the tab "Themes"
4. Hit the button "Save Theme Default"
5. Change if again to your theme or just leave it as it is
6. Enjoy the magic :) and do not forget to leave a thumb up as no script was used finally!

New Modules / Re: [SCRIPT] fix_500
« on: November 01, 2022, 02:12:34 PM »
Tested the above script as i am unable to use cpanel.domain and get 500 error page, but no luck.
The error from CWP logs is

Code: [Select]
FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Twig_Error_Loader: The "/usr/local/cwpsrv/var/services/users/cwp_theme/undefined" directory does not exist ("/usr/local/cwpsrv/var/services/users/cwp_theme/undefined"). in /usr/local/cwpsrv/var/services/twig/lib/Twig/Loader/Filesystem.php:101
Stack trace:

Pages: [1] 2 3 ... 6