ZenphotoCMS Forum
Installation Failure - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Installation Failure (/thread-10301.html)



Installation Failure - sailhobie - 2012-08-15

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




Installation Failure - acrylian - 2012-08-15

Check your file/folder permissions.




Installation Failure - sbillard - 2012-08-15

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.




Installation Failure - Michel Gagnon - 2012-08-16

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.




Installation Failure - acrylian - 2012-08-16

That is weird because I am sure sbillard uses WAMP, too. All works fine on the Mac equivalent MAMP, just to note.




Installation Failure - emanjamiN2002 - 2012-08-16

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.




Installation Failure - sbillard - 2012-08-16

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.




Installation Failure - Ralf99 - 2012-08-17

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




Installation Failure - acrylian - 2012-08-17

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.




Installation Failure - sbillard - 2012-08-17

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.




Installation Failure - airman0386 - 2012-08-30

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?




Installation Failure - sbillard - 2012-08-30

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.




Installation Failure - malofx - 2012-09-01

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




Installation Failure - Superfly - 2012-10-14

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




Installation Failure - Superfly - 2012-10-14

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




Installation Failure - acrylian - 2012-10-14

That should have been by default actually. Btw, I did recently install on that host as well and didn't run into this issue.




Installation Failure - Anniemee - 2012-11-11

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.




Installation Failure - joompy - 2012-11-28

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




Installation Failure - acrylian - 2012-11-28

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