Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Default "Admin" User not created while using install.php  (Read 1205 times)

0 Members and 1 Guest are viewing this topic.

collin814

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Default "Admin" User not created while using install.php
« on: February 12, 2020, 01:22:30 am »

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?
Logged

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 1452
Re: Default "Admin" User not created while using install.php
« Reply #1 on: February 12, 2020, 02:48:05 am »

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.
Logged

collin814

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Default "Admin" User not created while using install.php
« Reply #2 on: February 12, 2020, 04:34:52 am »

Thank you, that was it! I was missing the mycrypt software. All better now!
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 21 queries.