[SOLVED] symbolic links to gallery directory?

RageEar

Joined: 2002-10-15
Posts: 3
Posted: Thu, 2004-06-24 19:16

Here's what I want to accomplish:

I want http://dianawalden.rageear.com/ to point to where I installed Gallery, which would be http://dianawalden.rageear.com/gallery/.

I've tried to use a symbolic link from http://dianawalden.rageear.com/index.php to http://dianawalden.rageear.com/gallery/index.php, but when I do that I get the error message complaining about the approved file list:

approved file list. To include this file you must edit %s's index.php and add %s to the \$safe_to_include array"), 'Gallery', $include); exit; } include(dirname(__FILE__) . "/$include"); } else { include("albums.php"); } ?>

I tried to editing index.php to include the linked index.php (using the explicit path) but that did not solve the problem.

I also tried using .htaccess (via mod_rewrite) to point the root /, to /gallery. Also resulting in the same problem.

Any suggestions? My config is down below.

Thanks in advance!

----
Gallery URL (optional but very useful): http://dianawalden.rageear.com/gallery
Gallery version: 1.4.3-pl2
Apache version: 1.3.27
PHP version (don't just say PHP 4, please): 4.3.5
Graphics Toolkit: netpbm
Operating system: Linux

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Thu, 2004-06-24 22:43

Sounds like the file's corrupt. Re-upload index.php.

 
RageEar

Joined: 2002-10-15
Posts: 3
Posted: Fri, 2004-06-25 03:37

Not to question the wisdom of a Gallery developer, but I don't think that is the case, simply because if I access the gallery directly (via http://dianawalden.rageear.com/gallery/index.php) everything works out OK.

However, I will try uploading a new version of the file and report back my results.

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Fri, 2004-06-25 04:40

Well, the 'error' you posted isn't an error. It's part of the raw text of the page, completely unprocessed. I know that using symlinks and mod_rewrite is not an issue when redirecting traffic. You should check for error messages in your apache logfiles.

 
RageEar

Joined: 2002-10-15
Posts: 3
Posted: Mon, 2004-06-28 20:05

Silly me!

To think that I knew what was going on better than the Lead Developer of Gallery.

I re-uploaded index.php and problem was solved!

Thanks very much and I apologize profusely for doubting your knowlege!

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Mon, 2004-06-28 20:10

Heh. Not a problem.. just glad you got it fixed.