Errors with installing

Hi I am getting all these error when installing nor do I know how to fix. Can someone please help:

Warning: fopen(/home2/kwanten/public_html/dlmedia/zp-data/setup_log.txt) [function.fopen]: failed to open stream: Permission denied in /home2/kwanten/public_html/dlmedia/zp-core/setup.php on line 47

Warning: fwrite(): supplied argument is not a valid stream resource in /home2/kwanten/public_html/dlmedia/zp-core/setup.php on line 48

Warning: fclose(): supplied argument is not a valid stream resource in /home2/kwanten/public_html/dlmedia/zp-core/setup.php on line 49

Warning: fopen(/home2/kwanten/public_html/dlmedia/zp-data/setup_log.txt) [function.fopen]: failed to open stream: Permission denied in /home2/kwanten/public_html/dlmedia/zp-core/setup.php on line 47

Warning: fwrite(): supplied argument is not a valid stream resource in /home2/kwanten/public_html/dlmedia/zp-core/setup.php on line 48

Warning: fclose(): supplied argument is not a valid stream resource in /home2/kwanten/public_html/dlmedia/zp-core/setup.php on line 49
[Zen Photo Setup] Setup
Welcome to Zenphoto! This page will set up Zenphoto on your web server.

Systems Check:

PHP version 5.2.10
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(/home2/kwanten/public_html/dlmedia/zp-data/setup_log.txt) [function.fopen]: failed to open stream: Permission denied in /home2/kwanten/public_html/dlmedia/zp-core/setup.php on line 47

Warning: fwrite(): supplied argument is not a valid stream resource in /home2/kwanten/public_html/dlmedia/zp-core/setup.php on line 48

Warning: fclose(): supplied argument is not a valid stream resource in /home2/kwanten/public_html/dlmedia/zp-core/setup.php on line 49

PHP gettext() support [is not present]
Warning!

Localization of Zenphoto currently requires native PHP gettext() support

Warning: fopen(/home2/kwanten/public_html/dlmedia/zp-data/setup_log.txt) [function.fopen]: failed to open stream: Permission denied in /home2/kwanten/public_html/dlmedia/zp-core/setup.php on line 47

Warning: fwrite(): supplied argument is not a valid stream resource in /home2/kwanten/public_html/dlmedia/zp-core/setup.php on line 48

Warning: fclose(): supplied argument is not a valid stream resource in /home2/kwanten/public_html/dlmedia/zp-core/setup.php on line 49

Comments

  • acrylian Administrator, Developer
    As the first error tells the permissions are not correct. Please review our troubleshooting guide.
  • I am getting very similar errors. I changed permissions. No luck. When I carry on and press go and then view my photos then they are not viewable, just the little red cross. I have reviewed the trouble shooting guide! Have I missed something?

    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/users/uks/html/tomzak.net/zenphoto/zp-data/setup_log.txt) [function.fopen]: failed to open stream: Permission denied in /home/users/uks/html/tomzak.net/zenphoto/zp-core/setup.php on line 47

    Warning: fwrite(): supplied argument is not a valid stream resource in /home/users/uks/html/tomzak.net/zenphoto/zp-core/setup.php on line 48

    Warning: fclose(): supplied argument is not a valid stream resource in /home/users/uks/html/tomzak.net/zenphoto/zp-core/setup.php on line 49

    Graphics support: PHP GD library bundled (2.0.34 compatible)
    PHP gettext() support
    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.

    Warning: fopen(/home/users/uks19066/html/tomzak.net/zenphoto/zp-data/setup_log.txt) [function.fopen]: failed to open stream: Permission denied in /home/users/uks/html/tomzak.net/zenphoto/zp-core/setup.php on line 47

    Warning: fwrite(): supplied argument is not a valid stream resource in /home/users/uks/html/tomzak.net/zenphoto/zp-core/setup.php on line 48

    Warning: fclose(): supplied argument is not a valid stream resource in /home/users/uks/html/tomzak.net/zenphoto/zp-core/setup.php on line 49

    PHP MySQL support
    zp-config.php file
    Strict Permissions [is not in effect]
    Warning!
    When this option is not in effect, file and folder permissions are relaxed. This could constitute a security risk so it is recommended that you enable Strict Permissions. However, on some servers Zenphoto does not function correctly with strict file/folder permissions. If you enable this option and Zenphoto has permission errors, run setup again and disable the option.

    Click here to use strict file/folder permissions.

    NOTE: This option applies only to new files and folders created by Zenphoto. You may have to change permissions on existing ones to resolve problems.

    Warning: fopen(/home/users/uks/html/tomzak.net/zenphoto/zp-data/setup_log.txt) [function.fopen]: failed to open stream: Permission denied in /home/users/uks/html/tomzak.net/zenphoto/zp-core/setup.php on line 47

    Warning: fwrite(): supplied argument is not a valid stream resource in /home/users/uks/html/tomzak.net/zenphoto/zp-core/setup.php on line 48

    Warning: fclose(): supplied argument is not a valid stream resource in /home/users/uks/html/tomzak.net/zenphoto/zp-core/setup.php on line 49

    MySQL setup in zp-config.php
    MySQL version 4.1.20

    Warning: fopen(/home/users/uks/html/tomzak.net/zenphoto/zp-data/setup_log.txt) [function.fopen]: failed to open stream: Permission denied in /home/users/uks/html/tomzak.net/zenphoto/zp-core/setup.php on line 47

    Warning: fwrite(): supplied argument is not a valid stream resource in /home/users/uks/html/tomzak.net/zenphoto/zp-core/setup.php on line 48

    Warning: fclose(): supplied argument is not a valid stream resource in /home/users/uks/html/tomzak.net/zenphoto/zp-core/setup.php on line 49

    Connect to the database ukszen
    MySQL SQL mode [SET SESSION failed]
    Warning!
    NOTE: This option applies only to new files and folders created by Zenphoto. You may have to change permissions on existing ones to resolve problems.

    Warning: fopen(/home/users/uks/html/tomzak.net/zenphoto/zp-data/setup_log.txt) [function.fopen]: failed to open stream: Permission denied in /home/users/uks/html/tomzak.net/zenphoto/zp-core/setup.php on line 47

    Warning: fwrite(): supplied argument is not a valid stream resource in /home/users/uks/html/tomzak.net/zenphoto/zp-core/setup.php on line 48

    Warning: fclose(): supplied argument is not a valid stream resource in /home/users/uks/html/tomzak.net/zenphoto/zp-core/setup.php on line 49

    MySQL access rights [unknown]
    Warning!
    Your MySQL user must have Alter, Create, Delete, Drop, Index, Insert, Select and Update rights.

    The SHOW GRANTS query failed.

    Warning: fopen(/home/users/uks/html/tomzak.net/zenphoto/zp-data/setup_log.txt) [function.fopen]: failed to open stream: Permission denied in /home/users/uks/html/tomzak.net/zenphoto/zp-core/setup.php on line 47

    Warning: fwrite(): supplied argument is not a valid stream resource in /home/users/uks/html/tomzak.net/zenphoto/zp-core/setup.php on line 48

    Warning: fclose(): supplied argument is not a valid stream resource in /home/users/uks/html/tomzak.net/zenphoto/zp-core/setup.php on line 49

    MySQL show tables found: zp_administrators, zp_admintoalbum, zp_albums, zp_captcha, zp_comments, zp_images, zp_obj_to_tag, zp_options, zp_tags, zp_zenpage_news, zp_zenpage_news2cat, zp_zenpage_news_categories, zp_zenpage_pages
    MySQL field collations [Image and Album tables]
    Warning!
    You should consider porting your data to UTF-8 and changing the collation of the database fields to utf8_unicode_ci

    Warning: fopen(/home/users/uks/html/tomzak.net/zenphoto/zp-data/setup_log.txt) [function.fopen]: failed to open stream: Permission denied in /home/users/uks/html/tomzak.net/zenphoto/zp-core/setup.php on line 47

    Warning: fwrite(): supplied argument is not a valid stream resource in /home/users/uks/html/tomzak.net/zenphoto/zp-core/setup.php on line 48

    Warning: fclose(): supplied argument is not a valid stream resource in /home/users/uks/html/tomzak.net/zenphoto/zp-core/setup.php on line 49

    Zenphoto core files [Some files are missing or their filemtimes seem out of variance]
    Warning!
    Perhaps there was a problem with the upload. You should check the following files:
    .htaccess

    Warning: fopen(/home/users/uks/html/tomzak.net/zenphoto/zp-data/setup_log.txt) [function.fopen]: failed to open stream: Permission denied in /home/users/uks/html/tomzak.net/zenphoto/zp-core/setup.php on line 47

    Warning: fwrite(): supplied argument is not a valid stream resource in /home/users/uks/html/tomzak.net/zenphoto/zp-core/setup.php on line 48

    Warning: fclose(): supplied argument is not a valid stream resource in /home/users/uks/html/tomzak.net/zenphoto/zp-core/setup.php on line 49

    .htaccess file (RewriteEngine is ON)
    .htaccess RewriteBase is /zenphoto
    robots.txt file [Not created] Notice! click for details
    Notice!
    Setup could not create a robots.txt file.

    albums folder
    cache folder
    locale folders
    uploaded folder
    zp-data folder
    Database tables to update: zp_options, zp_albums, zp_images, zp_comments, zp_administrators, zp_admintoalbum, zp_tags, zp_obj_to_tag, zp_captcha, zp_zenpage_pages, zp_zenpage_news2cat, zp_zenpage_news_categories, zp_zenpage_news.

    Go
  • The warnings tell it all. You have somehow managed to get your file security to deny Zenphoto access to the zp-data folder (and probably other folders.) Check the file permissions on all the Zenphoto folders and be sure that Zenphoto has full access to them.
  • I am using ubuntu as a local LAMP server, so using sudo is no problem. Is there a way I can set the setup.php with enough authority so it can set the permissions and I don't have to do it manually. I am also doing development on a Windows7 machine that is accessing the shared "albums" folder and sometimes the www folder so it seems it keeps messing up the security and I would like to reset the folder security properly using setup.php. Any help is greatly appreciated.
  • Whoops... I am using virtual hosting with two zenphoto sites on my local server and didn't watch which VirtualHost(servername) went to which www directory. I am new to Ubuntu/Linux/Apache so am having to figure things out. I am assuming, that I can just rerun setup.php on the appropriate ServerName to reset the security. http://ServerName/zp-core/setup.php?
Sign In or Register to comment.