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

Pages: [1]
1
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.

Thanks.

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

Thanks

3
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/sh

/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?
Thanks.

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

Thanks.

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

6
PHP Selector / where is php-fpm stored for a domain?
« on: October 24, 2021, 08:49:19 AM »
I have tried to find at google, where actually CWP stores which PHP-FPM choosen by customer for his domain.
If we use PHP-CGI, we simply change it at .htaccess like this:
Code: [Select]
AddHandler application/x-httpd-php73 .phpBut when we choose for example PHP 7.4 (FPM), it is not written in .htaccess.So, where does CWP store it? I want to check my customer uses which PHP-FPM version quickly without use phpinfo(); at his site.

7
CentOS 7 Problems / You need a CWPPRO license to use this module
« on: August 02, 2021, 07:07:19 AM »
I have used CWP for years. Today I face the strange think. I have bought CWP Pro license. When I go to admin panel, it is written CWP7Pro. But when I login to user panel to change the PHP Selector, it is unable. it show: You need a CWPPRO license to use this module
I have tried to run sh /scripts/update_cwp and /etc/cron.daily/cwp, but the issue still happen.

How can it happen? Admin Panel said: CWP7Pro, but user panel said: Not Pro?

8
FTP / Error when enable jailkit to a user
« on: June 15, 2021, 06:20:07 AM »
I tried to use jailkit for a user in CWP.
It create directory /home/jail/[user]/home/[user]
But after waiting for minutes, the page at CWP admin said: Error enabling jailkit.
I then switch to SFTP, and no problem.
But the problem is that I cant remove /home/jail/[user]
If I removed it, it automatically remove /home/[user] too. It looks like /home/[user] is symlinked to /home/jail[user]
If I remooved file inside /home/jail/[user], it removed the file inside /home/[user] too.

I tried to remove that symlink. But  I cant find it.
Even, I have uninstall jailkit, but still unable to remove /home/jail/ and the symlink still run.

How to fix it? where is the symlink configuration store?
Thanks.

9
FTP / Enabling FTPs or FPTes
« on: June 15, 2021, 02:51:05 AM »
I dont know which one is better. FTPs or FTPes. But as I know, it need TLS for the FTP.
I tried to follow the instruction at http://wiki.centos-webpanel.com/how-to-install-tls-for-ftp
It said it can use sh /scripts/install_pure-ftpd_tls if using Centos 7 and CWP version 0.9.8.757+. I used Centos 7 and latest CWP Pro version.
I run that sh command, it said it was installed successfully. But then what need to do? how can I know the FTPs and FTPes can be used?

I read the instruction above, it said to check:
/etc/pki/tls/private/hostname.key
/etc/pki/tls/certs/hostname.crt

I have /etc/pki/tls/certs/hostname.key at my vps, but I didnt see /etc/pki/tls/certs/hostname.crt.

So, how exactly enabling FTPs and FTPes?

Thanks.

10
FTP / How to disable port 21 for plain FTP?
« on: June 13, 2021, 08:26:56 AM »
I have removed PORT 21 from CSF at TCP_IN, TCP_OUT, TCP6_IN, and TCP6_OUT.
I have restarted CSF and LFD.
I have restarted pure ftpd service.

but when I tried to login to FTP with port 21, I can login successfully.
So, how can I totally disable PORT 21? I just want to use SFTP for security reason.

Thanks.

11
Suggestions / Providing ImunifyAV Free and or Imunify360
« on: May 04, 2021, 03:04:30 AM »
It is better is CWP provide ImunifyAV free and or Imunify360 to replace maldet scan. I have tried to install imunifyAV free but it said the panel is not compatbile.
it is good for malware detection.

By improving great feature, CWP may be able to increase the price of CWPPro

Thanks.

12
Suggestions / Providing Better full backup
« on: May 04, 2021, 02:54:39 AM »
I think it will be great if CWP has feature to full backup for all home user, mysql, and everything just like cpanel does. Then it can be restored to another CWP easily.
at this time CWP provide separate backup. Even when user try to backup from user panel, it does not show any progress or finishing file.
Customer must dump sql one by one including mail data, then create again mysql user password at the new server. It takes too long if we have many customers.

And it is better if customer's mail is moved to /home/[user], not being separated at /var/vmail/

Thanks.

13
CentOS 7 Problems / PHPDefender permission denied
« on: May 03, 2021, 03:56:26 AM »
CWPPro has new feature at Security Center section, namely PHP Defender.
I have enabled it to prevent hacking attempt through PHP script.
But I got the error message: Could not open configuration file /usr/local/cwp/.conf/phpdefender/rules/cwp_php_defender_interm.rules : Permission denied
the file exist with chmod 640. Trying to change to chmod 644, but give the same error.
I use PHP selector PHP 7.3, PHP 7.4 and PHP 8.0. All of them are PHP-CGI, not PHP-FPM.

How to fix it?
Thanks.

14
I have setup CWPPro from the begining. no modified at all.
At CWP Setting -> Edit Setting, I have checked "Forward server system email"
I can receive email from outside to my email address: info@domain.com
But, all emails from server such as Anacron, RKHunter, CSF informations etc are queue in. It tries to send to info@domain.com, but fail, and bounce back as mailer-daemon with error "mail transport unavailable".
When I click on detail button next to my email address, it said "network unreachable". My email uses google apps and has no problem.

How to fix it?
Thanks.

15
E-Mail / Prevent bounce back of PHP mail to server
« on: May 02, 2021, 09:29:10 AM »
I have CWPPro with the latest update.
I can see at /var/spool/mail there are many email bounce because of PHP mail script. If PHP mail send the email and that email address does not exist, it will bounce back to usercwp@hostname, for example: gtk08@abc.domain.com, where abc.domain.com is the server's hostname.

How to prevent it and send that bounce email to the email of account's owner? When creating a new account in CWP, we put the customer email address. So, how to forward that bounce email to onwer's email?

Thanks.

Pages: [1]