post your comment   print   send to a friend
Rate: 100% | Views: 1452
Question categories:  Unix Plans

how can i use php5 and php4 simultaneously?

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:

  1. 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.

  1. 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.

  1. 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.
  2. 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:

Customer Feedback
Rate: 100% | Views: 1452 | Please Rate:  
 
If you have other comments or ideas for future technical tips, please type them here:

Email: (optional)

Comments: (optional)

 PHP5 Hosting | Dedicated Server Hosting    Back to serch results
Browse the Base
Knowledge Base
Shared Hosting
  Unix Plans
    MySQL
Messages
 

Blogging at Aplus.Net

Don't forget to check out our blog ! Keep up to date at Aplus.Net.

Private Area
 
Ask
in Private
   
Personal
Folder
 
Related Questions
 
1. I have a Unix-based shared hosting plan. How can I change permissions for files/directories using the File Manager?
 
2. How can I protect directories?
 
3. How to Set Up a Storefront ?
 
4. What are the permissions on files and directories?
 
5. In Unix, what is the find command, and how do I use it to search through directories for files?
 
Home Browse Search Ask in Private Personal Folder   Help
powered by web hosting 
  Logged as: Guest