How do i edit php ini in whm?

I want to change the limit of the PHP POST array from 1000 to 6000. Is there any way to do that? I searched it and found that I should change some variables in php.ini but the problem is that I did not find the directory of the file in my cPanel:

Your server's php.ini file is located at /usr/local/lib/php.ini.

This line is from the CPanel documentation but i could not find this directory in my cpanel even after i show the hidden files???? can anybody help me locating this file?

How do i edit php ini in whm?

Abu Shoeb

4,2872 gold badges35 silver badges42 bronze badges

asked Aug 28, 2013 at 18:26

1

Cpanel 60.0.26 (Latest Version) Php.ini moved under Software > Select PHP Version > Switch to Php Options > Change Value > save.

answered Dec 10, 2016 at 19:47

How do i edit php ini in whm?

0

If you're on a shared hosting environment you won't have access to the php.ini to make these changes, if you need access, a virtual private server (VPS) or a dedicated server may be a better option if you're confident in managing it yourself.

Alternatively if you create a new file called .htaccess in your root of your web directory (Ensure it doesn't contain a .txt extension if using notepad to create the file) and copy something like this inside.

php_value settingToChange 6000

This will only work if your hosting provider let's you override the certain config value. Best to ask if it doesn't work after trying.

answered Jun 13, 2014 at 10:45

How do i edit php ini in whm?

I had the same issue in cPanel 92.0.3 and it was solved through this solution:

In cPanel go to the below directory

software --> select PHP version--> option--> upload_max_filesize 

Then choose the optional size to upload your files.

answered Jan 14, 2021 at 19:55

sheidasheida

1012 silver badges6 bronze badges

In cPanel search for php, You will find "Select PHP version" under Software.

Software -> Select PHP Version -> Switch to Php Options -> Change Value -> save.

answered Mar 2, 2018 at 9:55

How do i edit php ini in whm?

You could try to find it via the command line.

find / -type f -name "php.ini"

Or you could add the following to a .htaccess file in the root of your site.

php_value max_input_vars 6000
php_value suhosin.get.max_vars 6000
php_value suhosin.post.max_vars 6000
php_value suhosin.request.max_vars 6000

answered Aug 28, 2013 at 18:30

How do i edit php ini in whm?

cmorrisseycmorrissey

8,4162 gold badges20 silver badges27 bronze badges

2

Go to main screen. Under 'Software/Services' > 'php.ini EZConfig'.

answered Jun 13, 2014 at 10:29

1

Search for "php version" at the bottom of the cpanel

Select PHP Version -> Switch to Php Options -> Change the Value -> save.

answered Jan 4, 2021 at 21:15

How do i edit php ini in whm?

1

You cant do it on shared hosting , Add ticket to support of hosting for same ( otherwise you can look for dedicated server where you can manage anything )

answered Feb 17, 2015 at 4:41

parveenparveen

5473 silver badges13 bronze badges

How do I edit a PHP ini file?

Modifying the PHP..
Login to the cPanel..
Find the File Manager in File section of the cPanel. ... .
Navigate to the directory where you will either save or edit the PHP. ... .
Edit the section of the PHP. ... .
Click on SAVE CHANGES in the top right hand corner in order to save your modifications or additions to the file..

Where is PHP ini in WHM?

WHM users can view information about the server's PHP INI settings in WHM's MultiPHP INI Editor interface (WHM >> Home >> Software >> MultiPHP INI Editor).

Where can I edit PHP ini in cPanel?

How to Edit the php..
1) Log into cPanel..
2) Look for the SOFTWARE section and click on Select PHP version..
3) In the new window click on the Switch To PHP Options button..
4) Here you can locate the PHP directive you wish to amend and click the value..

Where is PHP ini config?

user. ini file is the default configuration file for running applications that require PHP. It is used to control variables such as upload sizes, file timeouts, and resource limits. This file is located on your server in the /public_html folder.