So, I'm trying to enable short URLs to make my gallery Google-friendly and I'm having some problems.
When I try the "test url" link in the Site Admin, I get "No input file specified." Actually turning on short URLs gets me the same thing when I try to open an album (the thumbnail for which never showed up, as well).
I suspect it has to do with my host running PHP as CGI. (Incidentally, they're running Apache 1.3.31.)
I attempted to use the URL Rewrite module (0.1.1) from this thread, but that didn't help. FYI, here's how it went:
- I unpacked the module in the modules directory.
- I went to Site Admin > Modules and installed URL Rewrite.
- I clicked "configure."
- Under "Configuring your Webserver," I get "Apache mod_rewrite is working, but Apache is not configured with the AcceptPathInfo directive enabled." (I was under the impression from the information under the short-URL option in the Site Admin that AcceptPathInfo was only necessary with Apache 2. But, honestly, I don't really understand it, anyway.)
- Under "Gallery .htaccess file," I get "The .htaccess file does not exist."
- I create an empty .htaccess file in the gallery2 directory.
- I click "Test .htaccess Again" and I get "Your .htaccess file is ready to be updated."
- I click "Update .htaccess" and get "Your .htaccess file is up to date. No changes are required." (The error under "Configuring your Webserver" is still there.]
- I return to Modules and activate URL Rewrite.
- The page refreshes with URL Rewrite activated. However, all the styles are gone.
- I return to the main gallery and I'm suddenly logged out, though everything seems to work OK.
- I log back in, return to Site Admin > General and turn on short URLs. Everything acts the way it did the first time I turned them on. The styles are also still missing.
- I turn off short URLs and I deactivate and uninstall URL Rewrite. The .htaccess file remains, so I have to delete it manually.
- The styles don't return until I truncate the address back to the root (mydomain.com/gallery2/).
My problem may be really obvious, but please understand that the actions I just performed cover almost the entirety of my server knowledge.
Is there something I can do to make short URLs work?[/]
Posts: 389
Try URL Rewrite 0.1.2 if you have Apache mod_rewrite.
Posts: 25
OK, I tried the new one and here's what happened ...
Error (ERROR_PERMISSION_DENIED) :
* in modules/core/classes/helpers/GalleryUserHelper_medium.class at line 207 (gallerystatus::error)
* in modules/core/classes/GalleryCoreApi.class at line 423 (galleryuserhelper_medium::assertsiteadministrator)
* in modules/core/SiteAdmin.inc at line 46 (gallerycoreapi::assertuserissiteadministrator)
* in modules/core/classes/GalleryView.class at line 246 (siteadminview::loadtemplate)
* in main.php at line 257 (siteadminview::doloadtemplate)
* in main.php at line 46
* in main.php at line 39
Because of your server configuration, we are unable to properly test whether mod_rewrite is properly installed.
This is a result of trying to install gallery in a non standard directory. You need to edit
line 6 in /my correct directory here/gallery2/modules/rewrite/test/mod_rewrite/custom/.htaccess
and make sure it reads
RewriteBase /cgi-system/php.cgi/gallery2/modules/rewrite/test/mod_rewrite/custom/
Something I'm doing wrong?[/]