1.2.8 Installation and permission

Hi gang

I am having this massive problem with installing ZenPhoto on a dedicated server.

This is version 1.2.8 [4881]

Doing all the manual permissions I have done so using a test install, but what happens then is I can run Setup but as soon as I save the database settings the page goes blank. And every page goes blank, front page, setup, admin and all others. Only way to get them back is to delete things from the zp-data folder.

Using the same files on my shared hosting worked fine, without any problems.

Wordpress was installed on the same server without any problems.

I will let the following info from the setup page be included.

`
Warning: copy(/home/gregdo3/public_html/gallerypanorama/.htaccess) [function.copy]: failed to open stream: Permission denied in /home/gregdo3/public_html/gallerypanorama/zp-core/setup.php on line 244

Warning: fopen(/home/gregdo3/public_html/gallerypanorama/zp-data/setup_log.txt) [function.fopen]: failed to open stream: Permission denied in /home/gregdo3/public_html/gallerypanorama/zp-core/setup.php on line 57

Warning: fwrite(): supplied argument is not a valid stream resource in /home/gregdo3/public_html/gallerypanorama/zp-core/setup.php on line 58

Warning: fclose(): supplied argument is not a valid stream resource in /home/gregdo3/public_html/gallerypanorama/zp-core/setup.php on line 59

Warning: fopen(/home/gregdo3/public_html/gallerypanorama/zp-data/setup_log.txt) [function.fopen]: failed to open stream: Permission denied in /home/gregdo3/public_html/gallerypanorama/zp-core/setup.php on line 57

Warning: fwrite(): supplied argument is not a valid stream resource in /home/gregdo3/public_html/gallerypanorama/zp-core/setup.php on line 58

Warning: fclose(): supplied argument is not a valid stream resource in /home/gregdo3/public_html/gallerypanorama/zp-core/setup.php on line 59

Warning: Cannot modify header information - headers already sent by (output started at /home/gregdo3/public_html/gallerypanorama/zp-core/setup.php:244) in /home/gregdo3/public_html/gallerypanorama/zp-core/setup.php on line 275
[Zen Photo Setup] Setup

Welcome to Zenphoto! This page will set up Zenphoto on your web server.
Systems Check:

* PHP version 5.2.6
* PHP Safe Mode
* PHP magic_quotes_gpc [is enabled]
Warning!

You should consider disabling magic_quotes_gpc. For more information See #25 of the Zenphoto troubleshooting guide.

Warning: fopen(/home/gregdo3/public_html/gallerypanorama/zp-data/setup_log.txt) [function.fopen]: failed to open stream: Permission denied in /home/gregdo3/public_html/gallerypanorama/zp-core/setup.php on line 57

Warning: fwrite(): supplied argument is not a valid stream resource in /home/gregdo3/public_html/gallerypanorama/zp-core/setup.php on line 58

Warning: fclose(): supplied argument is not a valid stream resource in /home/gregdo3/public_html/gallerypanorama/zp-core/setup.php on line 59
* PHP gettext() support
* PHP mbstring package [is not present]
Warning!

Strings generated internally by PHP may not display correctly. (e.g. dates)

Warning: fopen(/home/gregdo3/public_html/gallerypanorama/zp-data/setup_log.txt) [function.fopen]: failed to open stream: Permission denied in /home/gregdo3/public_html/gallerypanorama/zp-core/setup.php on line 57

Warning: fwrite(): supplied argument is not a valid stream resource in /home/gregdo3/public_html/gallerypanorama/zp-core/setup.php on line 58

Warning: fclose(): supplied argument is not a valid stream resource in /home/gregdo3/public_html/gallerypanorama/zp-core/setup.php on line 59
* PHP MySQL support
* zp-config.php file [does not exist]
Error!

Setup was not able to create this file. You will need to edit the zp-config.php.source file as indicated in the file's comments and rename it to zp-config.php. Place the file in the zp-data folder.

You can find the file in the "zp-core" directory.
* Connect to MySQL [CONNECT query failed]
Error!

Access denied for user 'nobody'@'localhost' (using password: NO)
* Zenphoto core files
* Zenphoto core file permissions
* .htaccess file [is empty or does not exist]
Warning!

If you have the mod_rewrite module enabled an .htaccess file is required the root zenphoto folder to create cruft-free URLs.

You can ignore this warning if you do not intend to set the mod_rewrite option. Click here to have setup create the file.

Warning: fopen(/home/gregdo3/public_html/gallerypanorama/zp-data/setup_log.txt) [function.fopen]: failed to open stream: Permission denied in /home/gregdo3/public_html/gallerypanorama/zp-core/setup.php on line 57

Warning: fwrite(): supplied argument is not a valid stream resource in /home/gregdo3/public_html/gallerypanorama/zp-core/setup.php on line 58

Warning: fclose(): supplied argument is not a valid stream resource in /home/gregdo3/public_html/gallerypanorama/zp-core/setup.php on line 59

Warning: file_put_contents(/home/gregdo3/public_html/gallerypanorama/robots.txt) [function.file-put-contents]: failed to open stream: Permission denied in /home/gregdo3/public_html/gallerypanorama/zp-core/setup.php on line 1376
* robots.txt file [Not created]
Warning!

Setup could not create a robots.txt file.

Warning: fopen(/home/gregdo3/public_html/gallerypanorama/zp-data/setup_log.txt) [function.fopen]: failed to open stream: Permission denied in /home/gregdo3/public_html/gallerypanorama/zp-core/setup.php on line 57

Warning: fwrite(): supplied argument is not a valid stream resource in /home/gregdo3/public_html/gallerypanorama/zp-core/setup.php on line 58

Warning: fclose(): supplied argument is not a valid stream resource in /home/gregdo3/public_html/gallerypanorama/zp-core/setup.php on line 59
* albums folder [The line $conf['album_folder'] is missing from your zp-config.php file]
Warning!

You should update your zp-config.php file to conform to the current zp-config.php.example file.

Warning: fopen(/home/gregdo3/public_html/gallerypanorama/zp-data/setup_log.txt) [function.fopen]: failed to open stream: Permission denied in /home/gregdo3/public_html/gallerypanorama/zp-core/setup.php on line 57

Warning: fwrite(): supplied argument is not a valid stream resource in /home/gregdo3/public_html/gallerypanorama/zp-core/setup.php on line 58

Warning: fclose(): supplied argument is not a valid stream resource in /home/gregdo3/public_html/gallerypanorama/zp-core/setup.php on line 59
* cache folder [cache is not writeable and setup could not make it so]
Error!

Change the permissions on the cache folder to be writable by the server (chmod 777 cache)
* locale folders

Warning: fileperms() [function.fileperms]: stat failed for /home/gregdo3/public_html/gallerypanorama/uploaded/ in /home/gregdo3/public_html/gallerypanorama/zp-core/setup.php on line 629
* uploaded folder [permissions failure]
Error!

Setup could not set the folder to the selected permissions level. You will have to set the permissions manually. See the Troubleshooting guide for details on Zenphoto permissions requirements.

Warning: fopen(/home/gregdo3/public_html/gallerypanorama/zp-data/setup_log.txt) [function.fopen]: failed to open stream: Permission denied in /home/gregdo3/public_html/gallerypanorama/zp-core/setup.php on line 57

Warning: fwrite(): supplied argument is not a valid stream resource in /home/gregdo3/public_html/gallerypanorama/zp-core/setup.php on line 58

Warning: fclose(): supplied argument is not a valid stream resource in /home/gregdo3/public_html/gallerypanorama/zp-core/setup.php on line 59
* zp-data folder [zp-data is not writeable and setup could not make it so]
Error!

Change the permissions on the zp-data folder to be writable by the server (chmod 777 zp-data)
* HTML cache folder [cache_html is not writeable and setup could not make it so]
Error!

Change the permissions on the HTML cache folder to be writable by the server (chmod 777 cache_html)
* Third party plugins folder [plugins is not writeable and setup could not make it so]
Error!

Change the permissions on the Third party plugins folder to be writable by the server (chmod 777 plugins)

You need to address the problems indicated above then run setup.php again.
`
What could possibly be going wrong.

Comments

  • acrylian Administrator, Developer
    Well, you probably have to set the right permisssions via ftp as setup is not able to.... See the troubleshooting about which to set.
  • I have done so, and even tried setting everything to 0777 permission.

    What I get like I said before is a blank page for everything, httpaccess file is working fine as if I type in /admin it takes me to the right url but that one is blank as well.

    The blank page shows up as soon as I save the detail for the sql login, so I can not by any change press the go button to actually install ZenPhoto.

    Error log

    `
    Zenphoto Setup v1.2.8[4881] Wed, 10 Feb 2010 11:58:39 -0800
    Query error: Access denied for user 'nobody'@'localhost' (using password: NO)
    warn: PHP mbstring package [is not present] Strings generated internally by PHP may not display correctly. (e.g. dates)
    warn: File/Folder Permissions [are loose (0777)] If file and folder permissions are not set to strict there could be a security risk. However, on some servers Zenphoto does not function correctly with strict file/folder permissions. If Zenphoto has permission errors, run setup again and select a more relaxed permission.

    Change file/folder permissions mask: loose (0777) relaxed (0775) strict (0755)
    warn: Zenphoto core file permissions [not correct] Setup could not set the one or more components to the selected permissions level. You will have to set the permissions manually. See the Troubleshooting guide for details on Zenphoto permissions requirements.
    `
  • acrylian Administrator, Developer
    Sorry, I have no idea, I never encountered these kind of errors. But you need to solve the mysql error (sure that it is "localhost" and not a real server name??) and the permissions one. The mbstring one you can ignore if you don't use special characters.
  • Yes, I am sure it is localhost, I used that on wordpress and works fine.

    The strange thing there is no error in the log about the real info I put in the sql window, like I say as soon as I put the right info and click save it turns blank, and any other page turns blank, only thing I can do is to delete the zp-config.php file to get the setup page again.

    If I put the wrong sql info in and click save nothing happens, there to say that is normal.

    I have checked the database and it is not putting anything into the database.

    I will not use any special characters for this install so that will be fine.

    Isn't there a way to force zen to report all errors, as there must be an error instead of the white blank page with not code on it?
  • acrylian Administrator, Developer
    Not my day. Of course the main problem are the permissions. Setup tries to create the `zp-date/zp-config.php` file. But it can't because of the permissions do not allow. Try to enter the data there manually. The blank file source is within `zp-core`.
  • Yes I have tried doing so, but as soon as I put one I have made manually everything goes blank as well. Even forcing the zp-config file to be 0777 does not do the trick ether.

    I notice however when I get the system to make one, I am not allowed to change the permission of the zp-config file through FTP.

    This is completely breaking my brain, as I have never ever seen something like this.

    It seems like this problem was something that came up for others as well.

    http://www.zenphoto.org/support/topic.php?id=6659

    But none of them seem to have solutions that make any sense.
  • Again, forgot to put it in the text above, is there a way to force ZenPhoto to report every error it gets, and try to get something else then the blank page.
  • acrylian Administrator, Developer
    I am sorry I have really no idea about that permissions on your server. I had never these, even not on a host over here that is known to be difficult at times.

    At the beginning of `zp-core/functions-basic.php` are some defines for debug you could set to TRUE.
  • I set all the debug to true and the only thing I get when browsing around the empty pages is this.

    `
    Zenphoto v1.2.8[4881]
    Loading PHP GD library bundled (2.0.34 compatible)
    Loading the "class" plugins.
    Zenphoto v1.2.8[4881]
    Loading PHP GD library bundled (2.0.34 compatible)
    Loading the "class" plugins.
    Zenphoto v1.2.8[4881]
    Loading PHP GD library bundled (2.0.34 compatible)
    Loading the "class" plugins.
    `
  • acrylian Administrator, Developer
    So no errors at all. Maybe you should try uploading the files again. Sorry, I have really no idea what is going on your server. Maybe my collegue sbillard will have an idea but he is currently away and visits the forum only occasionally.
  • I have multiple uploads, both using zip and tar methods to upload.

    Will be interesting to hear what Stephen has to say about this. I am going to call the hosting company and see if they have a clue.

    I have even tried to change these settings.

    `
    ////////////////////////////////////////////////////////////////////////////////
    // Path Overrides
    ////////////////////////////////////////////////////////////////////////////////
    // Uncomment the following two lines ONLY IF YOU'RE HAVING PROBLEMS,
    // like "file not found" or "not readable" errors.
    // These allow you to override Zenphoto's detection of the correct paths
    // on your server, which might work better on some setups.
    ////////////////////////////////////////////////////////////////////////////////

    define('WEBPATH', '/gallerypanorama');
    define('SERVERPATH', '/home/gregdo3/public_html/gallerypanorama');

    ////////////////////////////////////////////////////////////////////////////////
    if (!defined('CHMOD_VALUE')) { define('CHMOD_VALUE', 0777); }
    /** Do not edit below this line. **/
    /**********************************/
    `
    but nothing has come out of that ether.
  • I can't really tell you what is wrong. But the setup query error is telling you that zenphoto is not permitted to access the database with the credentials you gave it.

    The debug log is showing that zenphoto attempts to start up and load the "root plugins" (such as the class-video one) but not getting past this point. The nightly build now includes a timestamp in the logs, so this might help some in interpretation.

    I would suggest you configure your PHP so that it displays its errors on the WEB page itself. Maybe that will show something.
  • How I see it is that as soon as I open up setup.php there is no info about database, therefor I get this

    `
    Query error: Access denied for user 'nobody'@'localhost' (using password: NO)
    `
    Then if I put info in how to connect to the database I get a blank page without an error. That will happen as well if I manually put the zp-config file in as well. I will report back if I get something from the hosting company.
  • The hosting company changed the settings for PHP 5 Handler from dso to cgi

    That fixed the permission issues. But there is still a blank page, after saving the zp-config.

    Still waiting for further response from hosting company.

    EDIT: Could the mysql version of 4.1.22 be some kind of problem. PHP Version is 5.2.6 so that should not be a problem.
  • There definately could be an issue with the PHP version as we have not tested with so low a level. Still, there should be a PHP script error reported.
  • Well, hosting company is pointing fingers now.

    "
    We really apologize for the inconvenience. The issue you are facing seems to be a coding issue as it gives a blank page on shell also root@server [/home/gregdo3/public_html/gallerypano]# php index.php

    It is not a php issue at all. We would advice you to please contact your web developer and request to look into the issue.
    "

    Really strange issue this blank page stuff.
  • Ok, this is very, very strange, I decided to install very old version of zenphoto-1.1.7 from 01-Jul-2008. That one worked without a problem and I then updated it to the 1.2.8 version and everything seem to be working fine.

    I am getting an error that I never managed to see before as when I saved sql setting before I just got a blank page. Now I get.

    `
    MySQL version 4.1.22
    Warning!

    Version 4.1 or greater is required. Use a lower version at your own risk.
    Version 5.0 or greater is prefered.
    `
    Ok fine enough.

    Then I get this error I remember I used to get long time ago.

    `
    MySQL field collations [Image and Album tables]
    Warning!

    images->id, images->albumid, images->commentson, images->show, images->date, images->sort_order, images->height, images->width, images->mtime, images->hitcounter, images->total_value, images->total_votes, images->thumbX, images->thumbY, images->thumbW, images->thumbH, images->rating, images->rating_status, images->hasMetadata, albums->id, albums->parentid, albums->date, albums->show, albums->closecomments, albums->commentson, albums->mtime, albums->sort_order, albums->image_sortdirection, albums->album_sortdirection, albums->hitcounter, albums->total_value, albums->total_votes, albums->dynamic, albums->rating, albums->rating_status are not UTF-8. You should consider porting your data to UTF-8 and changing the collation of the database fields to utf8_unicode_ci
    `
    What would be the best way to solve this, is that to access phpMyAdmin and change them somehow?
  • acrylian Administrator, Developer
    Yes, you probably need to change that on the database itself. 1.1.7 is quite old and a lot chaned. The reason for this error is that the table fields an be in a different collation/charset than the columns/fields itself. Info about collactions:
    http://dev.mysql.com/doc/refman/5.0/en/charset-column.html
Sign In or Register to comment.