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
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.
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
Thanks
`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.
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.