Configuring the PHP Environment With php.ini

To generate a new php.ini file:

  1. Login to your cPanel
  2. Click on the PHP Config icon located under "Software/Services"
  3. Look for the section that says "Install Default php.ini"
  4. Click the "INSTALL PHP.INI MASTER FILE" button
  5. You will now have a file inside the public_html folder named php.ini.default
  6. Use the File Manager or FTP to rename that file to php.ini

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

To change the type PHP type used for your account:

  1. Login to your cPanel
  2. Click on the PHP Config icon located under "Software/Services"
  3. 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.

Note: 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/.

Note: 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.

  • 0 کاربر این را مفید یافتند
آیا این پاسخ به شما کمک کرد؟

مقالات مربوطه

Gesatech Solutions Nameservers (NS)

Please change your name servers to the correct Gesatech name servers. ns1.gesatech.net...

My SQL Version

The current version can be viewed in the cPanel on left side. Alternately, you can view which...

How to perform a telnet on different operating systems

Windows: Click Start | Run... Type cmd and press Enter In the box type telnet...

Uploading a website

The best way to upload your web site is via FTP. This can be done in a number of different ways...

Email setup in any client (General Information)

Below are the settings that are needed to configure and retrieve email from your main pop...