php upgrade

Ask your questions regarding TimeTrex installation here.
Locked
cbrenchley
Posts: 28
Joined: Sat Dec 02, 2006 3:09 pm

php upgrade

Post by cbrenchley »

I have a server that I can only have access to php 5.0 . Is there a work around to be able to get TimeTrex to work with php 5.0?
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: php upgrade

Post by shaunw »

cbrenchley wrote:I have a server that I can only have access to php 5.0 . Is there a work around to be able to get TimeTrex to work with php 5.0?
TimeTrex should run on PHP v5.0.X for the most part. We have received reports stating that older versions of the v5.0.X branch have bugs that cause TimeTrex to break though.

We always recommend you use the latest possible version of PHP, v5.0.6 should run fine.
cbrenchley
Posts: 28
Joined: Sat Dec 02, 2006 3:09 pm

Post by cbrenchley »

This is what I'm getting on a plesk server running Fedora with php 5.0 on the Requirments.php page.

Warning: putenv() [function.putenv]: Safe Mode warning: Cannot set environment variable 'TZ' - it's not in the allowed list in /var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/DateTime.class.php on line 97

Warning: main() [function.main]: open_basedir restriction in effect. File(/Cache.inc.php) is not within the allowed path(s): (/var/www/vhosts/webconnexions.org/httpdocs:/tmp) in /var/www/vhosts/webconnexions.org/httpdocs/admin/time/includes/global.inc.php on line 170

Warning: main(Cache.inc.php) [function.main]: failed to open stream: Operation not permitted in /var/www/vhosts/webconnexions.org/httpdocs/admin/time/includes/global.inc.php on line 170

Fatal error: main() [function.require]: Failed opening required 'Cache.inc.php' (include_path='/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/core:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/company:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/users:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/punch:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/schedule:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/department:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/help:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/client:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/ in /var/www/vhosts/webconnexions.org/httpdocs/admin/time/includes/global.inc.php on line 170
cbrenchley
Posts: 28
Joined: Sat Dec 02, 2006 3:09 pm

Post by cbrenchley »

This is what I'm getting on a plesk server running Fedora with php 5.0 on the Requirments.php page.

Warning: putenv() [function.putenv]: Safe Mode warning: Cannot set environment variable 'TZ' - it's not in the allowed list in /var/www/vhosts/MYDomain.org/httpdocs/admin/time/classes/modules/core/DateTime.class.php on line 97

Warning: main() [function.main]: open_basedir restriction in effect. File(/Cache.inc.php) is not within the allowed path(s): (/var/www/vhosts/MYDomain.org/httpdocs:/tmp) in /var/www/vhosts/MYDomain.org/httpdocs/admin/time/includes/global.inc.php on line 170

Warning: main(Cache.inc.php) [function.main]: failed to open stream: Operation not permitted in /var/www/vhosts/MYDomain.org/httpdocs/admin/time/includes/global.inc.php on line 170

Fatal error: main() [function.require]: Failed opening required 'Cache.inc.php' (include_path='/var/www/vhosts/MYDomain.org/httpdocs/admin/time/classes/modules/core/. in /var/www/vhosts/MYDomain.org/httpdocs/admin/time/includes/global.inc.php on line 170
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Post by shaunw »

Disable safe_mode in your php.ini file.
cbrenchley
Posts: 28
Joined: Sat Dec 02, 2006 3:09 pm

Fixed part of it

Post by cbrenchley »

I turned off safe mode and it got ride of the first warning:

Warning: putenv() [function.putenv]: Safe Mode warning: Cannot set environment variable 'TZ' - it's not in the allowed list in /var/www/vhosts/MYDomain.org/httpdocs/admin/time/classes/modules/core/DateTime.class.php on line 97

The others are still there.
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: Fixed part of it

Post by shaunw »

cbrenchley wrote:I turned off safe mode and it got ride of the first warning:

Warning: putenv() [function.putenv]: Safe Mode warning: Cannot set environment variable 'TZ' - it's not in the allowed list in /var/www/vhosts/MYDomain.org/httpdocs/admin/time/classes/modules/core/DateTime.class.php on line 97

The others are still there.
"Safe Mode warning" tells you that Safe Mode must still be on, or at least partially.
cbrenchley
Posts: 28
Joined: Sat Dec 02, 2006 3:09 pm

Wait!!!

Post by cbrenchley »

You must have missunderstood what I said. I have no more Safe-mode errors, Here is what I get now.

Warning: main() [function.main]: open_basedir restriction in effect. File(/Cache.inc.php) is not within the allowed path(s): (/var/www/vhosts/webconnexions.org/httpdocs:/tmp) in /var/www/vhosts/webconnexions.org/httpdocs/admin/time/includes/global.inc.php on line 170

Warning: main(Cache.inc.php) [function.main]: failed to open stream: Operation not permitted in /var/www/vhosts/webconnexions.org/httpdocs/admin/time/includes/global.inc.php on line 170

Fatal error: main() [function.require]: Failed opening required 'Cache.inc.php' (include_path='/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/core:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/company:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/users:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/punch:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/schedule:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/department:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/help:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/client:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/ in /var/www/vhosts/webconnexions.org/httpdocs/admin/time/includes/global.inc.php on line 170
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: Wait!!!

Post by shaunw »

cbrenchley wrote:You must have missunderstood what I said. I have no more Safe-mode errors, Here is what I get now.

Warning: main() [function.main]: open_basedir restriction in effect. File(/Cache.inc.php) is not within the allowed path(s): (/var/www/vhosts/webconnexions.org/httpdocs:/tmp) in /var/www/vhosts/webconnexions.org/httpdocs/admin/time/includes/global.inc.php on line 170

Warning: main(Cache.inc.php) [function.main]: failed to open stream: Operation not permitted in /var/www/vhosts/webconnexions.org/httpdocs/admin/time/includes/global.inc.php on line 170

Fatal error: main() [function.require]: Failed opening required 'Cache.inc.php' (include_path='/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/core:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/company:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/users:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/punch:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/schedule:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/department:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/help:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/client:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/ in /var/www/vhosts/webconnexions.org/httpdocs/admin/time/includes/global.inc.php on line 170
Your PHP.INI file is much too restrictive. Try disabling open_basedir in it.
Locked