Piwigo.org

You are not logged in. (Register / Login)

Announcement

#1 2012-01-12 02:10:36

mandarin
Member
Registered: 2012-01-12
Posts: 19

PHP Issues during installation....almost given up

Hello,

I am trying to install Piwigo using the steps outlined in the manual install.

I download Piwigo, unzip, and then dump all the files inside piwigo 2.3.2>Piwigo  into a folder called pixetra on my server's public area.

I then go to www.website.com/pixetra.

And this is what I get:

Code:

Warning: Smarty error: problem writing temporary file '/f2/tserver/public/pixetra/_data/templates_c/wrt4f0e08448737a' in /f2/tserver/public/pixetra/include/smarty/libs/Smarty.class.php on line 1093

Warning: include() [function.include]: Unable to access /f2/tserver/public/pixetra/_data/templates_c/w8ax7^%%18^181^181F13D0%%install.tpl.php in /f2/tserver/public/pixetra/include/smarty/libs/Smarty.class.php on line 1263

Warning: include(/f2/tserver/public/pixetra/_data/templates_c/w8ax7^%%18^181^181F13D0%%install.tpl.php) [function.include]: failed to open stream: No such file or directory in /f2/tserver/public/pixetra/include/smarty/libs/Smarty.class.php on line 1263

Warning: include() [function.include]: Unable to access /f2/tserver/public/pixetra/_data/templates_c/w8ax7^%%18^181^181F13D0%%install.tpl.php in /f2/tserver/public/pixetra/include/smarty/libs/Smarty.class.php on line 1263

Warning: include(/f2/tserver/public/pixetra/_data/templates_c/w8ax7^%%18^181^181F13D0%%install.tpl.php) [function.include]: failed to open stream: No such file or directory in /f2tserver/public/pixetra/include/smarty/libs/Smarty.class.php on line 1263

Warning: include() [function.include]: Failed opening '/f2/tserver/public/pixetra/_data/templates_c/w8ax7^%%18^181^181F13D0%%install.tpl.php' for inclusion (include_path='/nfsn/apps/php53/lib/php/') in /f2/tserver/public/pixetra/include/smarty/libs/Smarty.class.php on line 1263

SOME OBSERVATIONs

1.changing permissions on all the files in the questions does not seem to help. Even temporarily agiving them the most liberal permission possible won't help.

2. Even changing group permissions (chgrp -R) to web on the files in question does not seem to help.

3. A bunch of .tpl files are produced in pixetra/_data/templates_c/

4. I have tried fresh installs by erasing all files via FTP. But for some reason, the .tpl files mentioned above are complicated to delete, because they always get their group permissions messed up (Really annoying).

5. PHP Safe mode cannot be disabled (This is the reason why I chose Piwigo over Gallery 2).


Please help. I thought this would be as easy as Wordpress.

Offline

#2 2012-01-12 15:37:20

mandarin
Member
Registered: 2012-01-12
Posts: 19

Re: PHP Issues during installation....almost given up

Come on everybody! Someone please help :-(

Offline

#3 2012-01-12 17:21:13

plg
Piwigo Team
Location: Paris, France, Europe
Registered: 2002-04-05
Posts: 11721
Website

Re: PHP Issues during installation....almost given up

Hi mandarin,

I wonder what this file _data/templates_c/wrt4f0e08448737a is.


Latest blog post on Piwigo.com: Piwigo 2.5 on Piwigo.com (March 7th, 2013)

Offline

#4 2012-01-12 20:05:59

rvelices
Piwigo Team
Registered: 2005-12-29
Posts: 1557
Website

Re: PHP Issues during installation....almost given up

who's the owner of the templates_c dir ? you or apache www user ?
what are the rights for templates_c dir ?

Offline

#5 2012-01-12 23:57:48

mandarin
Member
Registered: 2012-01-12
Posts: 19

Re: PHP Issues during installation....almost given up

plg wrote:

Hi mandarin,

I wonder what this file _data/templates_c/wrt4f0e08448737a is.

Hello plg,


I can count atleast 50 [EDIT: A whopping 720 files are in there!] such files in _data/templates_c. Interestingly, Filezilla shows all of them as having a file size of 0KB. I downloaded one and opened in notepad. It was empty!

Please help

:(

Last edited by mandarin (2012-01-13 00:15:39)

Offline

#6 2012-01-13 00:14:03

mandarin
Member
Registered: 2012-01-12
Posts: 19

Re: PHP Issues during installation....almost given up

rvelices wrote:

who's the owner of the templates_c dir ? you or apache www user ?
what are the rights for templates_c dir ?

They were generated by PHP and therefore all owned exclusively by apache/system. I managed to change that so that I too am a joint owner. This was done with great difficulty (contacting admins etc)

I changed the rights for templates in templates_c dir to the most liberal (very briefly for security reasons).

Then I accessed the url and this is the new message I am getting

Code:

Piwigo encountered a non recoverable error
/f2/tserver/public/pixetra/_data/templates_c no write access

#1  mkgetdir /f2/tserver/public/pixetra/include/template.class.php(104)
#2  Template::Template /f2/tserver/public/pixetra/install.php(241)

This message persists even when I also change the aforementioned files (#1 & #2) to the most liberal permissions (very briefly, for security reasons).


PLEEEASE HELP

:-(

Last edited by mandarin (2012-01-13 00:16:52)

Offline

#7 2012-01-13 00:24:56

mandarin
Member
Registered: 2012-01-12
Posts: 19

Re: PHP Issues during installation....almost given up

Yesterday, while looking through this forum for help, I noticed a bug/feature request (sorry, did'nt save the link) that the install interface should not be so dependent on "Smarty" php, and that the install interface should atleast do some kind of checklist to make sure everything is OK.

If that was what the post author was saying, I couldn't agree more.

Offline

#8 2012-01-13 02:35:36

mandarin
Member
Registered: 2012-01-12
Posts: 19

Re: PHP Issues during installation....almost given up

Uh-oh! Does this have to do anything with not uploading the files in binary mode? I know its a requirement for wordpress....


???

P.S. The install guide never said so?

Last edited by mandarin (2012-01-13 02:36:11)

Offline

#9 2012-01-14 17:07:36

mandarin
Member
Registered: 2012-01-12
Posts: 19

Re: PHP Issues during installation....almost given up

OK I managed to fix it.

This is apparently a common issue related to PHP safe mode.

The steps to correct this are as follows:

1. Contact your webhost to "repossess" all .tpl files as well as any other folders in the piwigo directory that have "web" as the only group owner. Repossession means making yourself a group owner as well. You can check via an FTP program, and you will know which files these are because you cannot delete these files, let alone modify their permissions.

How did these files come into existence? Looks like PHP generated them on the webhost system.

2. Delete all .tpl files and all the directories that had "web" as group ownership.

3. Recreate the directories with you as the group owner.

4. Give the directories liberal permissions (TEMPORARILY, just for the gallery install).

Here is a similar problem (and resoultion) that takes place during the installation of Open Source Analytics tool Piwik.

I hope the developers will take this into consideration. The install screen should be able to make the neccessary checks and notifying the user.

Offline

Board footer

Powered by FluxBB

About this website · Donate · Contact Piwigo project © 2002-2013