coppermine-gallery.com/forum

Support => cpg1.6.x Support => cpg1.6 install => Topic started by: nowordneeded on April 15, 2025, 12:40:50 PM

Title: Fresh Install with Installer Stub Not Working
Post by: nowordneeded on April 15, 2025, 12:40:50 PM
Hello:

I've been trying for the better part of two days to try to install a fresh copy on a new site using both the installer stub. Each time I do, I get a white screen directly after I select which version I want to use. When I refresh I get "Please first delete the log file: installer.log.txt." When I do that, I go back to the screen to select which version I want. Basically, I'm thrown into a loop.

I've tried just uploading the files directly to the server via FTP, and I get to step 4, and it goes to a 500 error. When I try to add the database information directly to a created config.php file, it tells me the installer was already run and the file is locked.

I'm trying to install version 1.6.28 here: https://diego-luna.com/gallery.

The Wordpress installation worked like a charm. I've yet to have Coppermine act like this before.

Thanks to anyone who can help.

NWN
Title: Re: Fresh Install with Installer Stub Not Working
Post by: phill104 on April 15, 2025, 08:01:34 PM
What is the 500 error? You will need to check the server logs to find out what the actual error is.
Title: Re: Fresh Install with Installer Stub Not Working
Post by: nowordneeded on April 16, 2025, 04:08:49 AM
Phil:

The log file keeps repeating

QuotePHP Fatal error:  Uncaught Error: Call to undefined function exec() in
Title: Re: Fresh Install with Installer Stub Not Working
Post by: ron4mac on April 18, 2025, 10:30:41 PM
It would seem that PHP on your server has been configured with some restrictions. If you are able, check your php.ini to see whether the exec() function is disabled.
Title: Re: Fresh Install with Installer Stub Not Working
Post by: nowordneeded on April 18, 2025, 10:38:06 PM
Ron:

Where would I find the PHP.ini file? Is that in the Coppermine files, or someplace else on the server? Thanks so much.

NWN
Title: Re: Fresh Install with Installer Stub Not Working
Post by: nowordneeded on April 18, 2025, 11:02:11 PM
Ron:

Further question if I may? Why was I able to install Wordpress but not Coppermine?

NWN
Title: Re: Fresh Install with Installer Stub Not Working
Post by: ron4mac on April 19, 2025, 02:16:23 PM
The php.ini file is not a part of CPG. It is a system file that sets values to control how PHP operates. Depending on what package you have with Hetzner, you may have to have them make necessary configuration changes. If you have an unmanaged plan, it could be a bit of a challenge to find where and what modifications are needed.

It is quite likely that Wordpress just doesn't need to have some PHP features that CPG requires.

(edit) A work-around could be by using the attached install.php file in place of the normal one. Replace the normal one, remove the config.php file, then go here: https://diego-luna.com/gallery/install.php?step=1
(ignore a complaint about a modified install.php file)