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)
Title: Re: Fresh Install with Installer Stub Not Working
Post by: nowordneeded on November 24, 2025, 07:44:11 AM
Fresh issue. When I've gone to install the gallery at the above, I'm now getting this error:

Fatal error: Uncaught Error: Call to undefined function exec() in /diego-luna.com/public_html/gallery/install.php:1469 Stack trace: #0 diego-luna.com/public_html/gallery/install.php(1339): getIM() #1 diego-luna.com/public_html/gallery/install.php(280): checkImageProcessor() #2 {main} thrown in diego-luna.com/public_html/gallery/install.php on line 1469
I've been struggling with this on and off for the past couple of months. I was wondering what's going on? I've never had this amount of trouble installing Coppermine.

NWN
Title: Re: Fresh Install with Installer Stub Not Working
Post by: 406man on November 24, 2025, 03:52:10 PM
Ron4mac's reply #3 in this thread is relevant here. Exec is a standard function in PHP – see here:
https://www.php.net/manual/en/function.exec.php

...and it ought to work. It seems that the PHP on your server has been configured without it. Therefore it's a hosting problem and not Coppermine's fault.

There are various articles around the Net such as this one:
https://openjournaltheme.com/how-to-enable-and-disable-exec-php-function-in-ojs-omp-ops/
Possibly your hosting Control Panel allows you to enable it yourself as the article above describes. If not, suggest you log a support query with your web hosting company.
Title: Re: Fresh Install with Installer Stub Not Working
Post by: nowordneeded on November 25, 2025, 04:24:16 AM
Hi:

Do you know how to do this on Direct Admin? I don't have Control Panel on my server.

NWN
Title: Re: Fresh Install with Installer Stub Not Working
Post by: 406man on November 25, 2025, 08:14:16 AM
A Google search for "direct admin change php settings" brings up the following link, and many others:
https://docs.directadmin.com/webservices/php/php-options.html
Title: Re: Fresh Install with Installer Stub Not Working
Post by: nowordneeded on November 25, 2025, 10:13:26 PM
Admin:

Thanks for all you've given me to explore.

NWN
Title: Re: Fresh Install with Installer Stub Not Working
Post by: nowordneeded on November 27, 2025, 02:45:07 AM
Update:

I contacted my host to find out what was going on, and they fixed whatever was wrong on the backend. I have no idea what they fixed, but I was able to finish the install on the gallery. It's up and ready for me to customize.

Thank you to all of you who helped on this thread. I do appreciate your time.

Closing it.