Member
Member
Rowli001   2010-07-20, 08:39
#1

Please accept my apologies in advance for the naivety in this post.
I installed Zenphoto using simplescripts, so probably bypassed some of the configuration options others might be aware of. My challenge is how to secure my gallery. At present, it is open to view to all without registration. I can't seem to find where I can lock down the access.

I have also been the victim of hackers injecting code into the PHP file. According to my hosting provider, the secret is to move the config file (zp-config) somewhere else. I would appreciate guidance on where in the scripts I need to modify to point to a different location.

Thanks

Administrator
Administrator
acrylian   2010-07-20, 09:02
#2

[i]I installed Zenphoto using simplescripts[/i]
We do not support installations using that at all.

[i]At present, it is open to view to all without registration. I can't seem to find where I can lock down the access.[/i]
Why would you want to have a website/gallery that is not public viewable at all? You can password protect the gallery or albums. I suggest to look at little at the administration backend before asking such questions. (Note that the actual images in the albums folder can't be protected by that, you have to do that via .htaccess yourself if you want). You can of course also block the complete site using the right .htaccess.

Also I suggest to look at the troubleeshooting to set the right file/folder permissions and about protecting albums.

You can't remove the zp-config.php file because that is necessary. But you can remove the zp-core/setup.php file after installation. But you might need to reupload if you need to run it again.

Member
Member
sbillard   2010-07-20, 17:46
#3

Also, if you did really use simplescripts most likely you are runnign a fairly old version of zenphoto. In that case, all bets are off for your site security. Your provider is clearly not too brite with respect to Zenphoto at least. As Acrylian says, removing the zp-config.php file will render your site inert.

Member
Member
Rowli001   2010-07-21, 10:06
#4

Thanks for the comments. Just to clarify, the vendor gave generic advice, which is to 'Move' (not 'remove') config files to a location outside of the public area. I was trying to understand whether it is practical to do this, and how I would modify files to reference a config file in another location. I think the answer is 'No'.

Administrator
Administrator
acrylian   2010-07-21, 10:32
#5

Moving a file out of a folder is removing it from that folder... How should a script know where you moved it?

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