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

Pages: [1] 2 3
CentOS-WebPanel GUI / Re: Getting Module Error
« on: May 18, 2022, 06:06:24 AM »
Finally, I have found how to fix it.
If you have the same issue, just go to CWP Admin -> User Account -> Features, Themes, Language.
Seet at Feature Manager's tab. if you have your own package, just click on it, then you can show the enable module below it. Just check any module you need to show at your user.

CentOS-WebPanel GUI / Getting Module Error
« on: May 18, 2022, 04:39:47 AM »
One of my CWP server is very strange. in the CWP user there is no menu for email forwarder, Email Filters, and Email Importers.
So, I try to access the direct page like this:

Code: [Select]
https://hostname:2083/cwp_11111/[user_cwp]/?module=forwarders_emailAnd it gave: You are not authorized to use this module (forwarders_email)- Contact Server Admin

IT also happens with email filter and email importer.
How to fix it and enable those module for CWP user? I cant find it at CWPPro Admin Panel.


E-Mail / Email Forwarder's menu disappear from CWP user panel
« on: April 18, 2022, 04:23:02 AM »
Today, I logged in to user panel to find Email forwarder. but I cant find it.
The menus under Email Account are just Email Accounts, AutoResponder, Roundcube Wemail, and Email Routing.

How to fix it so Email Alias/Forwarder is shown at CWP user panel?


Postfix / Re: How to empty the spool email?
« on: February 17, 2022, 02:08:48 AM »
Ok, thanks for all for your information.

Postfix / How to empty the spool email?
« on: February 16, 2022, 04:01:23 AM »
In Cpanel I use bash script as follows:

Code: [Select]

/bin/rm -rf /var/spool/exim/input/
/bin/rm -rf /var/spool/exim/msglog/
/etc/rc.d/init.d/exim restart

It is used to clear the spool email then restart the exim.
But in CWP I cant find the same folder. How to do that in CWP as well as restart the exim?

I would suggest picking one, and looking at the man pages for that specific tool.  If you find a problem, you will have to investigate using other tools to find out what the real problem is. 

However, if you have managed help, let them sort it out.
Ok, thanks for your advise.
Since yesterday, my CWP keep sending alert like this: "monit alert -- Does not exist php-fpm73", then 5 minutes later, it send "monit alert -- Exist php-fpm73".
It happened every one hour. Whats wrong with that? Load server is fine. I have three PHP-FPM, and it has the same alert at the same time.
What should I check?


Do you have the suggested tool among those five tools?
And which part I have to see for determining wheter the hard drive is good or not?


Dear rcschaff,

Thanks. But how do I check the Inode? And is there anyway to check if the hard drive is not good? Sorry, I'm not too expert in Linux.
I have contacted contabo support too. Unfortunately, their support is very slow. The support is not 24/7, but working like normal working hour. So I have to wait 1 day because we have different time zone.

Dear rcschaff,

Thanks for your explanation. At my "top" command there is no high process. But it suddenly get higher and higher then it down. I have the CSF log when it get more than 10% load. But nothing CPU and or Memory consume high resources. Only amavis consume 16% of memory, but it is ok. I have 8Gb Memory. That is why I really confuse.
When it started get higher more than 5%, I run this command to show the highest cpu and memory usage:

Code: [Select]
ps -eo user,pid,ppid,cmd,%mem,%cpu --sort=-%mem | head
But from the result there is nothing. CPU load just average 0.xx% and Memory too, just amavis consume 16%, but I'm sure it wont cause server down.
Ater that, the load get higher and higher so quickly, and vps down. I can access the vps through VNC and I can see it did not down, because the uptime still continuing.

Is it possible CSF Firewall cause high load without able to be monitored?

I use vps KVM from May be you or someone else know about this company.

systemctl start | stop | restart <Servicename>

Apache  "  systemctl restart httpd   "
Nginx   " systemctl restart nginx   "
PHP-FPM   systemctl restart php-fpm71
               systemctl restart php-fpm72  ...  ETC for each version you have installed
Thanks for your help.
But I still wonder, why did my vps down while there is no high activity inside the vps. There is no high traffic site too. But it loads high until getting down. Is there anything I need to know beside restarting the service? I use VPS KVM. Is it possible that it is caused by another vps inside one machine with mine?


I have tried to find help at google, but I cant find it.
My vps often down without clearly reason. It suddenly got load more than 10%, and then it got down. I dont see any unusual activity inside my vps.
I have made bash script to restart apache when the load get higher. But it didnt work.
So, please tell me how to restart the service for Mysql, Apache, Nginx, PHP-FPM from shell. And how to kill all PHP-cgi and PHP-FPM process from shell.


PHP Selector / Re: Problem when swich from PHP-CGI to PHP-FPM
« on: October 27, 2021, 02:13:16 AM »
After the last update, I also rebuilt Control Web Panel Settings and Setup default Web Servers, after which a domain that had this problem worked again.
What do you mean by rebuilding CWP Setting?
"Setup default Web Servers", do you mean running to rebuild apache only or apache + nginx?


PHP Selector / Re: where is php-fpm stored for a domain?
« on: October 26, 2021, 01:40:41 AM »
the easiest is to check webservers vhost conf apache/nginx if nothing is there related to php-fpm then it's php-cgi meaning default from switcher if not custom-defined in the .htaccess
Do you mean at this location for nginx /etc/nginx/conf.d/vhosts/[domain_name].conf?

PHP Selector / Re: Problem when swich from PHP-CGI to PHP-FPM
« on: October 26, 2021, 01:36:02 AM »
I have done all. I ensure the FPM service was started as well as using monit to monitor it. And at monit it said OK, there is no problem.
But when accessing the website, it gave erro 503: Service Unavailable. At error log, it is written: "AH01079: failed to make connection to backend: httpd-UDS".
I find at google there are many people face the same issue with CWPPro, and there is no exact solution for that.

PHP Selector / Problem when swich from PHP-CGI to PHP-FPM
« on: October 24, 2021, 08:58:46 AM »
At first, I just use PHP-CGI with selection: php 7.3, php 7.4, and php 8.0
Then, I want to add PHP-FPM too, because I read PHP-FPM can run faster than PHP-CGI. So I enable PHP-FPM for php 7.4 and php 8.0
I tried to one of my site. I change the PHP version from PHP 7.4 (CGI) to PHP 7.4 (FPM), but when opening my site, it gave error 503: Service Unavailable. At error log, it is written: "AH01079: failed to make connection to backend: httpd-UDS"

I changed back to PHP 7.4 (CGI), but it didnt work. It gave the same error. Changing to PHP 8.0 (CGI) and PHP 8.0 (FPM) also gave the same error.
Then only work selector was using PHP 7.3 (CGI).

I tried to find help at google. and I read many people face the same issue with CWP.

My question, is PHP-FPM conflict with PHP-CGI if both of them have the same version? Because it gave the same error for PHP 7.4 and PHP 8.0 which have CGI and FPM option. But it worked with PHP 7.3 because there is no PHP 7.3 FPM installed.
I have tried to restart apache and php-fpm service. but no luck.

How to fix it?

Pages: [1] 2 3