AussieHost.com Web Hosting - Host Multiple Domains on Fast Australian Servers - Powered by vBulletin
 
 
Home About Us - Aussie Host Web Hosting Australia Frequently Asked Questions - FAQ's Products - Website Hosting Australia Network - Fast Australian Hosting Network Forum - The AussieHost.com Forum Community Contact Us Support - Fast Technical Support for Customers Terms

Old 26th December 2007, 08:31 AM   #1 (permalink)
AussieHost.com Founder
 
Aussie Bob's Avatar
 
Join Date: May 2007
Posts: 767
Default PHP5 available!

Both PHP4 and PHP5 are available on AussieHost.com servers, Koala. Wallaby server is PHP5 only, as PHP4 has been EOL for a long while now.

They are both installed as apache modules (mod_php5 + mod_php4).
Having both versions of php available as modules, rather than running 1 of them as a CGI, is better as your existing scripts and permissions will need no modification, in order to run under php4 or php5.

All you have to do to run existing or new scripts via php5 is either place a .htaccess file within the directory that you want to run php5, with the following within it.

Code:
AddHandler application/x-httpd-php5 .php
You can also name a file with a .php5 extension (no .htaccess modification required), so that you can run both versions of php within 1 directory if you wanted to

You are able to place a .htaccess file within any directory and run different versions of php, all within the same site.

Of course a .htaccess file placed within your public_html directory, will enable you to run php5 scripts anywhere on your site, you don't have to place a .htaccess file within every directory.

You can also use 'php_value' directives within your .htaccess files as well, just like you can with php4. The syntax is just slightly different.

You would use php5_value rather than php_value if you run php5 within that directory.

You can see your servers php configuration via -

Koala server PHP5 - http://koala.aussiehost.com/phpinfo.php5
Koala server PHP4 - http://koala.aussiehost.com/phpinfo.php

Wallaby PHP5 - http://wallaby.aussiehost.com/phpinfo.php
Aussie Bob is offline   Reply With Quote
 
LinkBack Thread Tools Display Modes

Reply

Thread Tools
Display Modes
Go Back   AussieHost.com Web Hosting - Host Multiple Domains on Fast Australian Servers > AussieHost.com Knowledge Base > Cpanel guide
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


All times are GMT +10. The time now is 04:41 PM.

Home About Us - Aussie Host Web Hosting Australia Frequently Asked Questions - FAQ's Products - Website Hosting Australia Network - Fast Australian Hosting Network Forum - The AussieHost.com Forum Community Contact Us Support - Fast Technical Support for Customers Terms
Website Design by mSites
Copyright AussieHost.com 2007. All Rights Reserved. Search Engine Friendly URLs by vBSEO 3.1.0