Default "Admin" User not created while using install.php Default "Admin" User not created while using install.php
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Default "Admin" User not created while using install.php

Started by collin814, February 12, 2020, 01:22:30 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

collin814

Hey, so I'm having a problem completing the install for my first Coppermine server, but ther is an issue with the scripts. What's happening is that I get through the installer to step 9 and enter the default "admin" user information and then click the button to go to screen 10. I get an http 500 error. I started looking at the /include/config.tmp.php file during the installation and it seems to not be updating completely after screen 9. I've attached the file as it looks after clicking the button on screen 9 and while the error 500 is up. I found that if I added the proper continued iteration to the script I am able to access page 10 (by directly setting page 10 in the URL because correcting the config.tmp.php beforehand does no good at all) and get the "Finished" messages (no errors what so ever) and the option to log in. My users table is still empty though and so of course login fails. I also found, after some testing, that the createAdmin() function of install.php is never called along with who knows what else.

I did try manually entering the admin user into the users table in the DB, but while it apears to accept that the username and password are good, it still gives me another http 500 internal server error.

Any thoughts?

ron4mac

It would appear you are trying to install on a local, personal server. Using the cpg_installer_stub is a convenient way to get the package files placed on your server and installed.

Try to look at your server error logs. It may have something to do with your PHP installation and random_bytes or mcrypt.

Also, you should be using mysqli instead of mysql.

collin814

Thank you, that was it! I was missing the mycrypt software. All better now!