Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Web Hosting Forum


You are currently viewing our Web Hosting Forum as a guest. Please register to participate.
Login



Closed Thread
Hosting Company has PHP4 as the default
Old 01-27-2011, 12:10 AM Hosting Company has PHP4 as the default
TWD
TWD's Avatar
King Spam Talker

Posts: 1,190
Trades: 0
The web hosting company I am using, for some bizarre reason, started
using PHP4 as the default installation setup.

In the CPanel there is an option under PHP Config that allows you to
choose PHP5 as the correct version.

But as far as I can tell it only adds a line to the .htaccess file
# Use PHP5 Single php.ini as default
AddHandler application/x-httpd-php5s .php

I am worried that if the .htaccess gets deleted or overwritten
the whole freakin site will crash.

Is there a more robust way to ensure that the site runs in PHP 5?

I thought it was possible to install a php.ini file or something like that.
__________________
RATE-MY-WEBSITE.com "Free website reviews by real web professionals"
Please login or register to view this content. Registration is FREE
TWD is offline
View Public Profile
 
 
Register now for full access!
Old 01-27-2011, 03:35 AM Re: Hosting Company has PHP4 as the default
SiberForum's Avatar
canadian

Posts: 1,497
Trades: 0
Most web hosting companies store that information on their web site. Some not. But you always can get in touch with provider and ask about that in presales conversation. I suppose that small unmanaged VPS could be good option as well.
__________________

Please login or register to view this content. Registration is FREE
SiberForum is offline
View Public Profile
 
Old 01-27-2011, 04:31 AM Re: Hosting Company has PHP4 as the default
TWD
TWD's Avatar
King Spam Talker

Posts: 1,190
Trades: 0
Quote:
Originally Posted by SiberForum View Post
Most web hosting companies store that information on their web site. Some not. But you always can get in touch with provider and ask about that in presales conversation. I suppose that small unmanaged VPS could be good option as well.
WTF...

Thank you Captain Non-Sequitur
__________________
RATE-MY-WEBSITE.com "Free website reviews by real web professionals"
Please login or register to view this content. Registration is FREE

Last edited by TWD; 01-27-2011 at 04:34 AM..
TWD is offline
View Public Profile
 
Old 01-27-2011, 08:48 AM Re: Hosting Company has PHP4 as the default
TWD
TWD's Avatar
King Spam Talker

Posts: 1,190
Trades: 0
Reading through that link, it only describes how to set up a custom php.ini

but misses the point really.

I am looking for a way of FORCING the server to dish up PHP5 WITHOUT
using a .htaccess file. I've looked line by line through php.ini anyway and
it has lots of settings but nothing that explicitly directs the server to use
either PHP4 or PHP5.
__________________
RATE-MY-WEBSITE.com "Free website reviews by real web professionals"
Please login or register to view this content. Registration is FREE
TWD is offline
View Public Profile
 
Old 01-27-2011, 10:23 AM Re: Hosting Company has PHP4 as the default
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,381
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
add

AddHandler application/x-httpd-php5s .php

to httpd.conf

(if you have access to it)
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
View Public Profile Visit chrishirst's homepage!
 
Old 01-27-2011, 08:18 PM Re: Hosting Company has PHP4 as the default
TWD
TWD's Avatar
King Spam Talker

Posts: 1,190
Trades: 0
Quote:
Originally Posted by chrishirst View Post
add

AddHandler application/x-httpd-php5s .php

to httpd.conf

(if you have access to it)
Hmmm. I can't see it in any of the server directories I have
access to.
Where should it be located...in the public_html directory?
__________________
RATE-MY-WEBSITE.com "Free website reviews by real web professionals"
Please login or register to view this content. Registration is FREE
TWD is offline
View Public Profile
 
Old 01-28-2011, 05:47 PM Re: Hosting Company has PHP4 as the default
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,381
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
/etc/apache/conf/ usually, which is above the document root folders.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
View Public Profile Visit chrishirst's homepage!
 
Old 01-31-2011, 03:58 AM Re: Hosting Company has PHP4 as the default
~ServerPoint~'s Avatar
Defies a Status

Posts: 1,687
Name: Travis
Trades: 0
There are many web hosts that support PHP4 version, Google search will help you to find a good option.. Also try to contact the company and ask them about PHP4.
__________________
ServerPoint.com - a true hosting company since 1998
Web Hosting, colocation,
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
~ServerPoint~ is offline
View Public Profile
 
Old 01-31-2011, 04:13 AM Re: Hosting Company has PHP4 as the default
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,381
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
Originally Posted by ~ServerPoint~ View Post
There are many web hosts that support PHP4 version, Google search will help you to find a good option.. Also try to contact the company and ask them about PHP4.
Travis. You really should read some questions fully.

The OP is NOT looking for hosting with PHP4!

The question is "How to ensure that php5 is the default handler" for .php scripts.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
View Public Profile Visit chrishirst's homepage!
 
Old 01-31-2011, 06:10 AM Re: Hosting Company has PHP4 as the default
TWD
TWD's Avatar
King Spam Talker

Posts: 1,190
Trades: 0


Jesus wept.
__________________
RATE-MY-WEBSITE.com "Free website reviews by real web professionals"
Please login or register to view this content. Registration is FREE
TWD is offline
View Public Profile
 
Old 02-01-2011, 12:07 AM Re: Hosting Company has PHP4 as the default
Ultra Talker

Posts: 423
Name: Janice McClean
Trades: 0
Have you considered asking your host to force PHP5 instead of PHP4? It seems ridiculous to have PHP5 available but defaulting to PHP4. Never heard of that one.
__________________
My Site : MacFTW [link coming soon!]

Hosted by:
Please login or register to view this content. Registration is FREE
cantletugo is offline
View Public Profile
 
Old 02-01-2011, 03:37 AM Re: Hosting Company has PHP4 as the default
TWD
TWD's Avatar
King Spam Talker

Posts: 1,190
Trades: 0
Quote:
Originally Posted by cantletugo View Post
It seems ridiculous to have PHP5 available but defaulting to PHP4. Never heard of that one.
I agree. And I have.
__________________
RATE-MY-WEBSITE.com "Free website reviews by real web professionals"
Please login or register to view this content. Registration is FREE
TWD is offline
View Public Profile
 
Old 02-01-2011, 06:57 AM Re: Hosting Company has PHP4 as the default
SiberForum's Avatar
canadian

Posts: 1,497
Trades: 0
Why not to choose PHP 5 version?
There are many web hosts that support PHP 4 & 5 versions.
__________________

Please login or register to view this content. Registration is FREE
SiberForum is offline
View Public Profile
 
Old 02-02-2011, 07:15 AM Re: Hosting Company has PHP4 as the default
Webmaster Talker

Posts: 687
Name: Rob Smith
Trades: 0
Try to contact the current customers of the web host provider of your choice and see if they are satisfied with the kind of services being rendered by the web host company.
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
- Fully Managed Dedicated and since 1999.

Please login or register to view this content. Registration is FREE
- Low cost hosting from $2.79!
WebhostGIANT-Rob is offline
View Public Profile
 
Old 02-02-2011, 07:44 AM Re: Hosting Company has PHP4 as the default
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,381
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
KShilling me softly!!!!
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
View Public Profile Visit chrishirst's homepage!
 
Old 02-03-2011, 09:45 AM Re: Hosting Company has PHP4 as the default
~ServerPoint~'s Avatar
Defies a Status

Posts: 1,687
Name: Travis
Trades: 0
I believe that you need to look at the quality of the service and especially customer support.
__________________
ServerPoint.com - a true hosting company since 1998
Web Hosting, colocation,
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
~ServerPoint~ is offline
View Public Profile
 
Old 02-03-2011, 08:50 PM Re: Hosting Company has PHP4 as the default
TWD
TWD's Avatar
King Spam Talker

Posts: 1,190
Trades: 0
Cockadoodle doooo !

Time to close this thread I think.
__________________
RATE-MY-WEBSITE.com "Free website reviews by real web professionals"
Please login or register to view this content. Registration is FREE
TWD is offline
View Public Profile
 
Old 02-04-2011, 04:53 PM Re: Hosting Company has PHP4 as the default
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,381
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Agreed
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
View Public Profile Visit chrishirst's homepage!
 
Closed Thread     « Reply to Hosting Company has PHP4 as the default
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 2.32244 seconds with 12 queries