Installing locally

Ok I'm getting into modifying this HEAVILY, or at least that's the plan. I was wondering who's tried to install this locally?

As you can imagine I'm having a little bit of trouble getting past the install bit. I'm sure it's something minor.

I'm running this off xammp. The areas I guess that could go wrong are the following:

Now I've put everything in the folder structure as below.
`

$conf['main_site_url'] = "http://localhost/websites/bkv4/pictures/";

// If you're in a different time zone from your server, set the offset in hours:

$conf['time_offset'] = 0;

// Tags allowed in comments

$conf['allowed_tags'] = "";

// The path to zenphoto on the server - e.g. /home/user/public_html/zenphoto. No trailing slash/

$conf['serverpath'] = "/home/user/public_html/websites/bkv4/pictures/";

// The URL of zenphoto from the domain root. - e.g. 'http://www.yoursite.com/zenphoto'

// (or '/zenphoto' in that case). No trailing slash/

$conf['webpath'] = '/pictures';`

Anyone got any ideas?

Comments

  • trisweb Administrator
    Try the new version. It does away with the path settings.

    Also, if you're planning on modifying it heavily, I would appreciate you communicating with me so whatever you create can work its way back into the program for everyone to use.
  • Sweet, well I got the admin section up and running, so it installs nicely and mysql database is all filled up. The problems then comes when I want to actually view the site itself, and then when I want to upload an image it just doesn't like that either.

    Basically I get:

    MySQL Error: Could not select the database
    Error: The 'albums' directory cannot be found or is not readable.

    However the admin section works a treat.

    Again, once this is sorted out I think a nice little tutorial for everyone would be in order :).
  • trisweb Administrator
    Oh! I know what it is! I ran into the same problem with XAMPP -- it has a config.php that conflicts from the default include path (not sure why it checks there first, but it does.) Either find and remove/rename that, or change the name of zenphoto's config.php to something like zp-config.php, and fix the one include of it in functions.php. I'll make sure to fix this for future releases...

    Of course a tutorial will be present for the 1.0 release, but for the beta, I basically want to say, "if you can't figure it out then I don't want you installing it" ;-)
  • Heh, no I wasn't implying that you do the tutorial, since it's that simple I'll write the tutorial, in my attempts to keep everyone who's a bit dim at this like me (ie can't work it out for themselves) up and running with this. You should ideally be concentrating on the software itself, and I can fully understand that between checking these boards and whatnot loads of your time is being sucked away. Thanks Tris.
  • Okay now that's weird, the gallery is now working, folders are being formed nicely. The images are being transfered nicely, but I get

    Object not found!

    message.

    Nearly there which is soo annoying, since I can then start playing with the theming of this, which honestly I've been waiting to do for the past 3 months :).

    Oh yeah and the actual thumbnail isn't showing up either, just the title and the description is coming up.
  • trisweb Administrator
    Where does the Object not found happen exactly?
  • So I have the following structure:
    http://localhost/websites/bkv4/pictures/

    Well for example if I've made a new album called london, and I add some pictures in there, then I get the message on this page:

    http://localhost/websites/bkv4/pictures/london/
  • trisweb Administrator
    Did you rename config.php like I said? It could still be some conflict with the XAMPP stuff... also check your php.ini file (wherever that is... you can use a test.php file with `<?php phpinfo(); ?>` to find out... and remove any "include path" type things.
  • Hmm, well I did sort out the files in ZP, so now I've got zp-config rather than config.php. I made sure I sorted that out in function.php, which is how I got the program working to a certain extent, with the exception of what the final part of the equation.

    Is there any other place that config.php is called? Don't worry too much about it, I'll be able to skin things online, it'll just take a while longer. If I find the solution to this I'll be sure to post it so that others can find the answer to this as well.
  • trisweb Administrator
    functions.php should be the only place.

    zenphoto should never print anything like "Object not found!" so my guess is that it's still some interfering XAMPP software. If you didn't already, go to the php.ini and kill any include paths.
  • Mel Member
    I am getting an error on my Gallery as well. I have added an album and a photo and when I go to the Gallery page I get this error:

    "Not Found
    The requested URL /collagestudios/gallery/index.php was not found on this server."

    There is a index.php in that directory but its bringing up my photos. Any help!!

    Mel
  • mel > you working locally? i can get zenPhoto up and running on a remote server, no problem. but when it comes to running it on localhost (windows box) i only get as far as getting the admin side to run, but it does not create thumbs and when i click through to an album i get a 404. although i do see the index page..

    yeah, i tried all the suggestions above...
  • Mel Member
    I dont know what happened but it works now... I had editted the .htacess wrong. Try there.
Sign In or Register to comment.