Need help installing on own linux server

Hi guys - I have been using Zen Photo since the first beta - and it has become my best friend :)

I recently made the jump from shared hosting to my own dedicated box, and have been trying to get ZP installed for a couple days. The install runs fine, I can access the admin pages, it creates the SQL DB etc and all goes well - except I get a blank page when trying to view the gallery.

My server logs show the following message:

[client 'my ip address'] PHP Warning: main() [function.main]: open_basedir restriction in effect. File(/usr/share/pear/classes.php) is not within the allowed path(s): (/var/www/vhosts/my domain.com/httpdocs:/tmp) in /var/www/vhosts/mydomain.com/httpdocs/gallery/zen/template-functions.php on line 5
[client 'my ip address'] PHP Warning: main(classes.php) [function.main]: failed to open stream: Operation not permitted in /var/www/vhosts/mydomain.com/httpdocs/gallery/zen/template-functions.php on line 5
[client 'my ip address'] PHP Fatal error: main() [function.require]: Failed opening required 'classes.php' (include_path='.:/usr/share/pear:') in /var/www/vhosts/mydomain.com/httpdocs/gallery/zen/template-functions.php on line 5

So... not being exactly skilled at this, I'm not sure what all that means - except I gather something about Pear and not being able to access classes.php? If anyone has any thoughts I could really use some ideas.

I have of course edited to .htaccess and also included the webpath and full server path in the zen config file. I also attempted with mod rewrite off just in case that had anything to do with it...

If I can't get it running on my new box, I'll sign up for a shared hosting account again just to use ZP, I couldn't live without it. :)

Comments

  • Message from my tech support who also looked at it:

    Pear is located in the default location. /usr/bin/pear . The pear files are in /usr/share/pear. If there are missing modules or additional modules that are causing the problem it's not in the logs. If this is the case it should be there. I've checked the paths you included and they are correct.
  • Is there a list of required PHP modules posted some place?
  • the only php module required is gd2
  • I ended up figuring it out.. after screaming at my box for a couple days :) simple server misconfiguration.... I should have known better than to blame ZP :)
  • trisweb Administrator
    Yes, it seems like it found pear's "classes.php" before zenphoto's, and tried to include it first. Zenphoto does not use Pear, but we've run into several naming conflicts because Pear likes to put itself into the PHP include path, which is not nice. Glad you figured it out :)
  • Hello,

    I have exactly the same problem of slidenby but I didn't catch the resolution ... :-/ is anybody could help me for use correctly ZP in my dedicated box please ? because I never had error before on shared hosting ...

    Thanks
  • It's should be a configuration problem of my dedicated box (because it's working well in an other sharing host and locally on my own computer) so you can find my php.ini, httpd.conf and zp-config.php file if you want at this link : http://epsyllo.free.fr/zenphotohelp/

    Thanks
  • Upload image via the admin panel control doesn't work. I have strange record on my database like :
    `photo_albums` VALUES (2, NULL, 'premier', 'premier', NULL, NULL, NULL, 1, NULL, NULL, NULL);

    The directory "premier" was created in "ndd.com/zenphoto/albums/" but this is no image inside.
  • my phpinfo() is avaible on http://epsyllo.free.fr/zenphotohelp/phpinfo.html

    thanks
  • trisweb Administrator
    Pierre -- where is the actual Zenphoto install? Can we look at it? Thanks~

    Btw - this is probably a completely different problem -- configurations on dedicated servers can be harder to predict, because you're entirely in control over them. Start a new thread in the future, for now we can discuss this here.
Sign In or Register to comment.