403 and 500 errors trying to setup

beowulf222

Joined: 2002-09-24
Posts: 2
Posted: Tue, 2002-09-24 09:58

Hi -

I downloaded and untar'ed gallery-1.3.1.
I use OpenBSD 3.1 with Apache 1.3.24 and PHP 4.1.2.

In my http.conf I added the following myself (since I didn't find a documentation):
ScriptAlias /gallery/ "/var/www/gallery/"
Alias /gallery/ "/var/www/gallery/"
<Directory "/var/www/gallery/">
Options Indexes FollowSymLinks Includes ExecCGI Multiviews
Allow from all
AllowOverride Options FileInfo
</Directory>

In the /var/www/gallery/ directory I ran "sh configure.sh" and then wanted to point my browser to "http://mydomain.com/gallery/setup", but there I get a 403 error and my Apache error log says "attempt to invoke directory as script: /var/www/gallery/setup".

Whatever that means?!

So, if a point my browser to "http://mydomain.com/gallery/setup/index.php" I get a 403, too, with my error log telling me: "file permissions deny server execution: /var/www/gallery/setup/index.php".

Then I make "chmod o+x index.php" which results in the 500 error, the error log writing "Premature end of script headers: /var/www/gallery/setup/index.php".

BTW, I have removed the .htaccess from my setup-directory.

Please, advise! :smile:

CU,
Nikolaus

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2002-09-24 17:49

That's strange. Looks like it's trying to execute your .php files as a CGI.

Create a very simple php script called "test.php" and put this in it:

<?php phpinfo(); ?>

then put that on your webserver somewhere outside your Gallery and see if it
works. If it doesn't, you've got some kind of Apache/PHP misconfiguration.

 
beowulf222

Joined: 2002-09-24
Posts: 2
Posted: Wed, 2002-09-25 08:49

This works - I have PHP Nuke running and it works. Only Gallery is not working.

CU,
Nikolaus

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Thu, 2002-09-26 03:32

It sounds like a configuration issue on your server. Try FAQ C to start. If that doesn't work, you can try our <!-- BBCode Start --><A HREF="http://gallery.menalto.com/modules.php?op=modload&amp;name=phpWiki&amp;file=index&amp;pagename=Donation%20Based%20Support" TARGET="_blank">Donation Based Support</A><!-- BBCode End --> plan.