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

how do i use the php configuration tool?

Answer by: George Kaloyanov, Aplus.Net Knowledge Base Support.

You can use the PHP Configuration tool to switch between PHP version 4 and version 5 with your Unix-based shared hosting plan. You can also choose to create and manage your own php.ini configuration file for both PHP4 and PHP5. With your own php.ini file, you can reconfigure most of the server’s default PHP settings.

Important: A switch from PHP4 to PHP5 will affect only the PHP files owned by your Main FTP Username. Furthermore, changing your PHP version might make your php scripts not to work. Same applies to any php-based application installed through the Aplus.Net Control Panel. We strongly recommend that you do not modify your own php.ini file unless you are absolutely sure what settings you need. Incorrect directives or values in your php.ini file might prevent your php scripts from working properly.

I. HOW TO ACCESS THE PHP CONFIGURATION TOOL:

  1. Start by logging into the Aplus.Net Control Panel at http://cp.aplus.net using your Registration Number and Customer Password.
  2. Select Web Hosting from the top navigation bar.
  3. Next, select Hosted Domains and click on Manage Hosted Domains.
  4. Now, select the hosted domain name that you’d like to manage.

Note: If your actual domain name does not yet resolve to Aplus.Net’s servers, you can use the utility domain (yourftpusername.web.aplus.net) that is associated with your Unix-based hosting plan.

  1. Click the PHP Configuration icon.

II. HOW TO SWITCH BETWEEN PHP4 AND PHP5:

  1. Select the PHP version you need and click Apply.

Note: The php.ini files for PHP4 and PHP5 are different and not interchangeable. Your custom php.ini file (if such was present for the PHP version previously used) will be backed up in your home directory -> /. Furthermore, if a backed-up php.ini file is present for the newly selected PHP Version, it will be restored.

  1. All PHP scripts owned by your Main FTP Username will be handled by the newly selected PHP.

III. HOW TO CREATE AND MANAGE CUSTOM PHP.INI FILE:

  1. Click the Create php.ini button.

Note: If you are already using a custom php.ini file, you will see certain configuration options.

  1. Use the available radio buttons to enable/disable common PHP Extensions and Directives:
    • GD2 Library
    • cURL
    • FTP
    • XSLT
    • IMAP
    • register_globals
    • display_errors
  2. Click Save Settings to apply the changes to your custom php.ini file.

Important: The Advanced Edit button will open the entire php.ini file in edit mode. Please use this option, if you are familiar with PHP configuration. You can:

  • Add new PHP Directives.
  • Enable existing PHP Directives (uncomment the respective text line by removing the semicolon symbol).
  • Change the values of the existing PHP Directives.

The official php.ini directives documentation is available here: http://www.php.net/manual/en/ini.php

Note: If you use the Restore Original feature, your custom php.ini file will be deactivated and backed up. You will then use the server default php.ini file.

IV. PHP VERSION AND SETTINGS:

You have to create a text file named test.php and upload it in your /html folder. The test.php file must contain a single line with the following PHP code: <?phpinfo()?>

You have to access your test.php file by pointing your browser to “http://yourdomain.com/test.php”. The result page will display the current version and settings of your PHP.

Related Links:

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

Email: (optional)

Comments: (optional)

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

Aplus.Net now offers Microsoft AdCenter coupons to customers!

All shared hosting customers are eligible to receive FREE Microsoft AdCenter coupons. Just select Web Hosting from your top navigation bar and click on Coupons>>Microsoft AdCenter to request your coupon. Limit of one per customer. Get advertising today!
Learn More...

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?
 
Related Articles
 

Choosing the right hosting service for your site.Web Hosting ...

How to choose a proper cheap web hosting service.Web Hosting ...

Home Browse Search Ask in Private Personal Folder   Help
powered by web hosting 
  Logged as: Guest