Installation Failure

having trouble getting the setup to process. when I navigate to the setup page I get this error

`Notice: Undefined variable: chmod in /var/www/zen/zp-core/setup/setup-functions.php on line 382 Warning: fopen(/var/www/zen/zp-data/setup.log): failed to open stream: No such file or directory in /var/www/zen/zp-core/setup/setup-functions.php on line 385 Notice: Undefined variable: chmod in /var/www/zen/zp-core/setup/setup-functions.php on line 382 Warning: fopen(/var/www/zen/zp-data/setup.log): failed to open stream: No such file or directory in /var/www/zen/zp-core/setup/setup-functions.php on line 385 Notice: Undefined variable: chmod in /var/www/zen/zp-core/setup/setup-functions.php on line 382 Warning: fopen(/var/www/zen/zp-data/setup.log): failed to open stream: No such file or directory in /var/www/zen/zp-core/setup/setup-functions.php on line 385 `

Using pretty clean install of ubuntu 12.04LTS with LAMP installed

Comments

  • acrylian Administrator, Developer
    Check your file/folder permissions.
  • We have had some issues with non-apache installs. These have been addressed in the development build for 1.4.4, but not fit back to the 1.4.3 release because it seemed not many people were non-apache and the changes were fairly invasive.

    You can try the development build from the nightly build files and see it it is successful. But first you should check your file/folder permissions as suggested by acrylian.
  • I can confirm that version 1.4.3 doesn't work on XAMPP and WAMP, which are fairly similar to LAMP, and that the current DEV build works on both of these platforms.
  • acrylian Administrator, Developer
    That is weird because I am sure sbillard uses WAMP, too. All works fine on the Mac equivalent MAMP, just to note.
  • I had the exact same error message when I started with Zenphoto.
    As Acrylian mentionned, check the file/folder permissions.

    That handled it for me.
  • WAMP does work. XAMPP and others do have issues where their behavior differes from standard Apache. Michael and Fred have worked with me to correct those issues on the installs they have access to. Of course an untested configuration may still have differences that need to be addressed.
  • Hi sailhobie,

    here is the same Problem everey NEW Installation!!

    The solution is your setup script didn´t have the permission to generate a folder in the root with the name "zp-data" !!!

    Generate it manually and this problem would be solved ;)

    The reason is the badly file/folder permission in zp. Sorry Devs but here on servers from the ISP all-inkl.com (Germany) your install-script doesn´t work!!! Because when i upload all files per FTP the files and folders have a other owner (php-user) as i need for the setup which use the user www-data. At this problem i spent a lot of hours in the past...

    So I don´t like that approach with files/folder permission in zp but i´m not sure if this is a bug or a feature??

    cu
  • acrylian Administrator, Developer
    Neither it is a setting chosen by allinkl to give uploads via ftp another owner. On my host - Germany as well - and a few others I know all works as it should.

    But besides that all works? My colleague who is the main author of the setup script will sure have something to say to this as well.
  • You think it is a Zenphoto problem that your server is not configured to allow an application to create a file/folder????

    A properly configured server makes files and folders create by a WEB application owned by the same user that is assigned for running the application. If that is not the case then there is nothing the application can do about it.
  • Hi. I too have the file/permissions issue, which is something I have been reeeeeealy struggling with coming from Windows to Linux. I run Ubuntu mostly and it's permissions seem to work well. My server is running lubuntu and for some reason permissions are a nightmare.

    Can somebody write down how to change the permissions so that this CAN install?? I'm clueless.

    I added the folder zp-data and then changed its permissions, manually moved the .cfg file over, manually entered my sql database info, but setup just kept hitting permissions errors on EVERYTHING. How do I make it have permissions?
  • Unfortunately, file permissions are almost a "personal" thing. What is needed is entirely dependent on the installation.

    But your goal is to configure things so that the user id used by the WEB server when it runs Zenphoto is the same as the userid used to upload the files. If you accomplish this the file permissions should be selected as strict.

    Bur unfortunately there are other pitfalls. Some configurations think they should be "super" secure and prevent WEB applications from doing things like changing the permissions of files it "owns". Or they remove PHP functionality. All these kinds of things make it impossible for Zenphoto to manage its environment.
  • Okay, the answer to this problem is within all these post, but you have to read carefully, for someone like me it took me a while to figure it out, for others I bet it was easier, so here is how I fixed that issue...

    ********************

    1) Create a folder "zp-data" in the root

    2) Set the permission of the "zp-data" to 777

    ********************

    That's it, you should also read all the permission warnings you get right before installation is complete by refreshing the page constantly, so don't hit Go/Next till you have check all the warning/errors.

    I hope this helps
  • Hi,

    pretty interesting topic here.

    I´m also at all-inkl and yesterday the installation ran (nearly) through. Was on PHP 5.3 in CGI mode via an "AddHandler" entry in htaccess. Ok, MySQL in v4 was also installed and the setup didn´t work out, so I asked all-inkl to do a switch to MySQL 5.* + and they did. It´s coming with a standard PHP 5.3.13 module and ... the install failed with above permission warnings.

    That´s strange, isn´t it? It´s related to the installation? I used the same FTP user to upload the files yesterday and today.

    Ok, but for now, what is the best way to adress this? Changing to chmod 777 for the zp-data folder, or using the nightly build?

    Thanks in advance!

    BR,
    Superfly
  • In addition to the above mentioned:

    Worked very well for me now, if you change the owner of all folders and files (recursive) from "FTP User" to "www-data" (PHP User) in the all-inkl KAS! :-)

    BR,
    Superfly
  • acrylian Administrator, Developer
    That should have been by default actually. Btw, I did recently install on that host as well and didn't run into this issue.
  • I had the same problem, on my Apache/Linux server. I created the zp-data folder manually and set permissions for it, as suggested above. Now all is well.
  • Dear all, i have been trying to install zenphoto and meet the following message all the time :
    Warning: fopen(/home/mywebsite/public_html/zenphoto/zp-data/setup.log) [function.fopen]: failed to open stream: No such file or directory in /home/mywebsite/public_html/zenphoto/zp-core/setup/setup-functions.php on line 385

    do you have any idea of what the pb is about ?

    tnanks and regards,

    Joom
  • acrylian Administrator, Developer
    You have a file/folder permissions issue on your site. The setup script cannot write to or create the setup.log.
    http://www.zenphoto.org/news/permissions-for-zenphoto-files-and-folders
Sign In or Register to comment.