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 4
1
Nginx / Re: How to change apache LimitRequestFieldSize?
« on: March 20, 2024, 04:45:35 AM »
I have tried to set it at domain's virtualhost by adding it manually at:

/usr/local/apache/conf.d/vhosts/[domain].conf

Then I edit the part like this:

Code: [Select]
<VirtualHost xxxxxx>
ServerName xxxxx
LimitRequestFieldSize 16384
</VirtualHost>

And restart apache and nginx.
So far, there is no mor problem. So I'm not sure, is ti true about the LimitRequestFieldSize  or cookies. I am just afraid Dos Attack. I read that increasing LimitRequestFieldSize  is very dangerous because of Dos Attack.

2
Nginx / Re: How to change apache LimitRequestFieldSize?
« on: March 19, 2024, 02:04:12 AM »
Hi,

I cannot find that variable inside httpd.conf and also vhost of a domain.
So, should I add it manually in httpd.conf?

By the way, yes, I have read at the stackoverflow that it can be about cookies problem, but I want to compare it by changingLimitRequestFieldSize.

Thanks.

3
Nginx / Re: How to change apache LimitRequestFieldSize?
« on: March 19, 2024, 01:36:01 AM »
Could you please advise of the following:

What distro are you trying to install CWP onto? / What distro are you are you running CWP on?

CWP Free or CWPpro?

Is this a PHP script?

I use Centos 7, with RAM 8Gb.
I use CWP Pro.
The script is PHP Laravel. the script was bought from codecanyon. the script is used for the payroll system and daily attendance of the staff.

Thanks.

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

5
How to / Re: Running PHP cron under user fail
« on: February 08, 2024, 02:43:30 AM »
The cronjob is under cwp's user. But the process has never run. No emails come to the inbox as it should be.
So, I tried to login to SSH as root and run that cronjob, and it gave the error permission denied.
If I run it with sudo, it works, and the email goes to the inbox.

That is why I want to know, is PHP cron job just allowed to run under root and not user?

Thanks.

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

7
SSL / Re: Subdomain has been deleted but SSL keep trying to renew
« on: June 22, 2023, 04:12:45 AM »
No, it is not listed under the SSL Certificate, too.
How to remove it manually from the Lets Encrypt config file? where is the file location?

Thanks.

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

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

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

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

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

13
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

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

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

Pages: [1] 2 3 4