This is a discussion on "php5 with cpanel" within the Hosting & Domains section. This forum, and the thread "php5 with cpanel are both part of the Hosting Related category.
|
|
|
|
|
![]() |
||
php5 with cpanel
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
||||
|
||||
|
php5 with cpanel
Is there a way to make cpanel handle all .php files as php5 rather than php4?
I can do this by renaming them all to .php5 but that would take ages!
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
|
|
#2
|
|||
|
|||
|
Re: php5 with cpanel
This would be a great question to ask me...your host! By default on new hosting accounts, files ending in the extension .php will be parsed using PHP version 4. Files ending in .php5 will be parsed using PHP version 5. If you wish to override this default and have all files be parsed using PHP5, a .htaccess file can be placed in the directory you wish to use version 5 for .php files (if you want it site wide, just put the .htaccess file in your public_html directory). This .htaccess file needs to contain the following line somewhere in it (if this is all you're using this .htaccess file for, this would be the only line in the file):
|
|
#3
|
||||
|
||||
|
Re: php5 with cpanel
Sorry Jacob, I thought you were offline when I asked this.
Will try now out of interest Could this also go in the apache handlers section?
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#4
|
|||
|
|||
|
Re: php5 with cpanel
Don't ask me now...lol. I already told you the answer! ^^
|
![]() |
| Thread Tools | |
|
|