#1 2025-08-20 08:42:40

Gattonero
Member
2025-08-20
2

Install.php as default document

Hello/Hi/Greetings,

I've successfully installed Piwigo on a subdirectory of my domain (ex. www.mydomain.com/Piwigo/), connection to db is correct and tables are created.

But if I try to access, I'm redirected to install.php and a 404 error appears (install.php and install folder are not present), and if I force every time the index.php page in the url all works fine.

what can I do?

Piwigo 15.6.0
Installato il 20 August 2025
Sistema operativo: Linux
PHP: 8.4.10 [2025-08-20 08:41:10]
MySQL: 5.7.44-48-log [2025-08-20 08:41:10]
Libreria grafica: ImageMagick ImageMagick 6.9.12-98

Piwigo URL: http://www.gattoneroph.it/MyGallery

Offline

 

#2 2025-08-20 15:34:55

Katryne
Member
Provence, France
2016-12-03
591

Re: Install.php as default document

Hello Gattonero,
I do not ganrantee I give the right soluce, but I want to convey a piece of my experience with sites in subdirectories, not specially a Piwigo.
I met this kind of issue when using subdirectory instead of subdomain : the cookies of the main site get mixed with the cookies of the site in subdirectory. And it's problematic in particular with loging. Everything worked correctly when I passed the site to a subdomain of the kind : https://piwigo.domain.org


https://album.chauvigne.info/ v.16.4  PHP: 8.2.29
Système d'exploitation: Linux - Hébergeur 1&1-Ionos - MySQL: 5.7.42
Bibliothèque graphique: External ImageMagick 6.9.11-60

Offline

 

#3 2025-08-20 20:33:12

Gattonero
Member
2025-08-20
2

Re: Install.php as default document

Katryne wrote:

Hello Gattonero,
I do not ganrantee I give the right soluce, but I want to convey a piece of my experience with sites in subdirectories, not specially a Piwigo.
I met this kind of issue when using subdirectory instead of subdomain : the cookies of the main site get mixed with the cookies of the site in subdirectory. And it's problematic in particular with loging. Everything worked correctly when I passed the site to a subdomain of the kind : https://piwigo.domain.org

I've hoped not to read this :D ...but It's a hosting with no possibilities to create subdomains (I think) so i'm doomed and I've to find another solution :(
Thank you!

Offline

 

#4 2025-08-20 22:23:21

erAck
Only trying to help
2015-09-06
2235

Re: Install.php as default document

I don't have such problem with Piwigo in a subdirectory.


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

Offline

 

Board footer

Powered by FluxBB