PDA

View Full Version : Gallery & PHP-Nuke (Fantastico Path)



trooper
04-07-2008, 12:50 PM
Hi Guys,

I am having a problem installing the Menalto Gallery via Fantastico.

It constantly reports, the folder or directory does not exist. :(

The installation can not be completed:

- This directory already exists or the directory field is empty
- No valid directory name provided.

I am told for the gallery to function correctly with PHP-Nuke it needs to be installed in the PHP-Nuke modules directory.

ie .. modules/gallery
(php-nuke is my root, as installed via fantastico)

so I need to install the gallery in www.mydomain.com/modules/gallery.

Now this just refuses to work, I have tried everything from various examples ..

modules/gallery
public_html/modules/gallery
username/public_html/modules/gallery
home/username/public_html/modules/gallery

All with & without the leading and trailing slashes.

Note: Fantastico states, the destination folder (gallery) must NOT exist, it will be created.

Again I have tried this with and without the folder being present, at 'supports' suggestion.

Support, who are unwilling or unable to help, just suggest using SimpleScripts, or another gallery application. :mad:

A) SimpleScripts does not list the Menalto Gallery as an installation option.
B) I want to use the Menalto Gallery, as offered by HostMonster
C) this seems such an easy question for a host to answer, and tell me the relative path to a domain folder.

Anyway, without getting frustrated over that, does anyone know the EXACT/RELATIVE path to mydomain.com/modules/gallery. :confused:

Or a KNOWN working way to install gallery in a location other than root.

Thanks in advance for any help :)

shadmego
04-07-2008, 08:20 PM
I don't think you can install a Fantastico program into a directory that is inside another directory ....

For instance, you can install a script into public_html, or public_html/gallery, but not public_html/gallery/blog.

The reason for this is the Fantastico script doesn't seem to like anything other than a directory name (notice it's not a path) for the installation location.

There is a way around this.

Install your gallery into a directory that you know will not overwrite anything else.

If your public_html directory has a folder named gallery, then install it in a subdomain folder. Don't worry, we will move it later.

Once the installation is complete, browse to the installation to verify it went smoothly. After verification, open File Manager and navigate to the location of your gallery installation.

Select the gallery folder and move it to the modules directory of your php-nuke installation. I don't know your directory structure, but it might be something like public_html/modules/gallery.

Once the move is complete, go into your gallery folder and look for the config.php file. It should be just inside the gallery folder. Open this file for editing.

Look for a variable:


$gallery->setConfig('data.gallery.base', '/home/accountname/public_html/modules/gallery/g2data/');


I don't know if that is your path, but adjust it to reflect your specific settings and directory structure. Save the changes you made to the config.php file and then test again.

You should now be able to visit your gallery by pointing your browser to the new location:

www.yourdomain.com/modules/gallery (http://www.yourdomain.com/modules/gallery)

Let me know if this works for you.

~regards, and welcome to the Community!

trooper
04-08-2008, 03:29 PM
Howdy,

That worked right up until I tried to login.

I moved the folder, changed the config.php

went to the direct site www.mydomain.com/modules/gallery2

Everything OK.

completed the install (www.mydomain.com/modules/gallery2/install)

Walked through complete (standalone) install, all ok
Databse setup ok.

After completetion, on the Gallery homepage, when I go to log in as Admin, I get the following error:

Not Found
The requested URL /gallery2/main.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

What went wrong ?

trooper
04-08-2008, 03:45 PM
Almost fixed:

Re-run the install again, and selected "erase all data and tables"

This worked fine, not sure what happened the first time.

But the gallery works as stand alone.

Gonna integrate into php-Nuke now, I'll keep you posted

Cheers