mod_rewrite and permalink problem with fedora

gossamer

Joined: 2011-01-07
Posts: 47
Posted: Sun, 2011-01-09 22:21

Hi,

I have a working standalone installation of gallery2 using RPMs (gallery2-2.3.1-2) on my Fedora 14 system. I've enabled the URL Rewrite module, but it still insists on using PHP-Info. I've done quite a bit of reading, and really have no idea how to get it working.

I've created a phpinfo.php file, and it shows that mod_rewrite is enabled.

- I have a writable .htaccess in /usr/share/gallery2, the root directory for the gallery install.
- I have the following at the bottom of my main httpd.conf file:
<Directory /usr/share/gallery2>
AllowOverride Options FileInfo
</Directory>
- Permalinks and "Show Item" from URL Rewrite are enabled in the URL Rewrite admin page.
- The Setup tab in the URL Rewrite section just says:

Approved referers
The parser you have selected does not support a referer check.
- The Test tab in the URL Rewrite section says:
PHP Path Info Support
Testing if the server supports PHP Path Info. Success
The current status may not be accurate, you have forced the test to pass.

How have I forced the test to pass? I've read through the various .htaccess files, but I have no idea if they're correct or complete. Why are there so many of them?

My gallery2 installation is in /usr/share/gallery2. I also have a collection of gallery1 albums in /usr/share/gallery2/gallery1. Here are a list of all the .htaccess files:

[root@fc14 gallery2]# pwd
/usr/share/gallery2
[root@fc14 gallery2]# find . -name .htaccess
./.htaccess
./lib/tools/po/.htaccess
./modules/rewrite/data/mod_rewrite_no_options/custom/.htaccess
./modules/rewrite/data/mod_rewrite_no_options/gallery/.htaccess
./modules/rewrite/data/mod_rewrite_no_options/gallery2/.htaccess
./modules/rewrite/data/mod_rewrite/custom/.htaccess
./modules/rewrite/data/mod_rewrite/gallery/.htaccess
./modules/rewrite/data/mod_rewrite/gallery2/.htaccess
./modules/webdav/data/options/.htaccess

The contents of the ./modules/rewrite/data/mod_rewrite/gallery2/.htaccess file is:

[root@fc14 gallery2]# cat modules/rewrite/data/mod_rewrite/gallery2/.htaccess
# Testing mod_rewrite full functionality
Options +FollowSymLinks
RewriteEngine On
RewriteBase /gallery2/modules/rewrite/data/mod_rewrite/gallery2/
RewriteRule Rewrite.txt Works.txt [L]

There also doesn't appear to be any indication of a problem in any of the apache logs.

How can I troubleshoot this?

Thanks,
Alex

 
gossamer

Joined: 2011-01-07
Posts: 47
Posted: Tue, 2011-01-11 02:08

Hi all,

I'm really stuck with Fedora 14 and gallery2 with mod_rewrite, and not sure what else I can do to get this working. Does anyone have any further ideas?

Why are there so many .htaccess files? How many should there be, and what should their contents be in order to properly support mod_rewrite?

Any ideas greatly appreciated.
Thanks,
Alex

gossamer wrote:
Hi,

I have a working standalone installation of gallery2 using RPMs (gallery2-2.3.1-2) on my Fedora 14 system. I've enabled the URL Rewrite module, but it still insists on using PHP-Info. I've done quite a bit of reading, and really have no idea how to get it working.

I've created a phpinfo.php file, and it shows that mod_rewrite is enabled.

- I have a writable .htaccess in /usr/share/gallery2, the root directory for the gallery install.
- I have the following at the bottom of my main httpd.conf file:
<Directory /usr/share/gallery2>
AllowOverride Options FileInfo
</Directory>
- Permalinks and "Show Item" from URL Rewrite are enabled in the URL Rewrite admin page.
- The Setup tab in the URL Rewrite section just says:

Approved referers
The parser you have selected does not support a referer check.
- The Test tab in the URL Rewrite section says:
PHP Path Info Support
Testing if the server supports PHP Path Info. Success
The current status may not be accurate, you have forced the test to pass.

How have I forced the test to pass? I've read through the various .htaccess files, but I have no idea if they're correct or complete. Why are there so many of them?

My gallery2 installation is in /usr/share/gallery2. I also have a collection of gallery1 albums in /usr/share/gallery2/gallery1. Here are a list of all the .htaccess files:

[root@fc14 gallery2]# pwd
/usr/share/gallery2
[root@fc14 gallery2]# find . -name .htaccess
./.htaccess
./lib/tools/po/.htaccess
./modules/rewrite/data/mod_rewrite_no_options/custom/.htaccess
./modules/rewrite/data/mod_rewrite_no_options/gallery/.htaccess
./modules/rewrite/data/mod_rewrite_no_options/gallery2/.htaccess
./modules/rewrite/data/mod_rewrite/custom/.htaccess
./modules/rewrite/data/mod_rewrite/gallery/.htaccess
./modules/rewrite/data/mod_rewrite/gallery2/.htaccess
./modules/webdav/data/options/.htaccess

The contents of the ./modules/rewrite/data/mod_rewrite/gallery2/.htaccess file is:

[root@fc14 gallery2]# cat modules/rewrite/data/mod_rewrite/gallery2/.htaccess
# Testing mod_rewrite full functionality
Options +FollowSymLinks
RewriteEngine On
RewriteBase /gallery2/modules/rewrite/data/mod_rewrite/gallery2/
RewriteRule Rewrite.txt Works.txt [L]

There also doesn't appear to be any indication of a problem in any of the apache logs.

How can I troubleshoot this?

Thanks,
Alex