|
Answer
by: Stuart Pierce, Aplus.Net Knowledge Base Support.
Aplus.Net's
Unix-based shared hosting plans support both PHP4 and PHP5. By default,
your php scripts will be handled by the PHP4 engine.
On
our shared hosting platform, you can run part of your website using
PHP5 and the rest using PHP4. You can use this to test your PHP Scripts
in PHP5 environment and then completely migrate to PHP5.
Here's
how you can enable PHP5 for a section of your website:
- Create a
directory you’d like to dedicate to PHP5. It is a good idea
to actually dedicate a subdomain to PHP5.
Important:
In the instructions bellow, we assume that you will dedicate php5test.yourowndomain.com
to PHP5.
- Create an additional
FTP account of your choice. Set its home
directory as /php5test
Note:
Wait for the additional FTP account to be created on the hosting
server. Usually, this happens immediately but in some cases might take
up to 60 minutes.
- Use the newly
created additional FTP account to upload an empty file named PHP5
in the ftp account's home directory ->
/php5test. Note that the filename is case sensitive.
Example: Naming the file Php5 or php5 won’t enable the PHP5
Engine.
- All PHP
scripts uploaded by this additional FTP account into the /php5test
directory and all its subdirectories will be handled by PHP5. The rest
of your site will still be handled by PHP4.
Important:
If you upload php files using your main FTP account, they will still be
handled by PHP4 even if you upload them to the additional FTP account's
web space.
You
can copy your whole php-based website to the PHP5 dedicated directory
to test its functionality. Once you have addressed all issues that you
might experience with PHP5, you can enable PHP5 for your entire web
space. Use your Main FTP Account to upload the same empty PHP5 file to
your root folder -> /. In that case all your php scripts will be
handled by PHP5.
Related
links:
|