Announcement

#1 2022-12-15 18:23:04

digitography
Member
2016-10-27
35

Forbidden You don't have permission to access on this server

Hello/Hi/Greetings,

Hope someone knows the answer to this.

I have 3 installs of piwigo, all using different domain names, but the same host.

1 of them has the following problem:

When browing photos in piwigo, if I click on "Home" I get the Error 403 you do not have permission to access the folder that piwigo is installed into.
Which is https://www.bsears.co.uk/BSEARSpiwigo/
if I then add index.php to the end of the URL in the browser
which is then
https://www.bsears.co.uk/BSEARSpiwigo/index.php, all works fine.

The other 2 installs do not show this behaviour, and as mentioned are on the same host, same hosting account pointing at the same MySQL server, just different DBs.

Piwigo URL: https://www.bsears.co.uk/BSEARSpiwigo/index.php
Click on the "Home" link at the top of page and you will see the problem.

Environment
Piwigo 13.3.0
MySQL Version     5.6.32
Perl Version     5.8.8
PHP Version     7.3

Offline

 

#2 2022-12-15 19:53:25

erAck
Only trying to help
2015-09-06
1995

Re: Forbidden You don't have permission to access on this server

For the failing host you don't have index.php in the list of DirectoryIndex in /etc/apache2/httpd.conf (or whatever config file). Additionally listing indices is off with Options -Indexes (which is good), hence the 403.


Running Piwigo at https://erack.net/gallery/

Offline

 

#3 2022-12-15 20:05:58

digitography
Member
2016-10-27
35

Re: Forbidden You don't have permission to access on this server

Sorry, I do not understand the answer.

Are you saying that index.php needs to bein etc/apache2/httpd.conf?

2 of these were both new installs today, one is working fine, the other has this error?

Could it be a permissions issue?

I may just go back and reinstall.

Offline

 

#4 2022-12-15 20:25:33

erAck
Only trying to help
2015-09-06
1995

Re: Forbidden You don't have permission to access on this server

In /etc/apache2/httpd.conf there's a directive DirectoryIndex that lists files that are tried in order if just a directory is given as URI endpoint. It looks something like

DirectoryIndex index.html default.html index.htm

but does not contain index.php. Add/append it. (if that's the failure case).

But as you mentioned "on the same host, same hosting account" it may be for a different DocumentRoot, or you have some .htaccess file that restricts things in only one Piwigo installation.


Running Piwigo at https://erack.net/gallery/

Offline

 

#5 2022-12-15 20:36:05

digitography
Member
2016-10-27
35

Re: Forbidden You don't have permission to access on this server

.htaccess

fixed it, no idea why the other 2 installs work fine.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact