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

Notices

Closed Thread
 
Thread Tools
  #76  
Old 05-27-2008, 05:28 PM
pablopoo pablopoo is offline
Hatchling Croc
 
Join Date: May 2008
Posts: 1
Default Re: How to configure your account to use PHP 5

done!

feels more responsive.
----
PHP Version 5.2.2
  #77  
Old 05-30-2008, 11:53 AM
hawnted hawnted is offline
Hatchling Croc
 
Join Date: May 2008
Posts: 1
Default Re: How to configure your account to use PHP 5

If I goto www.myaddondomain.com it asks my to download index.php instead of executing it and displaying the page. if I goto www.mymaindomain.com/addondomain it runs it fine whats the problem?>
  #78  
Old 05-30-2008, 05:44 PM
slapshotw's Avatar
slapshotw slapshotw is offline
Veteran Croc
 
Join Date: Jun 2006
Posts: 5,163
Default Re: How to configure your account to use PHP 5

Tell support, this could be an htaccess rule that's applying filetypes incorrectly based on the request URI.
__________________
Follow me on Twitter! http://twitter.com/mrw
  #79  
Old 06-16-2008, 03:52 AM
taramichael taramichael is offline
Hatchling Croc
 
Join Date: Jun 2008
Posts: 1
Default Re: How to configure your account to use PHP 5

Still I'm not configure my account.

Thanks!


Last edited by GatorZach; 06-30-2008 at 05:33 PM.
  #80  
Old 06-30-2008, 11:27 AM
HostgatorNewb HostgatorNewb is offline
Hatchling Croc
 
Join Date: Jun 2008
Posts: 2
Default Re: How to configure your account to use PHP 5

Does this work for anybody still? I just got a new account, and went to start a phpbb board, and as other phpbb users know it recommends that register_globals be turned off. However cause my hosting is shared, I can't seem to change it. Editing the htaccess and adding a php.ini don't do anything for me. Is this something I just have to wait for someone at HG to take a look at? I already have an open ticket.
  #81  
Old 06-30-2008, 11:31 AM
chr1831 chr1831 is offline
Baby Croc
 
Join Date: Mar 2008
Location: Los Angeles, California
Posts: 92
Default Re: How to configure your account to use PHP 5

HostgatorNewb you set it via php.ini (link it through out your account) and it would be simplest to just wait for the ticket to get updated

-Chris
  #82  
Old 06-30-2008, 11:34 AM
HostgatorNewb HostgatorNewb is offline
Hatchling Croc
 
Join Date: Jun 2008
Posts: 2
Default Re: How to configure your account to use PHP 5

I tried using php.ini but the phpbb installer reports that its still enabled. I've tried several different methods but none have worked. I've never had to do this sort of thing before but then again I've never used phpbb before either. :/

It just sucks cause the first reply I got from support came a few hours later, now they must be really busy cause it seems to be taking them a while
  #83  
Old 06-30-2008, 05:05 PM
slapshotw's Avatar
slapshotw slapshotw is offline
Veteran Croc
 
Join Date: Jun 2006
Posts: 5,163
Default Re: How to configure your account to use PHP 5

What do you put in your php.ini and where did you place it? It's not like .htaccess-- the php.ini needs to be in every directory in which the phpbb scripts will execute.
__________________
Follow me on Twitter! http://twitter.com/mrw
  #84  
Old 07-02-2008, 10:40 PM
IronWarrior's Avatar
IronWarrior IronWarrior is offline
Junior Croc
 
Join Date: Nov 2007
Location: England UK
Posts: 164
Default Re: How to configure your account to use PHP 5

Oh wow, I was expecting problems with this upgrade, but I added that command line and my site is back up again.

Was worried over this.
__________________


Last edited by IronWarrior; 07-02-2008 at 10:49 PM.
  #85  
Old 07-03-2008, 12:28 AM
slapshotw's Avatar
slapshotw slapshotw is offline
Veteran Croc
 
Join Date: Jun 2006
Posts: 5,163
Default Re: How to configure your account to use PHP 5

Quote:
Originally Posted by IronWarrior View Post
Oh wow, I was expecting problems with this upgrade, but I added that command line and my site is back up again.
You added the line to say php5, not php4 right?
__________________
Follow me on Twitter! http://twitter.com/mrw
  #86  
Old 02-09-2009, 01:38 AM
Cruth Cruth is offline
Hatchling Croc
 
Join Date: Feb 2006
Posts: 4
Default Why do we have to wade the thru 4-5 year old posts?

Quote:
Originally Posted by GatorBasil View Post
Please note, we are currently working on the transition to PHP5 as the default php engine for all shared/reseller accounts. See here and here.


All of our shared and reseller servers now have both PHP 4 and PHP 5 installed. By default the server will use PHP 4 to process PHP pages. You can easily configure your account to use PHP 5 by adding a line to the apache .htaccess file for your account. The command to add will depend on whether your server is configured to run under phpsuexec.

The first step is to find out if your server is using phpsuexec. This can be done by creating a simple 'php info' script.

Create a file in the public_html folder of your site named 'phpinfo.php' and insert the following:
Code:
<?php
phpinfo();
?>
Load the file in your browser and in the top section find the line 'Server API'. If it shows 'CGI' then your account is on a server with phpsuexec. If it lists the server API as 'apache' you are not on a phpsuexec server.

The next step is to add the appropriate command to your .htaccess file. For the primary domain name on an account the .htaccess file should be located in the public_html folder. Create the file if it does not exist. Place the following command in the file:

AddHandler application/x-httpd-php5 .php

Please note, PHP 5 will not work work using a temporary URL. PHP 5 is only accessible when using the domain name to access your account.

Also, the cpanel software will always reflect your current PHP version in the lower left General Server Information box. (NOTE: If you are on php4 and use the .htaccess edit to use php5, cPanel will still reflect version 4 as that is the default server engine. However, php5 can still be used for your scripts.)

Thank you for choosing HostGator!

Regards,
Basil H.
HostGator Technical Support

Is it only me, or does it seem strange that we have to wade through posts, some 4+ years old, to find answers. This seems very strange to me. And, I am wasting lots and lots of time.

What about a wiki or something similar, something more linear that going round and round reading posts some of which, frankly, are either wrong, but usually just too vague.

Hope this helps.

I am a not a php / htaccess expert, and I need to get something done.

Thx!
  #87  
Old 02-13-2009, 12:28 PM
zazencoy zazencoy is offline
Hatchling Croc
 
Join Date: Feb 2009
Posts: 1
Default Where do I find .htaccess

Dumb question I know but it just isn't leaping out at me. Can you give me a path?
  #88  
Old 02-13-2009, 01:37 PM
gwyneth's Avatar
gwyneth gwyneth is online now
Veteran Croc
 
Join Date: Sep 2006
Location: Apostle Islands, Lk Superior
Posts: 5,923
Default Re: How to configure your account to use PHP 5

Quote:
Originally Posted by Cruth View Post
Is it only me, or does it seem strange that we have to wade through posts, some 4+ years old, to find answers. This seems very strange to me. And, I am wasting lots and lots of time.

What about a wiki or something similar, something more linear that going round and round reading posts some of which, frankly, are either wrong, but usually just too vague.

Hope this helps.

I am a not a php / htaccess expert, and I need to get something done.

Thx!
What are you trying to do? All servers now have PHP 5 as default, I believe, and this advice was about how to to use it back when PHP 4 was default.

Quote:
Originally Posted by zazencoy View Post
Dumb question I know but it just isn't leaping out at me. Can you give me a path?
If you just got your account, none of this should be relevant to you. PHP 5 should run fine on your server, and if it doesn't, you should contact support.
  #89  
Old 02-25-2009, 01:55 PM
jwm4 jwm4 is offline
Hatchling Croc
 
Join Date: Jan 2009
Location: Atlanta, GA
Posts: 1
Default Re: How to configure your account to use PHP 5

Agree with Cruth above. It's very difficult as a new customer here discerning the exact current status. These posts say all servers, then some, then no not yet, etc.

Please provide an update or KB explaining current PHP version/phpsuexec/php.ini structure and general considerations arising from it. Having moved from Siteground, none of his was an issue there. I'm all for the most up-to-date and secure infrastructue, but just need to know precisely what it is and what consequences arise in moving other apps here from environments that were less up-to-date.

Thanks!

Jim
  #90  
Old 02-26-2009, 02:35 AM
GatorNathon's Avatar
GatorNathon GatorNathon is offline
Linux Support Supervisor
 
Join Date: Sep 2006
Posts: 2,401
Default Re: How to configure your account to use PHP 5

All servers now run php5 by default. You will no longer need to configure your account to use it. This thread is now being closed to prevent any further confusion.
__________________
=-=-=-=-=-=-=-=-=-=

NathonH
Support Manager
Level 2 Systems Administrator
Closed Thread

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:28 AM.

 
Forum SEO by Zoints