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.
Pages: [1] 2
1
Nginx / How to change apache LimitRequestFieldSize?
« on: March 14, 2024, 03:41:24 PM »
Hi,
One of my client use Laravel for his web for the payday and attendance system. When it is accessed for many people, the server return with the response:
Bad Request Your browser sent a request that this server could not understand. Size of a request header field exceeds server limit.
I tried to find how to solve the issue, and I read at stackoverflow it is about LimitRequestFieldSize which has default 8140.
I have tried to find at httpd.conf, but I cannot find that parameter.
So, how do I change that value to prevent Bad Request?
Thanks.
One of my client use Laravel for his web for the payday and attendance system. When it is accessed for many people, the server return with the response:
Bad Request Your browser sent a request that this server could not understand. Size of a request header field exceeds server limit.
I tried to find how to solve the issue, and I read at stackoverflow it is about LimitRequestFieldSize which has default 8140.
I have tried to find at httpd.conf, but I cannot find that parameter.
So, how do I change that value to prevent Bad Request?
Thanks.
2
How to / Running PHP cron under user fail
« on: February 08, 2024, 02:25:06 AM »
I tried to run php cron job with the following command:
But it returned with error:
-bash: /usr/local/bin/php: Operation not permitted
Trying to run with specified PHP version like:
also give error.
If I run the cron as root:
It works perfectly.
So, how can a user run PHP cron in CWP? and How to run PHP cron with specified PHP version if we have multiple PHP version installed?
Thanks.
Code: [Select]
/usr/local/bin/php /home/xxxxxx/src/file.php
But it returned with error:
-bash: /usr/local/bin/php: Operation not permitted
Trying to run with specified PHP version like:
Code: [Select]
/opt/alt/php82/usr/php
also give error.
If I run the cron as root:
Code: [Select]
sudo /usr/local/bin/php /home/xxxxxx/src/file.php
It works perfectly.
So, how can a user run PHP cron in CWP? and How to run PHP cron with specified PHP version if we have multiple PHP version installed?
Thanks.
3
SSL / Subdomain has been deleted but SSL keep trying to renew
« on: June 21, 2023, 02:27:05 AM »
I have strange condition with CWP. I have deleted the subomdin of abc.domainname.com
I have checked that there is no abc.domainname.com under /var/named/, /home/, subdomain, domain, and accounts.
But everyday I got email alert like this:
[Wed Jun 21 00:10:37 +08 2023] abc.domainname.com:Verify error:DNS problem: NXDOMAIN looking up A for abc.domainname.com - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for abc.domainname.com - check that a DNS record exists for this domain
[Wed Jun 21 00:10:37 +08 2023] Please check log file for more details: /root/.acme.sh/cwp_certs/acme.sh.log
[Wed Jun 21 00:10:38 +08 2023] Error renew abc.domainname.com_ecc.
How can I solve this, so it does not try to renew the SSL anymore?
Thanks.
I have checked that there is no abc.domainname.com under /var/named/, /home/, subdomain, domain, and accounts.
But everyday I got email alert like this:
[Wed Jun 21 00:10:37 +08 2023] abc.domainname.com:Verify error:DNS problem: NXDOMAIN looking up A for abc.domainname.com - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for abc.domainname.com - check that a DNS record exists for this domain
[Wed Jun 21 00:10:37 +08 2023] Please check log file for more details: /root/.acme.sh/cwp_certs/acme.sh.log
[Wed Jun 21 00:10:38 +08 2023] Error renew abc.domainname.com_ecc.
How can I solve this, so it does not try to renew the SSL anymore?
Thanks.
4
DKIM / How to add DKIM Only for the hostname
« on: October 19, 2022, 02:18:55 AM »
I just noticed that my hostname does not have DKIM value.
I have tried to find in DKIM Manager, but the hostname is not listed there at the dropdown option. But it is shown at the listing of /var/named.
I just want to add DKIM for the hostname only, since all domains have already had the DKIM and SPF.
I read at this forum the simplest way is rebuild the mail server. But I'm not sure to do that. I am just afraid that running that feature will overwritten all of SPF and DKIM for whole domains. I'm afraid because some domains have been set to use third party SMTP that need us to insert their SPF and DKIM into our domain's named record for the verification purpose.
So, what is the best way to add DKIM for the hostname WITHOUT chaning the other domain's DKIM value?
Thanks.
I have tried to find in DKIM Manager, but the hostname is not listed there at the dropdown option. But it is shown at the listing of /var/named.
I just want to add DKIM for the hostname only, since all domains have already had the DKIM and SPF.
I read at this forum the simplest way is rebuild the mail server. But I'm not sure to do that. I am just afraid that running that feature will overwritten all of SPF and DKIM for whole domains. I'm afraid because some domains have been set to use third party SMTP that need us to insert their SPF and DKIM into our domain's named record for the verification purpose.
So, what is the best way to add DKIM for the hostname WITHOUT chaning the other domain's DKIM value?
Thanks.
5
Suggestions / Bitdefender says all of CWP panel as suspicious page
« on: August 22, 2022, 04:30:15 AM »
HI,
Today, suddenly all of my CWP page are marked as suspicious page by Bitdefender. Even the new installation server is also marked as suspicious.
I have complaint to Bitdefender. It happens both in login page and after loged in.
The site under the server is not marked as suspicious. but when I access to the CWP port, it will show the notification that the page is suspicious. For example: hostname:2031 and or hostname:2083.
May be Centos Web Panel need to send the email to Bitdefender because the panel is marked as suspicios.
Thanks.
Today, suddenly all of my CWP page are marked as suspicious page by Bitdefender. Even the new installation server is also marked as suspicious.
I have complaint to Bitdefender. It happens both in login page and after loged in.
The site under the server is not marked as suspicious. but when I access to the CWP port, it will show the notification that the page is suspicious. For example: hostname:2031 and or hostname:2083.
May be Centos Web Panel need to send the email to Bitdefender because the panel is marked as suspicios.
Thanks.
6
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:
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.
So, I try to access the direct page like this:
Code: [Select]
https://hostname:2083/cwp_11111/[user_cwp]/?module=forwarders_email
And it gave: You are not authorized to use this module (forwarders_email)- Contact Server AdminIT 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.
7
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
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
8
Postfix / How to empty the spool email?
« on: February 16, 2022, 04:01:23 AM »
In Cpanel I use bash script as follows:
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.
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.
9
Nginx / How to start, stop, and restart Apache and Nginx Service from shell?
« on: February 14, 2022, 02:58:17 AM »
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.
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.
10
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?
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?
11
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:
If we use PHP-CGI, we simply change it at .htaccess like this:
Code: [Select]
AddHandler application/x-httpd-php73 .php
But 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.12
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?
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?
13
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.
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.
14
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.
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.
15
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.
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.
Pages: [1] 2