PHP Variables Manager

From Wiki

Jump to: navigation, search


Contents

Overview

The PHP Variables Manager plugin is available for all cPanel users under the 1H Software section in cPanel. It allows cPanel users to easily configure different PHP variables per folder through a single interface without the need to manually modify their own php.ini files - convenient and time saving.

Php variables 01.png

Installation

Automatic Installation

The plugin is automatically installed with 1H HIVE installation.

NB: If you had Hive installed prior to this plugin being released (before June 2011) you will not have it installed for your machine. The alternatives are to download the latest 1h installer script from:

http://sw.1h.com/1h_install.sh

Then run the hive installation again. This will install the missing plugins only. Here are all commands you can run in order to accomplish the installation:

wget http://sw.1h.com/1h_install.sh
chmod +x 1h_install.sh
./1h_install.sh hive

Alternatively you can manually install this plugin only following the instructions below.

Manual installation

Existing 1H clients who already use 1H HIVE should install the plugin manually as it is not automatically added upon 1H software updates. To install the plugin manually run the following command:

yum install --disableexcludes=main php-variables-change-for-cpanel

Usage

The plugin shows a directory listing for the respective account. The folders with custom PHP variables show a "php.ini" note right next to the folder name. This means that there exists a php.ini file under this directory and custom PHP variables are applied via it.

Php variables 02.png

To change the PHP variables for a particular folder, click on the folder name. You can navigate to particular folder by clicking on the folder icons. To change the variables just start typing the variable name and the available options will automatically show up in a drop down menu so you can choose from all PHP variables. Then click the Add button.

Php variables 03.png

You can add as much variables as needed. Once you have added a particular variable you can adjust the settings for it. In case the added option is of True/False or On/Off type you will get a radio button selection for it. Otherwise you can type the desired value in a textbox. When done, just hit the Save button:

Php variables 04.png

Note that if you want to apply the changes to all sub-directories you have to check the "Apply changes to all sub-directories" option.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox