Go Back   HostGator Peer Support Forums > HostGator Announcements > General Announcements

Notices

Reply
 
Thread Tools
  #26  
Old 02-07-2007, 08:28 AM
mjbanks's Avatar
mjbanks mjbanks is offline
Swamp Croc
 
Join Date: May 2006
Posts: 201
Default Re: PHP5 Update.

Quote:
Originally Posted by Impavidus View Post
You can try to see if can change the memory_limit with:

Server without phpSuExec:
In your .htaccess put
php_value memory_limit 32M

Server with phpSuExec:
In you php.ini put
memory_limit 32M

OR

Add this to install/index.php and in main.php
ini_set("memory_limit","32M");

Are you adding the "AddHandler application/x-httpd-php4 .php" to the addon .htaccess and not the main directory .htaccess?

I can not test "AddHandler application/x-httpd-php4 .php", because I do not have php 4 installed.
I tried all of those, not working.

I added the AddHandler to the .htaccess folder in public_html/addon_domain/. My main .htaccess in public_html/ has the AddHandler for php5. I want to go back to php4 for the addon domain.
Reply With Quote
  #27  
Old 02-07-2007, 02:03 PM
FragMaster B FragMaster B is offline
Hatchling Croc
 
Join Date: Jan 2004
Posts: 32
Default Re: PHP5 Update.

Quote:
Originally Posted by GatorDaveC View Post
I didn't want to wait any longer on the PHP5 updates, as all of you are waiting to have SOAP, PDO_MYSQL, and SimpleXML installed on the servers. All of the Shared and Reseller servers are getting PHP 5.2.0 installed with the current flags, plus SOAP, PDO_MYSQL, and SimpleXML. The php.ini file on PHP5.2.0 has been adjusted slightly as well.

Below are the basic PHP5 configuration options which we are using.

register_globals = Off (We are keeping register globals off, as this is what we originally installed PHP5 with)

memory_limit= 40M (This is the maximum amount of memory we allow on both shared and reseller servers)

enable_dl = Off (Securityrisk)

max_execution_time = 30 (Maximum execution time for a PHP script on a Shared / Reseller server)

max_input_time = 60(The maximum amount of time we allow to parse inputdata)

magic_quotes_gpc = On (All ' " \ are escaped automatically)

upload_max_filesize =10M (The maximum PHP upload limit we allow on a Shared / Resellerserver)

short_open_tag = On(Allows the use of <? ?> Instead of <?php ?>)
Forgive me if this has been covered elsewhere, I did a few searches and come up blank.

How do we change these settings when running as php5? Can it be done via .htaccess or a custom php.ini? How? Specifically, I want to turn magic_quotes_gpc off.
Reply With Quote
  #28  
Old 02-07-2007, 02:38 PM
Impavidus Impavidus is offline
Junior Croc
 
Join Date: Feb 2006
Posts: 155
Default Re: PHP5 Update.

Create a text file named "php.ini" in your public_html and add the following:
magic_quotes_gpc = 0
register_globals = 0

and so on..

Use phpinfo() to verify that magic_quotes_gpc and register_globals are now off. If you don't receive any errors and they are still on PM me.
Reply With Quote
  #29  
Old 02-08-2007, 12:08 AM
GatorDaveC's Avatar
GatorDaveC GatorDaveC is offline
HostGator Staff
 
Join Date: Mar 2006
Location: Ontario, Canada
Posts: 2,147,483,721
Default Re: PHP5 Update.

I have created a little PHP wrapper which allows the translated path to be used for php.ini files. This simply means that you will be able to create php.ini files anywhere in your home directory to have custom PHP settings.

Originally I was going to make it so you could only have one php.ini file in your public_html directory which would control everything, but for clients who have multiple sites that need different settings, it would have affected them.

If anyone notices any issues with this method, please create a support ticket with ATTN: DaveC.
Reply With Quote
  #30  
Old 02-08-2007, 12:45 AM
Impavidus Impavidus is offline
Junior Croc
 
Join Date: Feb 2006
Posts: 155
Default Re: PHP5 Update.

This is very good news, I think FragMaster B will be happy. I think you should make a General Announcement.
Reply With Quote
  #31  
Old 02-08-2007, 02:33 AM
GatorDaveC's Avatar
GatorDaveC GatorDaveC is offline
HostGator Staff
 
Join Date: Mar 2006
Location: Ontario, Canada
Posts: 2,147,483,721
Default Re: PHP5 Update.

I can make an announcement on the weekend about this. Is there anything else that should be modified on PHP5? I am just getting it ready to roll out with mod_cgi, and wanted a smooth transition.
Reply With Quote
  #32  
Old 02-08-2007, 02:49 AM
Impavidus Impavidus is offline
Junior Croc
 
Join Date: Feb 2006
Posts: 155
Default Re: PHP5 Update.

It would be nice if date.timezone had a default value. I had a few E_STRICT warning because it was not set. Thank you very much! I hope that you have a smooth roll out.

Last edited by Impavidus; 02-08-2007 at 03:00 AM.
Reply With Quote
  #33  
Old 02-08-2007, 08:13 AM
FragMaster B FragMaster B is offline
Hatchling Croc
 
Join Date: Jan 2004
Posts: 32
Default Re: PHP5 Update.

This is great news Dave. Thank you.

With this change, will we still need to add a php.ini in ever file and subdirectory in order for the changes to take affect site-wide? That's a bit of a pain to have to maintain and keep up with.
Reply With Quote
  #34  
Old 02-08-2007, 03:05 PM
GatorDaveC's Avatar
GatorDaveC GatorDaveC is offline
HostGator Staff
 
Join Date: Mar 2006
Location: Ontario, Canada
Posts: 2,147,483,721
Default Re: PHP5 Update.

Quote:
Originally Posted by FragMaster B View Post
This is great news Dave. Thank you.

With this change, will we still need to add a php.ini in ever file and subdirectory in order for the changes to take affect site-wide? That's a bit of a pain to have to maintain and keep up with.


Yes this will have to be done in every sub directory in order for it to be set globally. The reason why I don't have it set for just one php.ini file in the public_html, which was actually easier to code is because we have clients who have addon domains. If a client needed a setting in another directory, they wouldn't be able to do that if I set it up the other way.

If you would like I can try to possibly setup another script alias which will allow you to have just one php.ini file, but I can't promise you anything right a way.
Reply With Quote
  #35  
Old 02-08-2007, 03:13 PM
FragMaster B FragMaster B is offline
Hatchling Croc
 
Join Date: Jan 2004
Posts: 32
Default Re: PHP5 Update.

Quote:
Originally Posted by GatorDaveC View Post
If you would like I can try to possibly setup another script alias which will allow you to have just one php.ini file, but I can't promise you anything right a way.
This sounds ideal.

For now, having multiple php.ini files is doing the trick tho. Thanks again.
Reply With Quote
  #36  
Old 02-12-2007, 05:04 PM
GatorDaveC's Avatar
GatorDaveC GatorDaveC is offline
HostGator Staff
 
Join Date: Mar 2006
Location: Ontario, Canada
Posts: 2,147,483,721
Default Re: PHP5 Update.

I just thought I would let all of you know that the Shared and Reseller servers have been upgraded to PHP 5.2.1.
Reply With Quote
  #37  
Old 02-12-2007, 05:44 PM
Serra's Avatar
Serra Serra is offline
Veteran Croc
 
Join Date: Feb 2005
Location: Orange Park, FL
Posts: 5,067
Default Re: PHP5 Update.

Quote:
Originally Posted by GatorDaveC View Post
I just thought I would let all of you know that the Shared and Reseller servers have been upgraded to PHP 5.2.1.
I'm sure you mean that everyone on PHP5 was upgraded to php 5.2.1... not EVERYONE...
__________________
Six stages of Dedi Ownership

Fashionable broken link
image included
Reply With Quote
  #38  
Old 02-19-2007, 05:50 AM
terra terra is offline
Hatchling Croc
 
Join Date: Feb 2007
Posts: 8
Default Re: PHP5 Update.

I'm on the MySQL5/PHP5 server and it seems register_globals is on by default, which makes a pain and a security risk since I would have to turn on register_globals for each and every subdirectory. Is there a way I can do this globally or for selective subdirectories recursively?
Reply With Quote
  #39  
Old 02-22-2007, 06:48 AM
Holmis's Avatar
Holmis Holmis is offline
Baby Croc
 
Join Date: Nov 2006
Location: Stockholm, Sweden
Posts: 63
Default Re: PHP5 Update.

Quote:
Originally Posted by GatorDaveC View Post
I just thought I would let all of you know that the Shared and Reseller servers have been upgraded to PHP 5.2.1.
I am unable to activate PHP 5 on any of my domains via .htaccess.
Server: Tundra
Reply With Quote
  #40  
Old 02-22-2007, 12:18 PM
GatorDaveC's Avatar
GatorDaveC GatorDaveC is offline
HostGator Staff
 
Join Date: Mar 2006
Location: Ontario, Canada
Posts: 2,147,483,721
Default Re: PHP5 Update.

Quote:
Originally Posted by Holmis View Post
I am unable to activate PHP 5 on any of my domains via .htaccess.
Server: Tundra
PHP5 seems to be working without any problems from what I can see on the Tundra server. Please add the following line to your .htaccess file "AddHandler application/x-httpd-php5 .php".
Reply With Quote
  #41  
Old 02-22-2007, 11:28 PM
Holmis's Avatar
Holmis Holmis is offline
Baby Croc
 
Join Date: Nov 2006
Location: Stockholm, Sweden
Posts: 63
Default Re: PHP5 Update.

Quote:
Originally Posted by GatorDaveC View Post
PHP5 seems to be working without any problems from what I can see on the Tundra server. Please add the following line to your .htaccess file "AddHandler application/x-httpd-php5 .php".
I tried that and then I checked PHP version from the startpage in Cpanel and it still showed V 4.4.4. Perhaps this info does'nt change?
I'll try again with a script that requires PHP 5.

Thanx
Reply With Quote
  #42  
Old 02-24-2007, 06:06 PM
gwyneth's Avatar
gwyneth gwyneth is offline
Veteran Croc
 
Join Date: Sep 2006
Location: Apostle Islands, Lk Superior
Posts: 5,926
Default Re: PHP5 Update.

Quote:
Originally Posted by Serra View Post
I'm sure you mean that everyone on PHP5 was upgraded to php 5.2.1... not EVERYONE...
Yes, you don't mean all of us have PH5 yet, do you?

My cPanel still shows 4.x, or did the last I looked a couple of days ago.
Reply With Quote
  #43  
Old 02-25-2007, 12:39 AM
PsiPro PsiPro is offline
King Croc
 
Join Date: Nov 2005
Posts: 812
Default Re: PHP5 Update.

Quote:
Originally Posted by gwyneth View Post
My cPanel still shows 4.x, or did the last I looked a couple of days ago.
As PHP5 has to be enabled via htaccess handelers, cPanel would still be showing as running 4.x I belive.
Reply With Quote
  #44  
Old 02-25-2007, 12:53 AM
Impavidus Impavidus is offline
Junior Croc
 
Join Date: Feb 2006
Posts: 155
Default Re: PHP5 Update.

Quote:
As PHP5 has to be enabled via .htaccess handlers, cPanel would still be showing as running 4.x I believe.
php 5 will only show up in CPanel when it's not in a dual environment with php 4. It's because php 4 is installed first, then php 5 is installed as a redirect.
Reply With Quote
  #45  
Old 04-01-2007, 10:25 AM
jkehoe jkehoe is offline
Hatchling Croc
 
Join Date: Apr 2007
Posts: 2
Question Re: PHP5 Update.

Hi,

Is there any chance of configuring PHP with pspell, as my previous provider had it enabled and I run several PHP spellcheck scripts that utilise it.

Regards

James
Reply With Quote
  #46  
Old 04-01-2007, 10:46 AM
Sam Sam is offline
Emperor Croc
 
Join Date: Jan 2007
Location: /bin/false
Posts: 3,059
Default Re: PHP5 Update.

Best to submit a support ticket requesting it
Reply With Quote
  #47  
Old 04-01-2007, 11:05 AM
Serra's Avatar
Serra Serra is offline
Veteran Croc
 
Join Date: Feb 2005
Location: Orange Park, FL
Posts: 5,067
Default Re: PHP5 Update.

Quote:
Originally Posted by jkehoe View Post
Hi,

Is there any chance of configuring PHP with pspell, as my previous provider had it enabled and I run several PHP spellcheck scripts that utilise it.
pspell causes problems, HG has, in the past, not opted to enable it.
__________________
Six stages of Dedi Ownership

Fashionable broken link
image included
Reply With Quote
  #48  
Old 04-02-2007, 03:34 AM
jkehoe jkehoe is offline
Hatchling Croc
 
Join Date: Apr 2007
Posts: 2
Default Re: PHP5 Update.

What sort of problems can it cause?

I already submitted a support request to have it added to the server but was told that it wasn't on there due to resource issues and I was advised to request it here.

Surely it can't be more resource hungry than imagemagick or other similar PHP functions?

James
Reply With Quote
  #49  
Old 05-07-2007, 07:06 PM
GatorDaveC's Avatar
GatorDaveC GatorDaveC is offline
HostGator Staff
 
Join Date: Mar 2006
Location: Ontario, Canada
Posts: 2,147,483,721
Default Re: PHP5 Update.

The PHP5 environment will be updated to version 5.2.2 shortly. This update is just a security and Bug fix update.

I will be sure to include Zend Optimizer, Ioncube, and have the session save path included in the php.ini file.
Reply With Quote
  #50  
Old 05-09-2007, 08:37 AM
picekim picekim is offline
Hatchling Croc
 
Join Date: Sep 2006
Posts: 5
Default Re: PHP5 Update.

i see in the post previously that xsl support was at one time enabled for PHP5. it would be really nice if that could be enabled with the update too

i have a few apps that i am working on that require it.

thanks
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT -6. The time now is 01:04 AM.

 
Forum SEO by Zoints