Member
Member
cap_nemo   2006-10-09, 03:13
#1

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.

Member
Member
La0c00n   2006-10-09, 16:10
#2

It looks like you've something weird in your .htaccess file... If you could post it here, you would find much more help !

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.

Member
Member
cap_nemo   2006-10-09, 21:47
#3

Thanks for the heads up with the settings. Here's the contents of my .htaccess file:

htaccess file for zenphoto


NOTE: Change the RewriteBase below to the absolute path to your zenphoto directory.


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]

Member
Member
aitf311   2006-11-26, 02:06
#4

I am having this same error, anyone know what would cause this? I just upgraded to the latest svn and tried to go to index, got the 500 error, then tried to run upgrade.php and got the error. My htaccess is
`

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]

`

Member
Member
aitf311   2006-11-27, 03:02
#5

There has to be a fix for this?! I am using 100% official files with the exception of the config and changed rewritebase in my htaccess

Developer
Developer
trisweb   2006-11-28, 08:17
#6

It is very likely a problem outside Zenphoto. Check your apache config files for access permissions, and especially all the .htaccess files in directories above the zp dir.

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?

Member
Member
aitf311   2006-11-28, 14:09
#7

I am not sure how to check the apache config files, I am using dreamhost.
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]

`

Member
Member
thinkdreams   2006-11-28, 19:40
#8

I don't know Tris. I just tried it at my devzen site (http://www.thinkdreams.com/devzen, and initially got the 500 error myself. I removed the .htaccess from the directory, and shut off mod rewrite, and it still is a bit buggy. Now, I'm using the 1.0.4 tag SVN version, so it may be just buggy yet (not sure where you're at with it) but I figured it would at least initially work.

Member
Member
thinkdreams   2006-11-28, 19:46
#9

OK. Since I've been on Dreamhost, with the older versions of Zen (1.0.3 and below), you had to add the following lines:

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

Member
Member
thinkdreams   2006-11-28, 19:49
#10

And also, after turning off htaccess and modifying zp-config, I changed them back and then you get the 500 error again.

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

Member
Member
aitf311   2006-11-28, 21:50
#11

Are these lines to be put into htaccess?

Member
Member
thinkdreams   2006-11-28, 22:00
#12

Nope. The lines above are to be put right below the 2nd line in the zp-config file. Obviously make sure you change the /devzen to your absolute path for your server. And this from what I understand is really only necessary on Dreamhost.

Member
Member
simon   2006-12-03, 11:38
#13

I have just had this experience setting up ZP in a new server environment. Transpires that the problem was PHPSUEXEC. I have a bad habit of CHMODing everything to 777 when doing test installs.

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.

Member
Member
aitf311   2006-12-03, 16:49
#14

This was very possible to be my problem as well. I ended up deleting everything, even my database and started from scratch. That hurt but at least its working again.

Developer
Developer
trisweb   2006-12-05, 03:26
#15

I have been using dreamhost for some time specifically for photo storage and display with zenphoto and it's been working great! I generally keep my perms at 755 though, so that could be it.

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.

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