.htaccess problems with G3

jackoff

Joined: 2009-06-17
Posts: 3
Posted: Wed, 2009-06-17 16:58

Hello,

i decided to use the Gallery3 Beta.

I uploaded all files up to my webspace (PHP Version 5.2.9, Apache 2.0 Handler)

But when i try to start the installation (gallery3/installer/index.php) i always get "Error 500".
I used the FAQ and tried to configure my Apache with the .htaccess file, but i'm not sure what i've to do exactly.

FAQ:

Quote:
Edit your apache configuration file to allow per-directory overriding of Options or All (note that this has implications to broad to discuss here):
<Location "/gallery3/">
AllowOverride +Options
</Location>

My problem is, where i've to put this lines and in which order. In the .htaccess file in my gallery3 directory? or one directory above? before or after the lines which are already in the file?

The content of my .htaccess in the gallery3 folder (/gallery3/.htaccess):

Quote:
<IfModule mod_php5.c>
php_value short_open_tag 1
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
php_value upload_max_filesize 20M
php_value post_max_size 100M
</IfModule>

The content of my .htaccess in the folder where also my gallery3 folder is located:

Quote:
ErrorDocument 403 /author.htm
ErrorDocument 401 /author.htm
ErrorDocument 404 /underconst.htm

Please somebody help me...

Thanks!

Jackoff

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2009-06-17 17:06

you'll need to look at your error logs to get more info on why that error is being generated.
FAQ: What is the webserver error log?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2009-06-17 17:08

oh, wait, just re-read your post:

Quote:
My problem is, where i've to put this lines and in which order. In the .htaccess file in my gallery3 directory? or one directory above? before or after the lines which are already in the file?

Put that at the top of the .htaccess file
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2009-06-17 17:12

ugh, I need more coffee...

And that isn't for putting into your .htaccess file. That's for editing your Apache config file. If you're on a shared server, you can't do that.

You'll either need to edit php.ini or put php_value short_open_tag 1 in .htaccess If you are running PHP in CGI mode, that won't work and you'll have to edit php.ini
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
jackoff

Joined: 2009-06-17
Posts: 3
Posted: Wed, 2009-06-17 17:32

uuuhhh...

i haven't got a own server so it's a little bit difficult to configure my php.ini file or something like that...

may you look here: http://www.generaljackoff.de/phpinfo.php
--> short_open_tag is set to "on"

sorry, but you've to explain it a little bit more precise for me, cause i'm not an expert in server configurations^^

The support of my websever means that i can configure the "AllowOverride" in the .htaccess file... but he didn't explain how...

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2009-06-17 17:49

you'll need to look at your error logs to get more info on why that error is being generated.
FAQ: What is the webserver error log?

If you don't know how to access those logs contact your host.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
jackoff

Joined: 2009-06-17
Posts: 3
Posted: Wed, 2009-06-17 18:11

ok,

here you can read a copy of my access_log file, i hope it's the right log file...

http://www.generaljackoff.de/access_log.txt

i hope you won't use it for abuse or something like that...

thank you for your help up to here!

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2009-06-17 18:26

That's the access log, need the Error log. See my previous link.

All the access log is going to show us is, yes, in fact it did serve up a 500 internal server error:

[17/Jun/2009:18:12:51 +0200] "GET /gallery3/installer/ HTTP/1.1" 500 1182 "-" "Mozilla/5.0....

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here