Installation Issues

Installed (and re-installed) the latest version to my server. When I run the setup utility I keep getting these warnings.

Warning: fopen(C:\hosting\webhost4life\member\bchafin\chafincustom2\zenphoto/zp-data/setup_log.txt) [function.fopen]: failed to open stream: Permission denied in C:\hosting\webhost4life\member\bchafin\chafincustom2\zenphoto\zp-core\setup.php on line 57

Warning: fwrite(): supplied argument is not a valid stream resource in C:\hosting\webhost4life\member\bchafin\chafincustom2\zenphoto\zp-core\setup.php on line 58

Warning: fclose(): supplied argument is not a valid stream resource in C:\hosting\webhost4life\member\bchafin\chafincustom2\zenphoto\zp-core\setup.php on line 59

Warning: fopen(C:\hosting\webhost4life\member\bchafin\chafincustom2\zenphoto/zp-data/setup_log.txt) [function.fopen]: failed to open stream: Permission denied in C:\hosting\webhost4life\member\bchafin\chafincustom2\zenphoto\zp-core\setup.php on line 57

Warning: fwrite(): supplied argument is not a valid stream resource in C:\hosting\webhost4life\member\bchafin\chafincustom2\zenphoto\zp-core\setup.php on line 58

Warning: fclose(): supplied argument is not a valid stream resource in C:\hosting\webhost4life\member\bchafin\chafincustom2\zenphoto\zp-core\setup.php on line 59

The PHP version on the host is PHP 4.4.9. I've set the permissions to 0777 but still get the same warnings.

I placed a ticket with my host but if anyone with better insight on how I can resolve these issues would be greatly appreciated.

Thanks!

Comments

  • Manually change the permissions on the zp-data folder.
  • Hello all ;)
    I'm recycling this thread.
    I'm having an issue with the setup script:
    i've set all my folders to 755 and all the files to 644
    thus i've correctly chowned -r to user:webserver.
    I've also chosen the 755 option on the setup script
    the script just yells:
    " installation tool couldn't set the correct permissions on the folder....bla bla "
    so i'm stucked.

    I've also tried to set 777 to all folders, but still have orange permission boxes on "base files" ( wtf is that? ) and mbstring

    so I can't go further.

    Do you know a way to force this to go?

    thanks
  • You can try the nightly build. We have made some changes in this area.
  • Whoooch that was a quick reply thanks! / i'll give it a try before giving up ^_^
  • Nope, it won't work:( zenphoto-2010-02-12-trunk.tar.gz )

    chmod 777:
    ----------------------------------
    "Setup could not change the folder permissions from unknown (0777) to unknown (0755). You will have to set the permissions manually. See the Troubleshooting guide for details on Zenphoto permissions requirements."
    ----------------------------------

    chmod folder 777 > 755 via ftp:
    ---------------------------------
    # albums folder [albums is not writeable and setup could not make it so]
    Error!
    Change the permissions on the albums folder to be writable by the server (chmod 777 albums)
    ---------------------------------

    So why this setup is so restrictive?
    Why don't you just offer to bypass alerts and keep going on install?
  • Sry, the Bypass button is here! hurray!
  • Well, if the albums folder cannot be written to there is much that will not work in the admin part of zenphoto--uploading, move/copy/rename,...

    Also, that "unknown" on the permissions is not what should be there. Have to see if that sheds some light.
  • The "unknown" was indeed an error. There is a fix in tonight's build for that. (And there should have been a script error in your CGI logs. Always a good idea to check these logs if you are having a problem.)

    I doubt that the fix will do anything about the albums folder being not writeable, but it might fix that.
  • Hi again & many thanks, this soft had a tremendous evolution since 6 month!!
    ABout the perm problem, I think this is just a detection problem, not an actual permission problem:

    Uploading is actually working, I can create and suppress galleries, thumbs are created in /cache, ...

    all is perfectly functional.

    I can give you more technicals datas on my box if needed.
  • error_log: setup.php
    ----------------------------
    [Sat Feb 13 23:13:33 2010] [error] [client ##.##.##.##] PHP Warning: fopen(/var/www/zp-data/setup_log.txt) [function.fopen]: failed to open stream: Permission non accord\xc3\xa9e in /var/www/zp-core/setup.php on line 60
    [Sat Feb 13 23:13:33 2010] [error] [client ##.##.##.##] PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in /var/www/zp-core/setup.php on line 61
    [Sat Feb 13 23:13:33 2010] [error] [client ##.##.##.##] PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/zp-core/setup.php on line 62
    [Sat Feb 13 23:13:33 2010] [error] [client ##.##.##.##] PHP Warning: fopen(/var/www/zp-data/setup_log.txt) [function.fopen]: failed to open stream: Permission non accord\xc3\xa9e in /var/www/zp-core/setup.php on line 60
    [Sat Feb 13 23:13:33 2010] [error] [client ##.##.##.##] PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in /var/www/zp-core/setup.php on line 61
    [Sat Feb 13 23:13:33 2010] [error] [client ##.##.##.##] PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/zp-core/setup.php on line 62
    [Sat Feb 13 23:13:34 2010] [error] [client ##.##.##.##] PHP Warning: fopen(/var/www/zp-data/setup_log.txt) [function.fopen]: failed to open stream: Permission non accord\xc3\xa9e in /var/www/zp-core/setup.php on line 60
    [Sat Feb 13 23:13:34 2010] [error] [client ##.##.##.##] PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in /var/www/zp-core/setup.php on line 61
    [Sat Feb 13 23:13:34 2010] [error] [client ##.##.##.##] PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/zp-core/setup.php on line 62
    [Sat Feb 13 23:13:34 2010] [error] [client ##.##.##.##] PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/zp-core/setup.php on line 638
    [Sat Feb 13 23:13:34 2010] [error] [client ##.##.##.##] PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/zp-core/setup.php on line 643
    [Sat Feb 13 23:13:34 2010] [error] [client ##.##.##.##] PHP Warning: fopen(/var/www/zp-data/setup_log.txt) [function.fopen]: failed to open stream: Permission non accord\xc3\xa9e in /var/www/zp-core/setup.php on line 60
    [Sat Feb 13 23:13:34 2010] [error] [client ##.##.##.##] PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in /var/www/zp-core/setup.php on line 61
    [Sat Feb 13 23:13:34 2010] [error] [client ##.##.##.##] PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/zp-core/setup.php on line 62
    [Sat Feb 13 23:13:34 2010] [error] [client ##.##.##.##] PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/zp-core/setup.php on line 638
    [Sat Feb 13 23:13:34 2010] [error] [client ##.##.##.##] PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/zp-core/setup.php on line 643
    [Sat Feb 13 23:13:34 2010] [error] [client ##.##.##.##] PHP Warning: fopen(/var/www/zp-data/setup_log.txt) [function.fopen]: failed to open stream: Permission non accord\xc3\xa9e in /var/www/zp-core/setup.php on line 60
    [Sat Feb 13 23:13:34 2010] [error] [client ##.##.##.##] PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in /var/www/zp-core/setup.php on line 61
    [Sat Feb 13 23:13:34 2010] [error] [client ##.##.##.##] PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/zp-core/setup.php on line 62
    [Sat Feb 13 23:13:34 2010] [error] [client ##.##.##.##] PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/zp-core/setup.php on line 638
    [Sat Feb 13 23:13:34 2010] [error] [client ##.##.##.##] PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/zp-core/setup.php on line 643
    [Sat Feb 13 23:13:34 2010] [error] [client ##.##.##.##] PHP Warning: fopen(/var/www/zp-data/setup_log.txt) [function.fopen]: failed to open stream: Permission non accord\xc3\xa9e in /var/www/zp-core/setup.php on line 60
    [Sat Feb 13 23:13:34 2010] [error] [client ##.##.##.##] PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in /var/www/zp-core/setup.php on line 61
    [Sat Feb 13 23:13:34 2010] [error] [client ##.##.##.##] PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/zp-core/setup.php on line 62
    [Sat Feb 13 23:13:34 2010] [error] [client ##.##.##.##] PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/zp-core/setup.php on line 638
    [Sat Feb 13 23:13:34 2010] [error] [client ##.##.##.##] PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/zp-core/setup.php on line 643
    [Sat Feb 13 23:13:34 2010] [error] [client ##.##.##.##] PHP Warning: fopen(/var/www/zp-data/setup_log.txt) [function.fopen]: failed to open stream: Permission non accord\xc3\xa9e in /var/www/zp-core/setup.php on line 60
    [Sat Feb 13 23:13:34 2010] [error] [client ##.##.##.##] PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in /var/www/zp-core/setup.php on line 61
    [Sat Feb 13 23:13:34 2010] [error] [client ##.##.##.##] PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/zp-core/setup.php on line 62
    [Sat Feb 13 23:13:34 2010] [error] [client ##.##.##.##] PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/zp-core/setup.php on line 638
    [Sat Feb 13 23:13:34 2010] [error] [client ##.##.##.##] PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/zp-core/setup.php on line 643
    [Sat Feb 13 23:13:34 2010] [error] [client ##.##.##.##] PHP Warning: fopen(/var/www/zp-data/setup_log.txt) [function.fopen]: failed to open stream: Permission non accord\xc3\xa9e in /var/www/zp-core/setup.php on line 60
    [Sat Feb 13 23:13:34 2010] [error] [client ##.##.##.##] PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in /var/www/zp-core/setup.php on line 61
    [Sat Feb 13 23:13:34 2010] [error] [client ##.##.##.##] PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/zp-core/setup.php on line 62
    [Sat Feb 13 23:13:34 2010] [error] [client ##.##.##.##] PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/zp-core/setup.php on line 638
    [Sat Feb 13 23:13:34 2010] [error] [client ##.##.##.##] PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/zp-core/setup.php on line 643
    [Sat Feb 13 23:13:34 2010] [error] [client ##.##.##.##] PHP Warning: fopen(/var/www/zp-data/setup_log.txt) [function.fopen]: failed to open stream: Permission non accord\xc3\xa9e in /var/www/zp-core/setup.php on line 60
    [Sat Feb 13 23:13:34 2010] [error] [client ##.##.##.##] PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in /var/www/zp-core/setup.php on line 61
    [Sat Feb 13 23:13:34 2010] [error] [client ##.##.##.##] PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/zp-core/setup.php on line 62

    --------------------
    I don't know if that helps you out
  • Not really. This just says that the Setup program was blocked from creating the setup log. That file resides in the zp-data folder, so you can check the permissions on it. Zenphoto must be able to create and write to files in that folder.
  • #solved.
    The issue was indeed a owner permission.
    I've chowned all files to apache:apache and the install didn't throwned any errors.
    So, for others having the same issue:
    My case is: I run a plesk panel, and plesk give ftp user files a user:psacln ownership ( and not apache:apache )
    Being able to access httpd.conf to change user/group to apache:psacln won't help out.

    I've chmoded all files to 644, and all folders to 755 with apache:apache owner, runned the setup tool again, and all the nasty errors disapeared.
    The next time a user will upload images via ftp, those uploaded files will get a webuser:psacln owner, and with safe_mode off, this will work.

    To sum up:
    *If your hosting runs Plesk in safe mode, zenphoto won't work ( I think ), because of permission errors.
    *If your hosting runs Plesk without safe mode, zenphoto setup will throw a lot of permission errors, but all will actually be fonctional.

    Thank you Sir Billard for your kind support, and for that wonderful piece of software.
  • Thanks for your explaination. I hope this post will help other users when they get this problem with permissions.
  • I changed permissions and eliminated some of the permissions erros. But I'm still getting some warnings.

    PHP setlocale() failed
    Warning!
    Locale functionality is not implemented on your platform or the specified locale does not exist. Language translation may not work.
    See the troubleshooting guide on zenphoto.org for details.

    PHP mbstring package [Your internal characater set is ISO-8859-1]
    Warning!
    Setting mbstring.internal_encoding to UTF-8 in your php.ini file is recommended to insure accented and multi-byte characters function properly.

    PHP MySQL support
    zp-config.php file
    File/Folder Permissions [are loose (0777)]
    Warning!
    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.
  • Well, these are all warnings. The have generally told you what you should do if you wish the warnings to go away. If you are comfortable with things you can ignore the warnings.
Sign In or Register to comment.