novafacile / novagallery

novaGallery - a beautiful and and ease to use php image gallery for your photos - flat file - no database required - modern responsive design
https://novagallery.org
GNU Affero General Public License v3.0
75 stars 13 forks source link

Difficulties installing in Rocky linux #9

Closed ttyr2 closed 2 years ago

ttyr2 commented 2 years ago

Rocky Linux 8.5 fully updated. Installed httpd, php, php-json Extracted contents of novagallery to the /html default apache path, not as a sub-directory. Renamed and edited site.php file with URL=http://192.168.0.54 (IP of temporary server)

When accessing the site, I am seeing the basic novagallery page with broken images for gallery place holders (for the image directories), but titles of those directories are showing. When I click on any of them, I receive a 404 error.

I'm able to navigate directly to the images and view them singly via a web browser. A simple php script to display the contents of one of the galleries also shows all the pictures in one of the directories (granted, with no thumbnails or resizing).

Looking for pointers novagallery_error1 novagallery_error2 .

david-novafacile commented 2 years ago

Hello,

Missing thumbnails:

Album not accessible:

ttyr2 commented 2 years ago

I downloaded the updated version and am seeing the same result. One of the things I noticed was that index.php puts up the directory thumbnails (which are still broken) by pointing at /galleries, but when you click one of the directories it tries to go to /albums which doesn't exist in the file structure.

david-novafacile commented 2 years ago

but when you click one of the directories it tries to go to /albums which doesn't exist in the file structure.

Yes, the directory /album does not exists. This is handled by the index.php. But you have to enable mod_rewrite in apache and that .htaccess can override the apache settings in vhost (AllowOverride All)

This also is needed for the thumbnails generation.

howardlshippin commented 2 years ago

I just downloaded and tried to use in MXLinux 21, on a newly installed home server. I have the same problem. Php version is 7.4.28. GD and Exif are installed (https://vikshepa.com/phpinfo.php). Apache Module rewrite is enabled (a2enmod rewrite) and AllowOverride All is enabled for the specific site. I tried renaming ImagesDirName from "galleries" to "albums" and changing the directory name via Filezilla in case that might change something.

howardlshippin commented 2 years ago

Sorry - this was easily resolved - I hadn't read properly the documentation on how to install in a subdirectory..