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
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.
As Acrylian mentionned, check the file/folder permissions.
That handled it for me.
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
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.
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.
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?
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.
********************
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
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
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
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
http://www.zenphoto.org/news/permissions-for-zenphoto-files-and-folders