Forbidden You don't have permission to access /index.php on this server.

2 posts / 0 new
Last post
#1 Fri, 08/16/2019 - 10:41
brice_18

Forbidden You don't have permission to access /index.php on this server.

Hello,

I installed GLPI on a subdomain, the GLPI folder points to /home/domain /subdomain/public_html/glpi but when I try to access it by writing http://monip/glpi it opens this page:

Forbidden You do not have permission to access /index.php on this server.

I put all granted and allow from all almost everywhere in httpd.conf and changed the permissions to 777 but the problem is still there. Do you have a solution please? thank you it's really urgent...

My httpd.conf for this VPS

SuexecUserGroup "#500" "#500"
ServerName glpi2.mydomain.local
ServerAlias www.glpi2.mydomain.local
ServerAlias webmail.glpi2.mydomain.local
ServerAlias admin.glpi2.mydomain.local
DocumentRoot /home/mydomain/domains/glpi2.mydomain.local/public_html
ErrorLog /var/log/virtualmin/glpi2.mydomain.local_error_log
CustomLog /var/log/virtualmin/glpi2.mydomain.local_access_log combined
ScriptAlias /cgi-bin/ /home/mydomain/domains/glpi2.mydomain.local/cgi-bin/
ScriptAlias /awstats/ /home/mydomain/domains/glpi2.mydomain.local/cgi-bin/
DirectoryIndex index.html index.htm index.php index.php4 index.php5
<Directory /home/mydomain/domains/glpi2.mydomain.local/public_html>
Options Indexes
allow from all
AllowOverride None
Require all granted
AddType application/x-httpd-php .php
AddHandler fcgid-script .php
AddHandler fcgid-script .php5
AddHandler fcgid-script .php5.6
AddHandler fcgid-script .php7.0
AddHandler fcgid-script .php7.2
LoadModule php5_module   modules/mod_php55.so
FCGIWrapper /home/mydomain/domains/glpi2.mydomain.local/fcgi-bin/php5.fcgi .php
FCGIWrapper /home/mydomain/domains/glpi2.mydomain.local/fcgi-bin/php5.fcgi .php5
FCGIWrapper /home/mydomain/domains/glpi2.mydomain.local/fcgi-bin/php5.6.fcgi .php5.6
FCGIWrapper /home/mydomain/domains/glpi2.mydomain.local/fcgi-bin/php7.0.fcgi .php7.0
FCGIWrapper /home/mydomain/domains/glpi2.mydomain.local/fcgi-bin/php7.2.fcgi .php7.2
</Directory>
<Directory /home/mydomain/domains/glpi2.mydomain.local/cgi-bin>
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
</Directory>
RewriteEngine on
RewriteCond %{HTTP_HOST} =webmail.glpi2.mydomain.local
RewriteRule ^(.*) https://glpi2.mydomain.local:20000/ [R]
RewriteCond %{HTTP_HOST} =admin.glpi2.mydomain.local
RewriteRule ^(.*) https://glpi2.mydomain.local:10000/ [R]
RemoveHandler .php
RemoveHandler .php5
RemoveHandler .php5.6
RemoveHandler .php7.0
RemoveHandler .php7.2
php_admin_value engine Off
FcgidMaxRequestLen 1073741824
Alias /dav /home/mydomain/domains/glpi2.mydomain.local/public_html
<Location /dav>
DAV on
AuthType Basic
AuthName "glpi2.mydomain.local"
AuthUserFile /home/mydomain/domains/glpi2.mydomain.local/etc/dav.digest.passwd
Require valid-user
ForceType text/plain
Satisfy All
RemoveHandler .php
RemoveHandler .php5
RemoveHandler .php5.6
RemoveHandler .php7.0
RemoveHandler .php7.2
RewriteEngine off
</Location>
<Files awstats.pl>
AuthName "glpi2.mydomain.local statistics"
AuthType Basic
AuthUserFile /home/mydomain/domains/glpi2.mydomain.local/.awstats-htpasswd
require valid-user
</Files>
IPCCommTimeout 31

Webmin 1.921 Virtualmin 6.07 CentOS Linux 7.6.1810 Apache version 2.4.6

If someone would like to help me quickly contact me jirensan18@gmail.com I can offer compensation ...

Fri, 08/16/2019 - 13:04
tpnsolutions
tpnsolutions's picture

Hi,

Please don't double post about the same issue.

Best Regards,
Peter Knowles | TPN Solutions
Email: pknowles@tpnsolutions.com | Skype: tpnassist
Topic locked