hi,
I took the code from the zp-config.php file and pasted it into a php file called zp-config-root.php. I placed this file in the root directory so it wasnt accessible from the web.
I then changed the code in the zp-config.php file to be just an include tag pointing to the zp-config-root.php file.
it works fine on the zenphoto index page, however as soon as I click onto an album i get an error saying that the path is invalid, failed to open stream.
I know you can do this easily with Worpress by simply dumping the wp-config.php file anywhere and the system scans for the location of this file, no need for redirects or includes.
Any advice?
Comments
Anyway, if you are refering to the threads on this forum about that file being compromised, that was most likely caused by the site administrators not removing the setup files, not by someone actually accessing your server and the folder directly. (Unless, of course, you have no folder security. In which case it does not matter where you move it, it will still be vulnerable.)
Luckily, I simply replace the file with a known good one and all is well - but it's annoying because my clients hate seeing the error. I have to constantly monitor my sites which is time consuming.
What should the permissions be for zp-data folder?? Also what other steps can be taken so this stops happening?
Thanks,
Mike
As Setup suggests the files in zp-data should be 600. The folder itself may be 755. It depends on the server how strict you can set things. All servers I know break things if you set to the strictest. Setup tries to set permissions but sometimes that conflicts with the server so you have to adjust manually.
If I simply replace the config file and reload the root page it's fine.
I'd ask if you could please help me resolve this issue. I'll do whatever I can to make it happen.
Please let me know what steps to take to get you the info you need to help diagnose and fix this issue.
As mentioned permissions are as above, and install folder is protected.
Please email me directly if you want.
Much appreciated,
Mike
What steps can I take to provide you guys info to help diagnose?
Try to lower permissions on the folder and files. If that doesn't work, maybe contact your host in case of a server config issue somehow.
Authorization cookie check Failed :deleted
I've even blocked the IP's...but they keep showing up with different IP's.
Any ideas on this?
In any case I would contact your host about this. They should have more insight into what might be going on.