PHP Upgrade

Anything related to UNFLUX.net hosting services and support.

Postby missionsix on Fri Dec 28, 2007 8:42 pm

umm...

My sites down too.

www.visualdesigncore.com

internal server error, not sure why.
User avatar
missionsix
Registered User
 
Posts: 34
Joined: Thu Jul 01, 2004 9:06 pm

Postby Bigwebmaster on Sat Dec 29, 2007 12:03 am

Hi missionsix,

I just looked into the problem and it is because we have upgraded PHP to now run under each account's username instead of under the user nobody. What this means is that certain commands in your .htaccess file appear to no longer be valid:

php_admin
php_value
php_flag

This reason this is doing that is because we use the wrapper phpSuExec. Removing those from the .htaccess file should fix your website with regards to the internal server error. However for your script to work you will probably need to customize a php.ini file.

This might give more information on how to resolve this:

http://forums.jumba.com.au/showthread.php?t=4314

If you are having any problems resolving this please let me know.
UNFLUX.NET SUPPORT
User avatar
Bigwebmaster
Technical Director
 
Posts: 109
Joined: Sun Jun 27, 2004 10:54 pm

Postby Bigwebmaster on Sat Dec 29, 2007 2:37 am

I fixed some of the problems for you, however, I think you might need to upgrade your script. Your script is saying:

Code: Select all
requires the ionCube PHP Loader ioncube_loader_lin_5.2.so to be installed by the site administrator.


however I have verified it is in fact installed:

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with eAccelerator v0.9.5.2, Copyright (c) 2004-2006 eAccelerator, by eAccelerator
with the ionCube PHP Loader v3.1.32, Copyright (c) 2002-2007, by ionCube Ltd., and
with Zend Extension Manager v1.2.0, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.3.0, Copyright (c) 1998-2007, by Zend Technologies


PHP was also upgraded from 5.2.2 to 5.2.4
UNFLUX.NET SUPPORT
User avatar
Bigwebmaster
Technical Director
 
Posts: 109
Joined: Sun Jun 27, 2004 10:54 pm

PhpSuExec

Postby Ganceann on Sat Dec 29, 2007 11:30 am

Regarding the PhpSuExec and php.ini file...

How would I get it to work for the php_value?

My settings for php value were:
Code: Select all
php_value session.use_only_cookies 1
php_value session.use_trans_sid 0


However, simply pasting into a php.ini file would not change the settings as I understand it uses a different method to acknowledge requests.

On top of that, I have an init template in the script I use... this is the notes about it:

Description: php initialization code.
This code gets run before any of the templates, used for example to setup variable names.


Would that serve as a php.ini file or would a separate file be required? (still would need to know the format to use to turn trans_sid 0 and use_only_cookies 1)

edit:

Would this be the correct way? (not sure how to check if it works as intended)

Code: Select all
session.use_only_cookies = On
session.use_trans_sid = Off
Ganceann
Registered User
 
Posts: 23
Joined: Sun May 14, 2006 5:23 pm

Postby Bigwebmaster on Sat Dec 29, 2007 1:39 pm

That might be correct, did you try that? It might also be this:

session.use_only_cookies=1
session.use_trans_sid = 0

You should be able to check it by making a php file in your directory that you have the php.ini file with the following:

Code: Select all
<?php

phpinfo();

?>


That will list all of the PHP veriables and you can see if your php.ini file actually changed the value.

Once you are done testing that I would remove that file since it tells alot about the server for any hackers out there.
UNFLUX.NET SUPPORT
User avatar
Bigwebmaster
Technical Director
 
Posts: 109
Joined: Sun Jun 27, 2004 10:54 pm

Postby Bigwebmaster on Sat Dec 29, 2007 1:42 pm

Okay I Just tested:

Code: Select all
session.use_only_cookies=1
session.use_trans_sid = 0


in a php.ini file in a local directory on a site here and that did in fact change the values. I believe it only works for the directory it is in, which means you will have to place that php.ini file in each directory that you need those changes made.
UNFLUX.NET SUPPORT
User avatar
Bigwebmaster
Technical Director
 
Posts: 109
Joined: Sun Jun 27, 2004 10:54 pm

Postby Ganceann on Sat Dec 29, 2007 4:06 pm

Bigwebmaster wrote:Okay I Just tested:

Code: Select all
session.use_only_cookies=1
session.use_trans_sid = 0


in a php.ini file in a local directory on a site here and that did in fact change the values. I believe it only works for the directory it is in, which means you will have to place that php.ini file in each directory that you need those changes made.


Ok, it is fine having a php.ini in each directory.
Thanks.
Ganceann
Registered User
 
Posts: 23
Joined: Sun May 14, 2006 5:23 pm

Postby Ganceann on Sat Dec 29, 2007 8:58 pm

Is there any difference (in affect) between the following two php options showing?

Code: Select all
session.use_only_cookies   On   On
session.use_trans_sid   no value   no value


and

Code: Select all
session.use_only_cookies   On   On
session.use_trans_sid   0   0


basically is no value and 0 treated exactly the same? or is there any difference?
Ganceann
Registered User
 
Posts: 23
Joined: Sun May 14, 2006 5:23 pm

Postby Bigwebmaster on Sun Dec 30, 2007 10:58 pm

I have no idea on that, you might have to look that up in a PHP manual, or just test it with your script to see if its working like it should. I would think no value simply means its not set, however, that is just a guess.
UNFLUX.NET SUPPORT
User avatar
Bigwebmaster
Technical Director
 
Posts: 109
Joined: Sun Jun 27, 2004 10:54 pm


Return to General Support

Who is online

Users browsing this forum: MSN [Bot] and 1 guest

cron