.htaccess not being recognized
cslewis
Joined: 2004-09-21
Posts: 16 |
Posted: Tue, 2004-09-21 21:22 |
I am currently trying to install gallery with the configuration mentioned below. When running setup, I continue getting the message: "Apache is not obeying the 'php_value' lines in your .htaccess file. Try entering the following into your web server's httpd.conf file: <Directory E:\Web\gallery> If you are running PHP in CGI mode, this message is unavoidable." 1) PHP is not in CGI Mode I have settup gallery before with a different settup and inserting that into my .httpd file worked. I thought it might be the fact that Apache/PHP was installed to C drive, and Gallery was on the E drive, so I put everything on C drive and that didn't change anything. Any thoughts? I'm completely stumped now. |
|
Posts: 13451
Try to find the <Directory E:\Web> part of httpd.conf, and set it to AllowOveride Options FileInfo too.
Also, restart apache after doing changes.
Posts: 16
I tried that, and setting the default directory (<Directory />), and still get the same error.
I have also tried deleting all other directory information other than the gallery one, but no luck there.
And I am restarting gallery after every change .
Posts: 13451
Restarting apache or Gallery?
Try adding Allow Override All then.
Posts: 16
Sorry, apache.
I already tried Allow Override All, and that doesn't fix it either.
Posts: 13451
Then it's time to review the apache logs. Apache support is really out of the scope of these forums, but we try as best we can.
Posts: 16
When I load the first page of settup for gallery (the one that keeps giving me an error) this PHP notice shows up in my Apache error logs.
[client XXX.XX.XX.XXX] PHP Notice: Trying to get property of non-object in E:\\Web\\gallery\\setup\\init.php on line 31
Line 31 is as follows:
"if (isset($gallery->app->devMode) && $gallery->app->devMode == "yes") {"
I don't think that has to with this error. All the access logs told me was that it loaded setup/index.php, the background gif, and the css file.
Posts: 13451
Your Gallery works though, right?
Posts: 16
Yes -- the only thing that doesn't is the upload > 2MB, which is because of this .htaccess problem -- but everything else works like a charm.
Posts: 3236
Are you using PHP 5.0.1? In the setup/ dir, the file .htaccess contains the following. For me, running apache on linux it is basically looking for php4 and not finding it... because I have php5. I had to add the section farther below to the file.
What I added:
Posts: 16
Thank you!!!!!!
That's exactly what it was, I had just completely missed that! That fixed all my problems.
Thanks h0bbel for all your help, and fryfrog for pointing that out to me.
Posts: 16
I also went in and modified the .htaccess in the main gallery folder it created. I just copied the IfModule that related to PHP 4 and made the new one PHP5. Everything seems to be working out perfectly.
Posts: 9
hello,
i'm having the same error message at step 1 of the configuration wizard but:
- i'm not using php 5 - its 4.3.4
- php is not run as cgi
- i've made the suggested changes to httpd.conf
what am i doing wrong?
please help.
Posts: 3236
Since you are using php4 and not 5, I would suggest making a new post and filling it with as much information as you can provide. Your error message may be the same... or sound similar, but it very likely is not caused by the same thing at all.