.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>
AllowOverride Options FileInfo
</Directory>

If you are running PHP in CGI mode, this message is unavoidable."

1) PHP is not in CGI Mode
2) I *have* put this line into my httpd.conf file

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.
----
Gallery URL (optional but very useful): http://cslewis.no-ip.com/gallery
Gallery version: 1.4.4-pl2
Apache version: 2.0.51
PHP version (don't just say PHP 4, please): PHP v5.0.1
Graphics Toolkit: netpbm 1.4-pl2
Operating system: Windows XP Pro
Web browser/version (if applicable):

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Tue, 2004-09-21 21:39

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.

 
cslewis

Joined: 2004-09-21
Posts: 16
Posted: Tue, 2004-09-21 21:49

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

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Tue, 2004-09-21 21:54

Restarting apache or Gallery? :-)

Try adding Allow Override All then.

 
cslewis

Joined: 2004-09-21
Posts: 16
Posted: Tue, 2004-09-21 21:57

Sorry, apache.

I already tried Allow Override All, and that doesn't fix it either.

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Tue, 2004-09-21 22:35

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.

 
cslewis

Joined: 2004-09-21
Posts: 16
Posted: Tue, 2004-09-21 22:49

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.

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Tue, 2004-09-21 23:01

Your Gallery works though, right?

 
cslewis

Joined: 2004-09-21
Posts: 16
Posted: Tue, 2004-09-21 23:10

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.

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Wed, 2004-09-22 02:58

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.

<IfModule mod_php4.c>
php_value auto_prepend_file     ./php_value_ok.php
php_value magic_quotes_gpc off
</IfModule>

What I added:

<IfModule mod_php5.c>
php_value auto_prepend_file     ./php_value_ok.php
php_value magic_quotes_gpc off
</IfModule>
 
cslewis

Joined: 2004-09-21
Posts: 16
Posted: Wed, 2004-09-22 03:35

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.

 
cslewis

Joined: 2004-09-21
Posts: 16
Posted: Wed, 2004-09-22 03:53

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.

 
ckuka

Joined: 2004-10-26
Posts: 9
Posted: Tue, 2004-10-26 19:20

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.

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Wed, 2004-10-27 03:21

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.