HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   .htaccess and Rewrite woes with Debian4.0 and ISPconfig (http://www.howtoforge.com/forums/showthread.php?t=12218)

tony98 20th April 2007 21:20

.htaccess and Rewrite woes with Debian4.0 and ISPconfig
 
I recently installed Debian4.0 via the perfect install guide and ISPconfig ontop of that. I've attempted to setup myPh3 Gallery (http://myph.sourceforge.net/) and phpAutoGallery (http://phpautogallery.sourceforge.net/) with little or no sucess. (I've run phpAutoGallery before with no troubles)

myPh3 started with complaining about "Options not allowed here" I changed the apache2.conf to AllowOverride All in that directory but that just lead me to a new problem.
[Fri Apr 20 11:32:07 2007] [error] [client x.x.x.x] Directory index forbidden by Options directive: /var/www/web7/web/myPh3/

web/myPh3/.htaccess should be redirecting the client....

Quote:

Options +FollowSymLinks -MultiViews

RewriteEngine On
RewriteRule ^myPh3/?$ myPh3.core.php [L]
RewriteRule ^myPh3/(album|photo)/(.*)$ myPh3.core.php?$1=$2 [L]
So, after that I figured something was broken and proceeded to not find any information on myPh3 users.. so, I moved to something I've used before (even so I think I would like to try myPh3 in the future)

phpAutoGallery is also giving me problems with the url rewrite.. This is the page that loads when I go to the main gallery page.. notice the recursive /photobox
Quote:

Page: //home/www/web7/web/photobox//photobox/ not found!
[ admin ]
Indexed by phpAutoGallery v0.9.6
2004 All rights reserved.
and here is the .htaccess file for that directory.
Quote:

RewriteEngine on

RewriteCond %{REQUEST_URI} !.*__phpAutoGallery/wrapper\.php.*
RewriteRule .* /photobox/__phpAutoGallery/wrapper.php [NE,QSA,L]
Any ideas? I've checked /etc/apache2/mods-enabled and rewrite is turned on.


Thanks !

-Tony

elmotheelk 27th April 2007 02:30

Hi Tony,

Search Google on my own script, I came across your problem with my myPh3 script. Very nice to see people actually trying it out and using it! THerefor, I'd be more than willing to help you with your problems.

First of all, you can simply turn off URL rewriting to see it the script is set up correctly. Get your browser to /myPh3/myPh3.core.php (if you installed the script in a website subdirectory /myPh3) hereafter. If this works, we can direct to the rewrite problem. Are you sure your used the /myPh3/myPh3 URL? It does NOT use the directory default page... You can also contact me at the SourceForge site http://myph.sf.net . Hope to hear from you.

Eric


All times are GMT +2. The time now is 16:52.

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