Just Host Web Hosting Help
Configure the PHP Environment with php ini
Configuring the PHP Environment with php.ini
Generating a new php.ini file:
- Log in to your Just Host cPanel account.
- Click on the PHP Config icon located under Programming.
- Choose the version of php you will be using.
- PHP 5.4
All files with the extension .php will be handled by the PHP 5.4 engine.
Latest version of PHP.
- PHP 5.4 (Single php.ini)
Same as PHP 5.4, but all subdirectories will use ~/public_html/php.ini
- PHP 5.4 (FastCGI)
All files with the extension .php will be handled by PHP 5.4 FastCGI processes.
FastCGI for PHP makes all your PHP applications run through mod_fastcgi instead of mod_suphp. This eliminates the overhead of loading the PHP interpreter on every hit. Since it is always in memory ready for the next hit, the responses will be generated faster.
- PHP 5.4
All files with the extension .php will be handled by the PHP 5.4 engine.
- Choose any extensions you might need for your scripts
- Click the Save Changes button.
If you have any further questions about configuring the php.ini file, there are extensive descriptions within the file itself. You may also find more help at: http://www.php.net/docs.php
Changing the PHP type used for your account:
- Log in to your Just Host cPanel account.
- Click on the PHP Config icon located under Programming.
- Select the type of php version you wish to use, click Save Changes.
-
Standard PHP (Default)
By default all accounts use standard PHP. With standard PHP selected, a php script will use the server's master php.ini configuration file if the script's directory does not contain a php.ini file. Each hosting account initially has a copy of the php.ini file in the public_html directory. You may make any changes to this file and the modification will take precedent over the master file. With standard PHP selected in the cPanel, you will need to copy the modified php.ini file into all subdirectories containing php files which are to use the custom php settings.
Different folders can have different php.ini files containing different php settings. If you need to use different php settings for two different scripts, you can place them each in their own folder and with their own php.ini file.
-
PHP Single php.ini
To avoid copying the same php.ini file to each and every directory containing php files, you may select PHP Single php.ini. This option changes the php handler defined in ~/public_html/.htaccess to indicate that all subfolders use the same php.ini found in public_html/.
The .htaccess php handler is recursive through all subdirectories unless a subdirectory has a .htaccess file also defining a php handler.
PHP FastCGI
Using the PHP FastCGI option makes all your PHP applications run through mod_fcgid instead of mod_suphp. FastCGI uses only one php.ini file located in the public_html directory. For more detailed information about PHP FastCGI including benefits and potential problems, Click Here
For information about configuring php for an addon domain please see: PHP Configuration for Addon Domain.
548,240 views
bookmark
share
tags: configuration php server
Recommended Help Content
Related Help Content
233,133 views
tags: antivirus basic hacked keyloggers malware php security site

E-mail
Twitter
Google Bookmarks
Facebook
MySpace
Digg
Reddit
Delicious
LinkedIn
StumbleUpon