Page 1 of 1

Globalpath problem

Posted: 30 Mar 2007, 04:57
by mR_CaESaR
Hi,

I seem to be having problems setting up the global path.

I'm testing the config files offline on apahce and want to get it up and running before i put it all online. Hopefully i can explain what i'm trying to do.

Here goes.

Basically all of the imagevue files are currently in a 'test/imagevue/' folder. So if i type http://localhost/test/imagevue/ i can get to the gallery fine. What i want to do is make it so when i type http://localhost/test , my home page is the gallery, but i want to stick all the imagevue files and folders in a separate folder with all the functionality from the test directory.

The reason i've put it on a test/imagevue is so i can test it on my local host, if it works, because currently if i type http://localhost it lists the apache details and i want to keep it at that. Once i have it working properly i can upload it to my webhost as a /imagevue folder

eg. www.domainname.com/imagevue (is where everything is located), when i type www.domainname.com it points to the index.php file on the imagevue folder and when i do the www.domainname.com/admin it'll point to the /imagevue/admin module, basically i just want all functionality without having to put in the /imagevue/ directory.

I tried setting the globalpath = imagevue/ but that didn't work and it just shows a directory listing of http://localhost/test. I'm guessing i need some sort of index.html/php pointer located in the /test directory right?

Any help would be greatly appreciated.

Posted: 15 Apr 2007, 08:25
by mjau-mjau
Basically, you need to copy your index.php file from /test/imagevue/ one level down to the /test/ folder. From there you should be able to do:

http://localhost/test/?globalpath=imagevue/

or even better, hardcode the globalpath into the copied index.php on line 11:
$globalpath='imagevue/';

Keep in mind, your apache server must be set up to read index.php as folder index files also, not only index.html. It sounds like your server currently only handles index.html ... If not, you need to link to the files like this:

http://localhost/test/index.php