Author Topic: URGENT: Giving 403 Error for new domains, also won't add long domains  (Read 19803 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
I already posted a thread about it not adding some longer domains, saying that they already exist on the server.
However, now, when I do add a domain (that is short enough to work) I'm getting a 403 error. I've tried running the fix permissions, but to no avail. This is really causing a problem for me.

I get the same 403 error when manually adding to vhosts, as well.

Offline
*
Re: URGENT: Giving 403 Error for new domains, also won't add long domains
« Reply #1 on: February 19, 2015, 01:52:08 AM »
So, I've set the user and group to the user - but that has not fixed the issue.
It does seem to possibly be some kind of perm issue though. Simply copying an existing, working site root and renaming it to the new vhost's siteroot does in fact work.

What could this be?

Offline
*
Re: URGENT: Giving 403 Error for new domains, also won't add long domains
« Reply #2 on: February 24, 2015, 02:31:30 AM »
I have the same problem, when I add new domain, the forbidden error is showing, I spend 2 days to solve that problem and then I give up. This author must overhaul this panel.

Offline
*
Re: URGENT: Giving 403 Error for new domains, also won't add long domains
« Reply #3 on: February 27, 2015, 03:40:17 PM »
Bryan, have you tried running the 'fix permissions' as well?

I'm having this problem on another user as well.

The only way I was able to get around it before was by copying directories within a user's directory that worked and pasting them since they kept their proper permissions and such.

It isn't as easy as setting user:group to the proper user and group, there is something more than that, and I don't know what it is. It's a very big problem at this point.

Offline
*
Re: URGENT: Giving 403 Error for new domains, also won't add long domains
« Reply #4 on: March 10, 2015, 01:09:20 PM »
you need to check on apache error_log for all issues with apache!
It would be the best to check on that with your hosting sys admin.
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: URGENT: Giving 403 Error for new domains, also won't add long domains
« Reply #5 on: December 23, 2015, 01:35:04 PM »
I have same problem
Contents of File: /var/log/httpd/error_log

Quote
[Tue Dec 22 17:30:04 2015] [notice] SELinux policy enabled; httpd running as context unconfined_u:system_r:httpd_t:s0
[Tue Dec 22 17:30:04 2015] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Dec 22 17:30:04 2015] [notice] Digest: generating secret for digest authentication ...
[Tue Dec 22 17:30:04 2015] [notice] Digest: done
[Tue Dec 22 17:30:04 2015] [notice] Apache/2.2.15 (Unix) DAV/2 configured -- resuming normal operations
[Tue Dec 22 17:31:17 2015] [notice] caught SIGTERM, shutting down

this log is clear

I also have problem with default page


but, then i open  /usr/local/apache/logs/error_log
I found:
Quote
[Wed Dec 23 00:21:29 2015] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
[Wed Dec 23 00:21:30 2015] [notice] Apache/2.2.27 (Unix) mod_ssl/2.2.27 OpenSSL/1.0.1e-fips configured -- resuming normal operations
[Wed Dec 23 00:41:45 2015] [error] [client 31.43.45.168] File does not exist: /usr/local/apache/htdocs/img, referer: http://IP/
[Wed Dec 23 00:41:45 2015] [error] [client 31.43.45.168] File does not exist: /usr/local/apache/htdocs/favicon.ico, referer: http://IP/
[Wed Dec 23 00:49:16 2015] [notice] caught SIGTERM, shutting down
[Wed Dec 23 01:16:34 2015] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Wed Dec 23 01:16:34 2015] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
[Wed Dec 23 01:16:35 2015] [notice] Apache/2.2.27 (Unix) mod_ssl/2.2.27 OpenSSL/1.0.1e-fips configured -- resuming normal operations
[Wed Dec 23 02:22:18 2015] [error] [client 188.68.224.62] File does not exist: /usr/local/apache/htdocs/httptest.php
[Wed Dec 23 03:41:01 2015] [error] [client 188.68.224.62] File does not exist: /usr/local/apache/htdocs/httptest.php
[Wed Dec 23 05:35:14 2015] [error] [client 188.68.224.62] File does not exist: /usr/local/apache/htdocs/httptest.php
[Wed Dec 23 10:23:18 2015] [error] [client 188.68.224.62] File does not exist: /usr/local/apache/htdocs/httptest.php
[Wed Dec 23 10:37:30 2015] [error] [client 188.68.224.62] File does not exist: /usr/local/apache/htdocs/httptest.php
[Wed Dec 23 11:53:53 2015] [error] [client 188.68.224.62] File does not exist: /usr/local/apache/htdocs/httptest.php
[Wed Dec 23 14:22:53 2015] [crit] [client 176.98.28.103] (13)Permission denied: /home/USER/public_html/DOMEN1/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Wed Dec 23 14:22:53 2015] [crit] [client 176.98.28.103] (13)Permission denied: /home/USER/public_html/DOMEN1/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, referer: http://DOMEN1/
[Wed Dec 23 14:22:56 2015] [crit] [client 176.98.28.103] (13)Permission denied: /home/USER/public_html/DOMEN1/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Wed Dec 23 14:22:56 2015] [crit] [client 176.98.28.103] (13)Permission denied: /home/USER/public_html/DOMEN1/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, referer: http://DOMEN1/
[Wed Dec 23 14:23:05 2015] [crit] [client 176.98.28.103] (13)Permission denied: /home/USER/public_html/DOMEN2/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Wed Dec 23 14:27:13 2015] [crit] [client 176.98.28.103] (13)Permission denied: /home/USER/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable

How i can fix it?

Offline
*
Re: URGENT: Giving 403 Error for new domains, also won't add long domains
« Reply #6 on: December 23, 2015, 01:53:30 PM »
LAST LINES:
Quote
[Wed Dec 23 15:49:30 2015] [notice] caught SIGTERM, shutting down
[Wed Dec 23 15:49:31 2015] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Wed Dec 23 15:49:31 2015] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
[Wed Dec 23 15:49:31 2015] [notice] ModSecurity for Apache/2.8.0 (http://www.modsecurity.org/) configured.
[Wed Dec 23 15:49:31 2015] [notice] ModSecurity: APR compiled version="1.5.1"; loaded version="1.5.1"
[Wed Dec 23 15:49:31 2015] [notice] ModSecurity: PCRE compiled version="7.8 "; loaded version="7.8 2008-09-05"
[Wed Dec 23 15:49:31 2015] [notice] ModSecurity: LIBXML compiled version="2.7.6"
[Wed Dec 23 15:49:31 2015] [notice] Status engine is currently disabled, enable it by set SecStatusEngine to On.
[Wed Dec 23 15:49:32 2015] [notice] Apache/2.2.27 (Unix) mod_ssl/2.2.27 OpenSSL/1.0.1e-fips configured -- resuming normal operations
[Wed Dec 23 15:49:43 2015] [crit] [client 31.43.45.168] (13)Permission denied: /home/USER/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Wed Dec 23 15:49:43 2015] [crit] [client 31.43.45.168] (13)Permission denied: /home/USER/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, referer: http://DOMAIN1/
[Wed Dec 23 15:49:48 2015] [crit] [client 31.43.45.168] (13)Permission denied: /home/USER/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Wed Dec 23 15:49:48 2015] [crit] [client 31.43.45.168] (13)Permission denied: /home/USER/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, referer: http://DOMAIN1/
[Wed Dec 23 15:49:52 2015] [crit] [client 31.43.45.168] (13)Permission denied: /home/USER/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Wed Dec 23 15:49:52 2015] [crit] [client 31.43.45.168] (13)Permission denied: /home/USER/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, referer: http://DOMAIN1/
[Wed Dec 23 15:49:56 2015] [crit] [client 31.43.45.168] (13)Permission denied: /home/USER/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Wed Dec 23 15:49:59 2015] [crit] [client 31.43.45.168] (13)Permission denied: /home/USER/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable

Offline
**
Re: URGENT: Giving 403 Error for new domains, also won't add long domains
« Reply #7 on: December 28, 2015, 12:42:48 PM »
Hi
If you are using Varnish , please check that the entry is being added correctly to /etc/varnish/sites.vcl

Offline
*
Re: URGENT: Giving 403 Error for new domains, also won't add long domains
« Reply #8 on: December 30, 2019, 05:33:33 PM »
It works like a charm! just uninstall mod_security!!!!!!

Offline
*****
Re: URGENT: Giving 403 Error for new domains, also won't add long domains
« Reply #9 on: December 31, 2019, 06:36:02 AM »
Code: [Select]
Permission denied: /home/USER/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
Make sure owner and permissions for each folder /home/, /home/USER/, /home/USER/public_html/ etc, are correct.
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services