You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2013-09-07 00:25:44

danh
Member
From: Chicago, USA
Registered: 2012-03-08
Posts: 546
Website

PHP Error with new update 84.1 database

Is this something to be concerned about?

Upgrade
Database connection successful

Work in progress...
Update to 0.84.1

Task completed. (1 second)
PHP Warning: error_log(/var/www/glpi/files/_log/migration_to_0.84.1.log): failed to open stream: Permission denied in /var/www/glpi/inc/toolbox.class.php at line 446
PHP Warning: error_log(/var/www/glpi/files/_log/migration_to_0.84.1.log): failed to open stream: Permission denied in /var/www/glpi/inc/toolbox.class.php at line 446
PHP Warning: error_log(/var/www/glpi/files/_log/migration_to_0.84.1.log): failed to open stream: Permission denied in /var/www/glpi/inc/toolbox.class.php at line 446


Thanks,
Dan

Offline

#2 2013-09-07 01:04:38

ddurieux
Plugins Dev
From: Propières, France
Registered: 2005-06-17
Posts: 7,521

Re: PHP Error with new update 84.1 database

You must add apache right recursively to var/www/glpi/files/

Offline

#3 2013-09-07 02:07:41

danh
Member
From: Chicago, USA
Registered: 2012-03-08
Posts: 546
Website

Re: PHP Error with new update 84.1 database

Do you know the command for that offhand?


Thanks,
Dan

Offline

#4 2013-09-07 10:28:12

ddurieux
Plugins Dev
From: Propières, France
Registered: 2005-06-17
Posts: 7,521

Re: PHP Error with new update 84.1 database

chown -R www:www glpi/files

Offline

#5 2013-09-07 14:40:34

danh
Member
From: Chicago, USA
Registered: 2012-03-08
Posts: 546
Website

Re: PHP Error with new update 84.1 database

Much appreciated!

Do I have to redo the 84.1 install?

Dan


Thanks,
Dan

Offline

#6 2013-09-07 16:37:16

ddurieux
Plugins Dev
From: Propières, France
Registered: 2005-06-17
Posts: 7,521

Re: PHP Error with new update 84.1 database

I think it's only warning, so I think it's ok

Offline

#7 2013-09-07 17:17:16

danh
Member
From: Chicago, USA
Registered: 2012-03-08
Posts: 546
Website

Re: PHP Error with new update 84.1 database

User doesn't exist:


helpdesk@glpi:~$ sudo chown -R www:www glpi/files
chown: invalid user: `www:www'


Thanks,
Dan

Offline

#8 2013-09-07 17:53:07

ddurieux
Plugins Dev
From: Propières, France
Registered: 2005-06-17
Posts: 7,521

Re: PHP Error with new update 84.1 database

user www is for FreeBSD, I don't know the right name on linux distributions (perhaps apache-data or something like this)

Offline

#9 2013-09-07 18:01:14

danh
Member
From: Chicago, USA
Registered: 2012-03-08
Posts: 546
Website

Re: PHP Error with new update 84.1 database

SOLVED:

ubuntu server is www-data


Thanks,
Dan

Offline

#10 2013-09-08 08:13:02

Daniel Iusha
Member
Registered: 2013-09-01
Posts: 2

Re: PHP Error with new update 84.1 database

I am on shared hosting and have Cpanel, Apache, PHP is run by fastcgi i think.

I tend to notice that php error logs are created in the directory the error happened which i find somewhat silly which could also cause your site to have several error_logs file scattered in different directories; obviously if you code properly enough this won't be a problem but i still don't like the default behaviour i described above.

Is there any other way i can access errors log on shared hosting enviroment instead of having to go through entire site structure to look for error_log files? If you are thinking to have some excesive new then click here Computer repair York pa


Also is there a way i can stop error log files being creating all over the site and just have errors logged to one file only to keep things nice and in order?

I do have access to my own php.ini (i am using PHP version 5.2.16).

Last edited by Daniel Iusha (2013-09-08 08:17:21)

Offline

#11 2013-09-08 08:18:07

ddurieux
Plugins Dev
From: Propières, France
Registered: 2005-06-17
Posts: 7,521

Re: PHP Error with new update 84.1 database

But for GLPI 0.84, minimal requirement is PHP 5.3 (PHP 5.2 is not supported since 2010!)

Offline

Board footer

Powered by FluxBB