Member
Member
Alov   2013-04-26, 12:13
#1

Hi guys,
I recently started a new job and found there is a ZenPhoto running. The gallery goes well while admin page http://ip/zp-core/admin.php prompt me a password which i actually dont know at all. Looking through the forum i found it is a good idea to delete the records with the names adminpass and adminuser in the database. But the bad thing is I have no idea what is the current location of the database .. probably some other server or planet. So is there a way to determine where ZenPhoto database is?

Administrator
Administrator
fretzl   2013-04-26, 16:44
#2

Your host should know where to find and administer the database.

Member
Member
sbillard   2013-04-26, 16:50
#3

If you know where the installation files are located you can look at the configuration file. It will give you the database details.

Member
Member
Alov   2013-04-29, 11:02
#4

When accessing to zp-core and zp-data folders the only configuration file i can see is zenphoto_cfg but it still doesn`t give me a hint where the database is.

$conf['mysql_host'] = 'localhost'; // Supply the name of your Database server.
$conf['mysql_database'] = ''; // Supply the name of Zenphoto's database

Administrator
Administrator
acrylian   2013-04-29, 11:42
#5

Yes, of course because how should Zenphoto know where on your webspace the database is located? Your webhost should provide you with the info about that. Generally on shared hosts the database is on a separate server.

Member
Member
Alov   2013-04-29, 12:09
#6

I am currently on my webhost where one can see albums folder and pics in it and so on.. What steps should i do to find and edit the database using say phpMyAdmin ?

Administrator
Administrator
fretzl   2013-04-29, 12:39
#7

Please ask your host.

Member
Member
sbillard   2013-04-29, 16:35
#8

If Zenphoto is really running the configuration file would have the correct database information. So we can only conclude that the configuration file you found is not the one from the running installation.

Member
Member
Alov   2013-04-30, 08:51
#9

Yes Zenphoto is running pretty fine - i can access the website both from outside and LAN. Is is possible that the original configuration file was deleted/replaced during ZenPhoto update though once again it`s running ? Is there option to install ZehPhoto with no database - i've racked my brain...

Administrator
Administrator
acrylian   2013-04-30, 10:08
#10

The config file is normally created by setup when installing Zenphoto the first time. On that occasion you are requested to enter the database credentials.

Zenphoto requires a database.

Member
Member
sbillard   2013-05-02, 22:31
#11

You will have to speak with your website administration to find where the files are. Find the installation files and you will find the real configuration file. It will have the database credentials.

Member
Member
Alov   2013-05-13, 07:46
#12

Argh. That be me who administer the website and got no contact info for the previous admin guy. The webserver is inside of our Local Area Network and can be accessed from the Internet as well. I suspect that installation files were deleted after install process as recommended?

Administrator
Administrator
acrylian   2013-05-13, 12:10
#13

The installation files do not tell you where your database or what database server is. Those are entered via the installation files (Setup) on installing the first time and stored in the config file withn /zp-data.

If that has been deleted for whatever reason you need to find out those credentials.

Member
Member
sbillard   2013-05-13, 15:43
#14

If you do not know where the files are, you will have to find out somehow. If for nothing else than you cannot upgrade unless you know where to place the files.

I guess you should log onto the server and do a file search for something like "zenphoto.package".

Member
Member
Alov   2013-05-15, 06:52
#15

Zenphoto.package is located in C:\Inetpub\wwwroot\zp-core. Are there any specific lines in the file worth to check out?

Administrator
Administrator
acrylian   2013-05-15, 07:42
#16

You can always re-download the Zenphoto version you installed to get the install files back. We have an older release archive on our site.

Member
Member
sbillard   2013-05-15, 21:02
#17

The file you want to look at would be C:\Inetpub\wwwroot\zp-data\zenphoto.cfg (Your installation is in your wwwroot folder.)

Member
Member
Alov   2013-05-16, 11:11
#18

Many Thanks sbillard - you've made my day! Thanks to acrylian as well! That`s exactly what i need to locate the database and reset a password.

Administrator
Administrator
acrylian   2013-05-16, 11:32
#19

Great that we finally got it..:-)

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.