I'm getting a 500 error on this page (
http://bethmeth.com/photos-temp/), can anyone help?
I recently turned php powermode on for this particular server since i was having issues uploading and creating directories. The paths have changed and i edited the path overrides but i still can't hit the gallery. I can, however, get into the admin section and upload photos.
Any help would be much appreciated! Thanks.
Comments
By the way, i just tried to login with default access on the administration page ... and it worked.
Change this settings, it's not secure at all using default account.
# htaccess file for zenphoto
# NOTE: Change the RewriteBase below to the absolute path to your zenphoto directory.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /photos-temp
RewriteCond %{REQUEST_FILENAME} -f [NC,OR]
RewriteCond %{REQUEST_FILENAME} -d [NC]
RewriteRule ^.*$ - [R,L]
RewriteRule ^admin/?$ zen/admin.php [R,L]
RewriteRule ^page/([0-9]+)/?$ index.php?page=$1 [L,QSA]
RewriteRule ^([^/]+)/?$ index.php?album=$1 [L,QSA]
RewriteRule ^([^/]+)/page/([0-9]+)/?$ index.php?album=$1&page=$2 [L,QSA]
RewriteRule ^([^/]+)/image/(thumb|[0-9]{1,4})/([^/\\]+)$ zen/i.php?a=$1&i=$3&s=$2 [L,QSA]
RewriteRule ^([^/]+)/image/([^/\\]+)$ albums/$1/$2 [L]
RewriteRule ^([^/]+)/([^/\\]+)$ index.php?album=$1&image=$2 [L,QSA]
</IfModule>
`
# htaccess file for zenphoto
# NOTE: Change the RewriteBase below to the absolute path to your zenphoto directory.
RewriteEngine On
RewriteBase /zp
RewriteCond %{REQUEST_FILENAME} -f [NC,OR]
RewriteCond %{REQUEST_FILENAME} -d [NC]
RewriteRule ^.*$ - [R,L]
RewriteRule ^admin/?$ zen/admin.php [R,L]
RewriteRule ^page/([0-9]+)/?$ index.php?page=$1 [L,QSA]
RewriteRule ^([^/.]+)/?$ index.php?album=$1 [L,QSA]
RewriteRule ^([^/.]+)/page/([0-9]+)/?$ index.php?album=$1&page=$2 [L,QSA]
RewriteRule ^([^/.]+)/image/(thumb|[0-9]{1,4})/([^/]+)$ zen/i.php?a=$1&i=$3&s=$2 [L,QSA]
RewriteRule ^([^/.]+)/image/([^/]+)$ albums/$1/$2 [L]
RewriteRule ^([^/.]+)/([^/]+)$ index.php?album=$1&image=$2 [L,QSA]
`
Remove or rename the .htaccess and set the mod_rewrite zp-config param to false -- still get a 500?
Anything you did that might have affected this? Can we narrow it down any?
I turned the rewrite off and there is no other .htaccess in above directories. The only thing that I have changed is upgrading to the new version and the only file I edited was the config file.
If I remove htaccess completely then zenphoto works but without images and links, but I do start to get the layout at least and the 500 error is gone.
`
# htaccess file for zenphoto
# NOTE: Change the RewriteBase below to the absolute path to your zenphoto directory.
RewriteEngine Off
# !!! Change this to the web path (eg: http://www.example.com/photos --> /photos) !!!
RewriteBase /zp
RewriteCond %{REQUEST_FILENAME} -f [NC,OR]
RewriteCond %{REQUEST_FILENAME} -d [NC]
RewriteRule ^.*$ - [R,L]
RewriteRule ^admin/?$ zen/admin.php [R,L]
RewriteRule ^page/([0-9]+)/?$ index.php?page=$1 [L,QSA]
RewriteRule ^page/([A-Za-z0-9-_]+)/?$ index.php?p=$1 [L,QSA]
RewriteRule ^([^/]+)/?$ index.php?album=$1 [L,QSA]
RewriteRule ^([^/]+)/page/([0-9]+)/?$ index.php?album=$1&page=$2 [L,QSA]
RewriteRule ^([^/]+)/image/(thumb|[0-9]{1,4})/([^/\\]+)$ zen/i.php?a=$1&i=$3&s=$2 [L,QSA]
RewriteRule ^([^/]+)/image/([^/\\]+)$ albums/$1/$2 [L]
RewriteRule ^([^/]+)/([^/\\]+)$ index.php?album=$1&image=$2 [L,QSA]
`
define('SERVERPATH', 'YOUR ABSOLUTE SERVER PATH/devzen');
define('WEBPATH', '/devzen');
define('SERVERCACHE', SERVERPATH . "/cache");
define('WEBCACHE', WEBPATH . "/cache");
per an early article on getting Zenphoto to work on Dreamhost properly.
I removed these lines, and got it to work. Don't know if anyone is configured this way, but I also noted that the version I'm using (tag>1.0.4 SVN) requires you to go in each album in the admin before it will show them on the main admin page. This is slightly different behavior from the 1.0.3 stable version, since that version, you can just hit "refresh" on the main admin page and it will "catalog" all the images.
Hope this helps others. I'll keep posting as I find more out. I'm piloting the 1.0.4 SVN version to see if I can get some hacks working, namely the humanauth captcha OR bad behavior (both of which combat comment SPAM).
So it's either Dreamhost and the way they are configured, or the SVN version I'm using is a bit wacky (I'm not expecting it to be perfect - it is a work-in-progress)....
PHPSUEXEC doesnt like this, in fact it wont tolerate anything above 755. Its a security measure, so if it finds a directory with a php script that has 777 permissions it coughs and throws a 500 Internal Server Error.
Setting all permissions to 755 or less has solved the problem for me. Not saying this is your issue but its worth checking.
Hope this is usefull to someone.
Also, the 1_0_4 tag in SVN is not good, many changes have gone on since then. I shouldn't tag prematurely, sorry about that. Use the /branches/subalbums instead, it's going to become /trunk soon.