HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   gallerie and rewrite (http://www.howtoforge.com/forums/showthread.php?t=1534)

fpl 4th December 2005 22:33

gallerie and rewrite
 
hello, and sorry for my bad english ;)

I want install Gallerie software ( http://gallery.menalto.com )
but i have some problem :
1/
Code:

Warning!
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 /var/www/web6/web/pics>
        AllowOverride Options FileInfo
</Directory>
If you are running PHP in CGI mode, this message is unavoidable.

2/
Code:

Warning!
Magic quotes are on. Your webserver administrator can turn them off by putting :
        magic_quotes_gpc = Off
in your php.ini file.

3/
Code:

Warning!
Either mod_rewrite is not installed or your .htaccess file is not enabled (see above). Either way, we'll have to use longer URLs in the Gallery. If you want to turn it on, first make sure that your .htaccess file is being obeyed. If it still doesn't work, you may need to reconfigure and rebuild Apache with this flag:
        --enable-module=rewrite

The gallery run, but not with rewrite url...

I have try :
1/ add the code in ' Directives Apache' of domain
2/ modify On to Off in php.ini
3/ i think is already enable?

But, no url rewrite...

Can you help me ?

thanks

falko 4th December 2005 23:18

Quote:

Originally Posted by fpl
2/ modify On to Off in php.ini

Did you restart Apache afterwards?

Quote:

Originally Posted by fpl
3/ i think is already enable?

Do you see anything like
Code:

LoadModule [...]/mod_rewrite.so
or similar in your httpd.conf?
Which distribution do you use?

fpl 5th December 2005 01:01

Quote:

Originally Posted by falko
Did you restart Apache afterwards?


Do you see anything like
Code:

LoadModule [...]/mod_rewrite.so
or similar in your httpd.conf?
Which distribution do you use?

yes, restart Apache2 ... and ISPc

my httpd.conf (apache2) :
Code:

# This is here for backwards compatability reasons and to support
#  installing 3rd party modules directly via apxs2, rather than
#  through the /etc/apache2/mods-{available,enabled} mechanism.
#
#LoadModule mod_placeholder /usr/lib/apache2/modules/mod_placeholder.so

and my distrib is debian sarge ;)
Just new debian with ispconfig.. I'm install with your tutoriel

falko 5th December 2005 10:01

Try this:

Code:

cd /etc/apache2/mods-enabled
ln -s /etc/apache2/mods-available/ssl.conf ssl.conf
ln -s /etc/apache2/mods-available/ssl.load ssl.load
ln -s /etc/apache2/mods-available/rewrite.load rewrite.load
ln -s /etc/apache2/mods-available/suexec.load suexec.load
ln -s /etc/apache2/mods-available/include.load include.load
/etc/init.d/apache2 restart


fpl 5th December 2005 19:11

Quote:

Originally Posted by falko
Try this:

Code:

cd /etc/apache2/mods-enabled
ln -s /etc/apache2/mods-available/ssl.conf ssl.conf
ln -s /etc/apache2/mods-available/ssl.load ssl.load
ln -s /etc/apache2/mods-available/rewrite.load rewrite.load
ln -s /etc/apache2/mods-available/suexec.load suexec.load
ln -s /etc/apache2/mods-available/include.load include.load
/etc/init.d/apache2 restart


hello falko,
I have already this in /etc/apache2/mods-enabled :
Code:

lrwxrwxrwx  1 root root 36 2005-12-29 20:41 cgi.load -> /etc/apache2/mods-available/cgi.load
lrwxrwxrwx  1 root root 40 2005-12-29 21:07 include.load -> /etc/apache2/mods-available/include.load
lrwxrwxrwx  1 root root 37 2005-12-29 20:42 perl.conf -> /etc/apache2/mods-available/perl.conf
lrwxrwxrwx  1 root root 37 2005-12-29 20:42 perl.load -> /etc/apache2/mods-available/perl.load
lrwxrwxrwx  1 root root 37 2005-12-29 20:41 php4.conf -> /etc/apache2/mods-available/php4.conf
lrwxrwxrwx  1 root root 37 2005-12-29 20:41 php4.load -> /etc/apache2/mods-available/php4.load
lrwxrwxrwx  1 root root 40 2005-12-29 21:07 rewrite.load -> /etc/apache2/mods-available/rewrite.load
lrwxrwxrwx  1 root root 36 2005-12-29 21:07 ssl.conf -> /etc/apache2/mods-available/ssl.conf
lrwxrwxrwx  1 root root 36 2005-12-29 21:07 ssl.load -> /etc/apache2/mods-available/ssl.load
lrwxrwxrwx  1 root root 39 2005-12-29 21:07 suexec.load -> /etc/apache2/mods-available/suexec.load
lrwxrwxrwx  1 root root 40 2005-12-29 20:39 userdir.conf -> /etc/apache2/mods-available/userdir.conf
lrwxrwxrwx  1 root root 40 2005-12-29 20:39 userdir.load -> /etc/apache2/mods-available/userdir.load

I think it's good ?
and :
Code:

more rewrite.load
LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so


falko 5th December 2005 20:04

ok, mod_rewrite is enabled so I think the .htaccess file of your gallery software isn't ok. Can you post it here?

Mountainman 30th May 2006 20:14

Hi Falko,

I'm currently confronted with the same probleme where gallery2 isn't able to detect the mod_rewrite.

However when I do a http -l only the following modules show:
Code:

Compiled in modules:
  core.c
  mod_access.c
  mod_auth.c
  mod_log_config.c
  mod_logio.c
  mod_env.c
  mod_setenvif.c
  prefork.c
  http_core.c
  mod_mime.c
  mod_status.c
  mod_autoindex.c
  mod_negotiation.c
  mod_dir.c
  mod_alias.c
  mod_so.c

and not the mod_rewrite :mad:

How am I able to fix this?

grz,

sjau 30th May 2006 22:54

If this all causes too much trouble to get to work and if you need your gallery quickly I can recommend this one here: http://coppermine-gallery.net/index.php

falko 30th May 2006 23:51

Quote:

Originally Posted by Mountainman
I'm currently confronted with the same probleme where gallery2 isn't able to detect the mod_rewrite.

Which distribution do you use?

Mountainman 31st May 2006 01:27

I use Debian Sarge


All times are GMT +2. The time now is 00:09.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.