Announcement

Collapse
No announcement yet.

How to change the PHP variable from the cPanel?

Collapse

Unconfigured Ad Widget

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to change the PHP variable from the cPanel?

    How to change the PHP variable from the cPanel? Can anyone help me to figure out it?

  • #2
    • Manually via php.ini file

    You can apply custom PHP settings on a per-folder basis using a php.ini file.

    For example, if you need register_globals set to Off in a particular directory, you should create a php.ini file in that directory using file manager in cPanel. The php.ini file should contain:

    register_globals = off

    Naturally, if you'd like register_globals turned On you should specify:

    register_globals = on







    Marc_AccuWebHosting
    Member
    Last edited by Marc_AccuWebHosting; 08-07-2019, 10:02 AM.

    Comment


    • #3
      Hello,

      You can change the PHP variable from the PHP.ini file in the file manager from the cPanel. Also, you can change the PHP variable from the .htaccess file.
      Or
      Please refer to the following steps in order to change the PHP variable from the cPanel.

      1. Login to cPanel
      2. Click on the "select PHP version" option under the 'Software' section.
      3. Click on the right corner option "switch to PHP option"
      4. change the PHP variable as per your requirement.
      5. After changing the PHP variable, you will need to save this changing.

      Regards,
      Marc

      Comment


      • #4
        In order to do that you will need to access your cPanel and navigate to PHP Variables Manager. Select the directory you wish to change the PHP value for and under Variable place the appropriate PHP setting. After you click on the Add button the variable will appear below, so you can modify its value.

        Comment


        • #5
          AccuWeb Hosting 20th Anniversary Sale
          Hi,
          We can change PHP variables in cpanel by 3 steps and these all are easy:
          1. Using PHP.ini file: In this you can change the limit of PHP directives from php.ini file. in this you can create file or if php.ini file already exist then you can add code.
          Example you can add below line to increase execution time.
          Code:
          max_execution_time = 30
          2. Using .htaccess file: In this you can change the limit of PHP directives with .htaccess file. This is executable file which first run by Apache server.
          You can add below line to increase directive with .htaccess file.
          Code:
          php_value max_execution_time 300
          3. Using cpanel: We can change directives by using cpanel option MultiPHP INI Editor.
          - login to cpanel
          - click on MultiPHP INI Editor
          - Here you can change your directives.

          Comment

          Working...
          X

          Sign up for a News Letter Click here to sign up