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

Notices

Closed Thread
 
Thread Tools
  #26  
Old 05-05-2007, 12:05 PM
cKey1990 cKey1990 is offline
Hatchling Croc
 
Join Date: May 2007
Posts: 9
Default Re: How to configure your account to use PHP 5

Mhm...phpinfo on my server says: "PHP 5"
but cpanel says: "PHP 4"

Which one's right?
  #27  
Old 05-05-2007, 01:09 PM
gtgeorge's Avatar
gtgeorge gtgeorge is offline
Emperor Croc
 
Join Date: Mar 2005
Posts: 2,258
Default Re: How to configure your account to use PHP 5

Quote:
Originally Posted by cKey1990 View Post
Mhm...phpinfo on my server says: "PHP 5"
but cpanel says: "PHP 4"

Which one's right?
Both...........
__________________
best regards,
George
  #28  
Old 05-05-2007, 02:50 PM
enVias's Avatar
enVias enVias is offline
Hatchling Croc
 
Join Date: Mar 2007
Posts: 4
Default Re: How to configure your account to use PHP 5

Quote:
Originally Posted by cKey1990 View Post
Mhm...phpinfo on my server says: "PHP 5"
but cpanel says: "PHP 4"

Which one's right?
phpinfo is showing the current active version of PHP.
  #29  
Old 05-06-2007, 11:30 PM
GatorBasil
HostGator Guest
 
Posts: n/a
Default Re: How to configure your account to use PHP 5

The cpanel software runs using PHP 4. PHP 5 will only be used for your scripts.

Basil H.
HostGator Technical Support
http://hostgator.com/help
  #30  
Old 05-07-2007, 05:53 AM
cKey1990 cKey1990 is offline
Hatchling Croc
 
Join Date: May 2007
Posts: 9
Default Re: How to configure your account to use PHP 5

Quote:
Originally Posted by GatorBasil View Post
The cpanel software runs using PHP 4. PHP 5 will only be used for your scripts.

Basil H.
HostGator Technical Support
http://hostgator.com/help
Gotcha! Thanks guys...
  #31  
Old 05-10-2007, 07:36 AM
mioblog mioblog is offline
Hatchling Croc
 
Join Date: Sep 2005
Location: Italy
Posts: 5
Default Re: How to configure your account to use PHP 5

a question: is it possible to use php 5 only for certain subdomains using that .htaccess rule? So for example:
mysite.ext --> php4 (as default)
subdomain1.mysite.ext --> php5 (through .htaccess directive)
subdomain2.mysite.ext --> php4 (as default)

If I understood, in this case the .htaccess should be placed in subdomain1 folder, right?
__________________
Forum
  #32  
Old 05-10-2007, 08:43 AM
gtgeorge's Avatar
gtgeorge gtgeorge is offline
Emperor Croc
 
Join Date: Mar 2005
Posts: 2,258
Default Re: How to configure your account to use PHP 5

Yes, it is recurssive from the point you install it. Even for any folder with it's subfolders.
__________________
best regards,
George
  #33  
Old 09-06-2007, 10:13 PM
supernix supernix is offline
Baby Croc
 
Join Date: May 2007
Location: USA
Posts: 84
Default Re: How to configure your account to use PHP 5

with PHP5 enabled I am having troubles with included files like from a remote url inclusion
  #34  
Old 09-30-2007, 05:29 PM
ShortSchoolBus ShortSchoolBus is offline
Hatchling Croc
 
Join Date: Sep 2007
Posts: 1
Default Re: How to configure your account to use PHP 5

Just thought it was worth mentioning if you have aready set up apache handlers for application/x-httpd-php, you will need to change them to AddHandler application/x-httpd-php5 in .htaccess too or you'll still be running php 4.

For example, if you setup a apache handler for the extension .go to be handled as application/x-httpd-php it will not use php 5 unless you change it to do so with "AddHandler application/x-httpd-php5 .go" in your root level .htaccess file.
  #35  
Old 09-30-2007, 06:06 PM
esl's Avatar
esl esl is offline
Emperor Croc
 
Join Date: Jan 2005
Location: Proud to be an American - USA
Posts: 2,184
Default Re: How to configure your account to use PHP 5

to HostGator ShortSchoolBus!
__________________
Have a great day,
Evan
  #36  
Old 11-02-2007, 08:06 AM
nexia's Avatar
nexia nexia is offline
Baby Croc
 
Join Date: Aug 2005
Location: Quebec city, Ca
Posts: 92
Default Re: How to configure your account to use PHP 5

Thanks for the update...
  #37  
Old 01-07-2008, 03:23 AM
RBX0122 RBX0122 is offline
Baby Croc
 
Join Date: May 2006
Posts: 93
Default Re: How to configure your account to use PHP 5

Do I have to add "AddHandler application/x-httpd-php5 .php" to each new and or exisiting accounts I create on my reseller plan or can I add it to my main account I have whm and get all the sites I host ?
  #38  
Old 01-07-2008, 06:01 AM
quietFinn's Avatar
quietFinn quietFinn is offline
Emperor Croc
 
Join Date: Feb 2005
Posts: 2,764
Default Re: How to configure your account to use PHP 5

Quote:
Originally Posted by boiserc View Post
Do I have to add "AddHandler application/x-httpd-php5 .php" to each new and or exisiting accounts I create on my reseller plan or can I add it to my main account I have whm and get all the sites I host ?
You need to add it to every account.
__________________
quietFinn - netFinn Finland
"Be who you are and say what you feel because those who mind don't matter and those who matter don't mind." - Dr. Seuss
  #39  
Old 01-17-2008, 09:31 AM
XboxRant XboxRant is offline
Hatchling Croc
 
Join Date: Jan 2008
Posts: 1
Default Re: How to configure your account to use PHP 5

is turning php5 on and off just a simple matter of taking the line out of my htaccess and putting it back in? I ask because I have 2 scripts to run. One uses 4 and one uses 5
  #40  
Old 01-31-2008, 01:10 PM
ClearpointTech ClearpointTech is offline
Hatchling Croc
 
Join Date: Nov 2007
Posts: 1
Default Re: How to configure your account to use PHP 5

Xboxrant, yes - apache polls that .htaccess when a file is accessed in that directory, so removing that entry will make your .php files run in 4.
  #41  
Old 01-31-2008, 04:58 PM
Quarterbore Quarterbore is offline
Hatchling Croc
 
Join Date: Jan 2008
Location: Valley Forge PA
Posts: 15
Thumbs up Re: How to configure your account to use PHP 5

I just wanted to say

I am working on a project that needed PHP 5.2.0 or higher and I expected I was going to have to upgrade to a dedicated box until I found this....

I was on PHP 5.2.2. within 5-minutes of finding this....

  #42  
Old 02-07-2008, 04:18 PM
cactux cactux is offline
Hatchling Croc
 
Join Date: Dec 2007
Posts: 8
Question Re: How to configure your account to use PHP 5

Hello,
I tried both lines, they have the same result: my browser asks me where to save the PHP file, instead of displaying the generated html.
Any idea why?
Thanks
  #43  
Old 02-11-2008, 01:45 PM
hugepedlar hugepedlar is offline
Hatchling Croc
 
Join Date: Feb 2008
Posts: 1
Default Re: How to configure your account to use PHP 5

Quote:
Originally Posted by cactux View Post
Hello,
I tried both lines, they have the same result: my browser asks me where to save the PHP file, instead of displaying the generated html.
Any idea why?
Thanks
Same here. I just signed up for hosting today. Is this only a problem with new accounts or is something else wrong?
  #44  
Old 02-14-2008, 02:55 AM
cactux cactux is offline
Hatchling Croc
 
Join Date: Dec 2007
Posts: 8
Angry Re: How to configure your account to use PHP 5

Quote:
Originally Posted by hugepedlar View Post
Same here. I just signed up for hosting today. Is this only a problem with new accounts or is something else wrong?
There is something wrong. You should ask the support to recompile PHP 5, that's what was needed for me. But be careful: in the same time, they will switch register_globals from ON to OFF even for PHP 4. This rendered many sites dead on my server!!!!!!!!
  #45  
Old 02-15-2008, 10:48 PM
sutra
HostGator Guest
 
Posts: n/a
Default Re: How to configure your account to use PHP 5

Quote:
Originally Posted by GatorBasil View Post
Reversing my earlier statement regarding the URL used to access the site:

PHP 5 can only be accessed using your domain name. It can not be accessed using a temporary URL.


Update: updated the original post to reflect the change to this information.
Hi is this still the case?

I have a client signed up the Swamp Croc with your in October and was unable to upgrade to PHP 5 because we are not ready to point the domain to your server. I called your tech support yesterday needing help to find out if client's account can be upgraded to PHP 5 without the domain points to your server, someone called Chris I think - polite (in artificial way) but impatient guy (after hanging up the phone I felt was treating like I am an idiot), never allowed me to finish what I attempt to say, and is told I can upgrade to PHP with the IP address. He asked me go to File Manager, add the AddHandler application/x-httpd-php5 .php somewhere I can't exactly remember as I already did this in the .htaccess file in last October.

I am still seeing the 500 server error!

The open source that I was building the site for client requires PHP 5, as a result I can't test out your server because we are not ready to point the domain to your server.
  #46  
Old 02-21-2008, 10:48 AM
GCCG GCCG is offline
Hatchling Croc
 
Join Date: Jan 2008
Posts: 47
Default Re: How to configure your account to use PHP 5

It says in an above post that if you don't have the .htaccess file, to create one. For some reason it's not letting me. Any ideas as to why I can't create one?
  #47  
Old 02-21-2008, 09:09 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's not letting you? Your FTP software? What is happening?
__________________
Follow me on Twitter! http://twitter.com/mrw
  #48  
Old 02-21-2008, 09:51 PM
mrterry mrterry is offline
Hatchling Croc
 
Join Date: Aug 2007
Posts: 1
Default Re: How to configure your account to use PHP 5

Ok 1 quick question ? I have tested and all looks like will be fine with PHP5 I went ahead and put the statement

AddHandler application/x-httpd-php5 .php

in my .htaccess file, would it be ok to leave it that way and run things like that for now, or with the up coming upgrades will it cause any problems for that to be in there already ?

So I guess what I am asking is if it will not affect the upgrade scheduled starting in March, is it ok to leave in place ?
  #49  
Old 02-21-2008, 10:16 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

You can leave it in.
__________________
Follow me on Twitter! http://twitter.com/mrw
  #50  
Old 02-21-2008, 10:21 PM
GCCG GCCG is offline
Hatchling Croc
 
Join Date: Jan 2008
Posts: 47
Default Re: How to configure your account to use PHP 5

Neither the FTP or File Manager. It needs to be a file and not a folder, correct?
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 10:56 PM.

 
Forum SEO by Zoints