Hi,
Just trying to setup a fresh install ...
--> When trying Plugin -> URL Rewrinting, I have no option screen displayed but instead a (nice) message "Welcome Admin" (tools icons not showing on left, I have to click on Site Admin to show them again)
FYI, in table g2_PluginMap, the line containing "rewrite" has 0 in g_active column (tryied to set it at 1 ... server internal error)
--> when clicking WebDAV, the server answers "Mod rewrite not installed" ... when showing phpinfo(), mod_rewrite is loaded.
FYI, there is no .htaccess installed (by default ?) in the gallery directory.
FYI, I've tryied 'some' .htaccess from web/forum ... no one seems to work (and, I don't know nothong about these directives ...
) but generates server errors ... in the apache error_log : .htaccess: Invalid command Rewrite
Sounds like if mod_rewrite was not installed or active !
What is supposed to be the 'default' .htaccess ?
Any ideas ? Any suggestion ? Any advices ?
FYI : all others servers/app works fine (spip, wordpress, dolibarr, ...)
Thks in advance
p
URL de Gallery = http://192.168.1.253/galerie/main.php
Gallery version = 2.3 noyau 1.3.0
API = Noyau 7.54, Module 3.9, Thème 2.6, Intégré 1.5
PHP version = 5.2.6 apache2handler
Serveur Web = Apache/2.2.11 (Unix) PHP/5.2.6
Base de données = mysqli 5.1.31, lock.system=flock
Boîtes à outils = ArchiveUpload, Exif, NetPBM, Gd
Accélération = none, none
Système d'exploitation = Linux srv-linux2 2.6.16.13-4-default #1 Wed May 3 04:53:23 UTC 2006 x86_64
Thème par défaut = matrix
gettext = activé
Langage = fr_FR
Navigateur Web = Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)
Lignes dans la table GalleryAccessMap = 12
Lignes dans la table GalleryAccessSubscriberMap = 1
Lignes dans la table GalleryUser = 2
Lignes dans la table GalleryItem = 1
Lignes dans la table GalleryAlbumItem = 1
Lignes dans la table GalleryCacheMap = 0
Posts: 16503
Go to Site Admin > Plugins and install the URL Rewrite plugin. Then click on Configure.
http://codex.gallery2.org/Gallery2:Modules:rewrite
Correct, Gallery creates it when you do this. If it can't create it, then you'll need to create an empty .htaccess file and set the permissions to 666 so the web server can write to it. Once you've configured the URL Rewrite plugin, then you can set the permissions back to 644.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 4
Hi nivekiam,
Thanks for your answer.
The URL Rewrite plugin was allready installed ... but no 'options panel' accessible.
I removed the original URL Rewrite plugin from modules subdirectory, then reinstall from 'download new plugin'.
New install ok, but still no access to configuration.
When clicking on 'URL Rewrite' on the left menu, still having a 'welcome Admin' message. Nothing else (execpt that the menu on the left only contains account info + change password).
)
The screen copy (http://codex.gallery2.org/Image:Urlrewritesetup.jpg) mentionned in the codex is not displayed. That is the problem (one of them ...
So, is it a way to manually configure the URL Rewrite module ... or to force the display of the configuration screen ?
OK for .htaccess automatically generated.
Posts: 16503
With it installed, when you go to Site Admin > Plugins on the right, what are the options for the URL Rewrite plugin? It should say, Configure, Uninstall, Delete. You shouldn't even be seeing the URL Rewrite option on the left side until after you've configured it.
Can you post a screenshot of what you are seeing?
Is your site publicly accessible? If so, can you PM me (click Write to author) login details?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 4
Hi nivekiam,
Here are the screenshots :

gallery_01.jpg --> what I have when clicking on Options (rewrite in orange ...)
gallery_02.jpg --> after the click
I send you through PM the url for the site ...
Thanks a lot for all
p
Posts: 16503
AH, I see. From the URL you sent me I see it's still trying to resolve a local IP address (your 192.168.... address).
Edit config.php, near the bottom of the file is a setting for baseUri. Make sure that it's empty or uses the domain name for your site. If you access gallery from multiple URLs, make sure it's empty, but I'm not sure URL Rewriting will work properly if you access Gallery from multiple URLs.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 16503
pierrem, I've received your other PMs, but I can't log in or even connect to your Gallery until after you've fixed that line in config.php. Once you've done that see if you can get everything done you need.
You should really only access Gallery through one URL.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 16503
o.k. Now, go to Site Admin > Plugins and for URL Rewrite click configure
When I tried it, I got the correct page. However, when I tried to use the tested, it didn't work... I tried mod_rewrite and it's not working on your server:
The other two manual tests don't work either.
You need to get that working on your server:
http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html
Though you could try using pathinfo and that should work, but you end up with main.php in your URL. To do that, go to Site Admin > Plugins and delete the URL Rewrite plugin, then go to Get More Plugins (tab) and re-download the plugin to start fresh.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here