if you don't have access to httpd.conf, don't use Gallery?
The docs say:
If you don't have access to your httpd.conf, delete the .htaccess file in the setup/ directory.
But this halts the configuration wizard:
Error: You must create an empty file named .htaccess and chmod it 777 before proceeding. See [documentation] for more details.
So is there no way out of this recursive loop?
Posts: 13451
michaelp, yes there is.
There are two .htaccess files. One in setup/ that FAQ Gallery:c.1 refers to, if you have problems running the setup/ wizard.
The one you are supposed to create, is to be located in the gallery/ folder, not in the gallery/setup/ folder.
But how is this related to the thread you posted in? I'm splitting this.
Posts: 3
when the first is created the server returns "You don't have permission to access /gallery/ on this server.", when it is deleted the config wizard refuses to finish, hangs up on the 'you need to create .htaccess' error and says to check the docs.
The docs say to delete .htaccess in setup (where they talk about .htaccess) which doesn't fix either problem.
It seemed to be related bacause it sounds like the apache error mentioned in the previous thread, for which the fix was to edit httpd.conf.
Ok, but what about for folks who can't, why can't the configuration wizard finish the install without .htaccess?
Posts: 3
Ok we added:
<Directory "theserverpath/public_html/gallery/">
Options Indexes Includes FollowSymLinks
AllowOverride FileInfo
Allow from from all
Order allow,deny
</Directory>
Same problem. As soon as I create .htaccess, I get:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator,
and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
--------------------------------------------------------------------------------
Apache/2.0.46 (Red Hat) Server
Remove .htaccess and everything is fine, except the config wizard won't run.
We have installs of gallery 1.4pl2 running on this server as postnuke modules, no problem.
Is something wrong between 1.4.4 and Apache2? Or do we need to run gallery 1.4.4 within Postnuke on this server?
Posts: 13451
1. Something is wrong with your apache setup. And, you are confused.
FAQ Gallery:c.1 is to be used if you get a 500 Internal Server error when trying to access the Configwizard. Not a 403 Permissions Denied message.
The 403 is either because the permissions on the directory are wrong (ie Apache cant read it), or if it works if you try http://example.com/gallery/setup/index.php then the error is in your DirectoryIndex configuration in httpd.conf. This is hard for me to investigate without a proper URL.
If you, you by creating your own .htaccess file in the gallery/ dir (with the settings in the above post) create a 500 error, you need to consult your apache error_log for clues as to which of the settings cause the error.
All of the errors above, should be explained in your error_logs.
There is no reason Gallery 1.4.4 shouldn't work in standalone mode and require PostNuke at all.
Posts: 7
I'm assuming I don't have access to my httpd.conf file, as I can't seem to locate it, so I deleted the .htaccess file in my galler/setup/ directory, and I still get the same error. Is there something I can do to fix this? I have also e-mailed my webmaster. If he adds
<Directory "/path/to/your/gallery/directory">
AllowOverride Options FileInfo
</Directory>
to my http.conf file, will this definitely solve my problem?
thanks,
c0rey
Posts: 7
Oh, I guess I could give you a little more info than that, eh?
My gallery url is:
http://www.spacepiratemusic.com/gallery/
I'm on a server running RedHat Linux, with PHP 4.2.2. I don't rmember what the Apache version is, and when I try to access http://www.spacepiratemusic.com/gallery/setup/phpinfo.php I get the same server error 500 as when I try to access http://www.spacepiratemusic.com/gallery/setup/index.php
Posts: 13451
c0reysc0tt, are ypou 100% certain the .htaccess file in setup/ is gone? Still seems like it's there.
Anyway, your host should be able to help you out, and yes, if they add those options to their httpd.conf you are probably ok.
Posts: 7
Yeah, I'm quite sure it's gone. when I use WS/FTP to go into that directory, it's not there, even if I use the -la command that makes it visible in the main gallery directory. But I should have some word back from my webhost later today, so perhaps I'll wait for that. There aren't any other work-arounds, are there?
Posts: 7
Oh, one more thing... if they do fix the problem for me, should I put a new .htaccess file back in the setup directory? If so do I make it blank and set the permissions like I did for the one in the main gallery directory? Thanks for the help!
Posts: 2322
The only place in all of Gallery that "php_value_ok.php" is referenced is from the .htaccess file in the setup directory, so somehow, that file must still exist...
Posts: 7
Okay, well how would you go about doing it, if it's not appearing in WS/FTP, Dreamweaver, or telnet? It was there, I deleted it, now it's not. If there's some other way to find it and delete it again, I'll gladly do it!
Posts: 7
I can place files called .htaccess in the folder without any warning that I'm overwriting a file with that name that's already there, and I can delete my new blank .htaccess file in the setup folder, so I'm pretty sure it's gone. Is there a way that gallery can work with a modified php_value_ok.php file, or perhaps a way to make a .htaccess file that automatically tells php_value_ok.php that the php_value directive in .htaccess was obeyed?
Posts: 2322
php_value_ok.php is a file that sets a variable. It is what tells setup that it loaded ok.
Posts: 7
Forgive me, as I don't yet have a thorough enough understanding of php to know fully what that means. Are you saying that there's nothing I can do? You seem convinced that the error is on my behalf, but I've told you everything that I did and none of the steps were wrong, right? Could the error be caused by my server, or is there anything else in the code that could cause this type of error BESIDES the .htaccess file, which I'm sure is gone and you're sure is still there?
I sincerely appreciate your help, but it's a little too vague for me.
Posts: 2322
"grep -r" searches every file in, and above, the current directory for a string of text.
The first line is manifest.inc, which just keeps track of file version numbers.
The second and third lines are the setup/.htaccess file where php_value_ok.php is called from.
The third line is php_value_ok.php itself.
This is why I am completely positive that somehow, that file is still present. I'm not doubting that you've done what you said, but it's impossible for any reference to "php_value_ok.php" to exist if the .htaccess file really isn't there.
Posts: 7
I am also a relative noob at this in that I've only installed gallery once, on my home machine and it just plain worked (Mac...go figure
)
Now I'm trying out a new webhost and I'm starting out fresh. I uploaded gallery via ftp but found I was getting htaccess errors. Turns out my ftp program didn't up the .htaccess files. I can see them sitting in the gallery folder on my HD but when I look on my server they're not there. Maybe there's a setting somewhere that I should have checked...dunno. Like I said, noob.
Anyhooz, I tried again, this time uploading only the .htaccess file from my HD to it's proper location and now my gallery works like a champ. Rock!