ZenphotoCMS Forum
Guidelines for security - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Guidelines for security (/thread-7365.html)



Guidelines for security - Rowli001 - 2010-07-20

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




Guidelines for security - acrylian - 2010-07-20

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




Guidelines for security - sbillard - 2010-07-20

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.




Guidelines for security - Rowli001 - 2010-07-21

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




Guidelines for security - acrylian - 2010-07-21

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