|
#26
|
|||
|
|||
|
Mhm...phpinfo on my server says: "PHP 5"
but cpanel says: "PHP 4" Which one's right? |
|
#27
|
||||
|
||||
|
Both...........
__________________
best regards, George |
|
#28
|
||||
|
||||
|
phpinfo is showing the current active version of PHP.
|
|
#29
|
|||
|
|||
|
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
|
|||
|
|||
|
Quote:
|
|
#31
|
|||
|
|||
|
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
|
||||
|
||||
|
Yes, it is recurssive from the point you install it. Even for any folder with it's subfolders.
__________________
best regards, George |
|
#33
|
|||
|
|||
|
with PHP5 enabled I am having troubles with included files like from a remote url inclusion
|
|
#34
|
|||
|
|||
|
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
|
||||
|
||||
to HostGator ShortSchoolBus!
__________________
Have a great day, Evan |
|
#36
|
||||
|
||||
|
Thanks for the update...
|
|
#37
|
|||
|
|||
|
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
|
||||
|
||||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
Same here. I just signed up for hosting today. Is this only a problem with new accounts or is something else wrong?
|
|
#44
|
|||
|
|||
|
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
|
|||
|
|||
|
Quote:
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
|
|||
|
|||
|
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
|
||||
|
||||
|
What's not letting you? Your FTP software? What is happening?
__________________
Follow me on Twitter! http://twitter.com/mrw |
|
#48
|
|||
|
|||
|
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
|
||||
|
||||
|
You can leave it in.
__________________
Follow me on Twitter! http://twitter.com/mrw |
|
#50
|
|||
|
|||
|
Neither the FTP or File Manager. It needs to be a file and not a folder, correct?
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|