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
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
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?
Also, that "unknown" on the permissions is not what should be there. Have to see if that sheds some light.
I doubt that the fix will do anything about the albums folder being not writeable, but it might fix that.
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.
----------------------------
[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
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.
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.