Topic : Can’t access/fix the php.ini file in my WordPress Installation


Posted By: stevenshaw on April 9, 2019, 11:43 am
So I have a WordPress site installed on a LiteSpeed v7.2 Server (used cPanel through WHM), I need to raise my max upload size to install a theme I purchased but my php.ini file is not to be found. I ran a function, and it said my php.ini is at “/opt/cpanel/ea-php70/root/etc/php.ini” but I can’t even find the opt folder in root. I also don’t have the option to use MultiPHP ini editor in either CPanel or WHM (not sure why). Any advice would be greatly appreciated!


Posted By: wolke on April 9, 2019, 11:55 am | Post: 1
Not really related to virtualizor, you should contact cPanel support or use the cPanel community forum.
anyway, Just a few thoughts about that:
  1. make sure you enabled MultiPHP in your plans features
  2. make sure you are really logging in as root to access the /opt/[...] folder (from your description it sounds like you are logging in as cpanel user which may be caged or jailshelled.)

Edited by wolke : April 9, 2019, 11:55 am

Posted By: miyabhai101 on December 8, 2019, 10:28 am | Post: 2
f your changes to php.ini aren't taking, there are a few things to consider.

What settings are you trying to change?

What PHP handler is in use? Cgi, fcgid, suphp, fpm, lsapi, DSO... This might require root access to confirm, but knowing what the "Server API" says in a phpinfo page would potentially help.

Some handlers allow ini changes, some require in .user.ini, DSO requires the change to be in .htaccess

The ability for users to even have user level inis can be disabled by root as well.

I recommend contacting your provider, as that may be the quickest way to get this figured out. If you're able to answer some of the above let me know.

tubemate mobdro authorityapk

Posted By: STAYOMIR on January 20, 2020, 2:35 pm | Post: 3
you can with wordpress plugin, i have did on my wordpress site.

thank you so much


Posted By: Wall-Tech on January 21, 2020, 6:35 pm | Post: 4
check that you access to /root/etc/php.ini ??

work together, earn together

Posted By: bhaiterabhai on January 24, 2020, 7:25 pm | Post: 5
i think you should enable hidden files in control panel

Posted By: annejones101 on March 25, 2020, 5:47 pm | Post: 6
tried did not help any other solution?

Posted By: bhaiterabhai on April 11, 2020, 6:40 am | Post: 7
Are you doing this through the file manager or ssh? If cpanel allows you to send commands to the server you can try 'which php > /home/temp.txt ' and navigate to the temp.txt file within the gui. (This is assuming you have access to the home folder - try 'which php > /home/$USER/temp.txt' otherwise)
shareit vidmate

Posted By: behtarina on April 19, 2020, 3:14 pm | Post: 8
Thanks help me a lot

Posted By: mortimas on May 29, 2020, 4:01 am | Post: 9
i think you should enable hidden files in control panel


Posted By: mortimas on May 29, 2020, 4:02 am | Post: 10
Thanks help me a lot


Posted By: anyonealone on May 29, 2020, 2:59 pm | Post: 11
Search for hidden files in Cpanel. This will help.--

Posted By: markkevin123 on July 13, 2020, 12:31 pm | Post: 12
Log in to your web hosting account and go to cPanel.
Click on FILES -> File Manager.
Select “Document Root for:” from the Directory Selection and click on Go. ( ...
Go to your wp-admin folder.
Find a file called php.ini or php5.ini. ( ...
Open the php.ini file.

Posted By: namijack on July 22, 2020, 8:25 am | Post: 13
I am getting upload max error on my wordpress website. Can anyone please help me how to fix this error on my legal steriods website.

Posted By: flisterthree on December 25, 2020, 6:39 pm | Post: 14
Gonna try all these suggestions today but this is a great work around if I can't change the upload size. I'm thinking I might not need to upload any images over 2MB anyway so this could certainly be a solution.

Posted By: rakibulfb1 on January 9, 2021, 7:21 pm | Post: 15
I think you should enable hidden files in the control panel.


Posted By: rakibulfb1 on February 22, 2021, 10:13 am | Post: 16
I think you should enable hidden files in the control panel

symphony i10 flash file
symphony v96 flash file

Posted By: lukashik on February 25, 2021, 4:34 pm | Post: 17
There are many commands in the php.ini file, and each command is modified in WordPress. So we need to know where PHP.ini is located in WordPress. ... Otherwise, if PHP is installed as a module, it will be in the second place. The creation of the file .php may not always work , and you will have to use other methods to find the location of the php.ini file.

GB WhatsApp - Best Messenger of the Year

Posted By: Chopra on March 6, 2021, 12:21 pm | Post: 18
Thank you so much for the post you do. I like your post and all you share with us is up to date and quite informative, i would like to bookmark the page so i can come here again to read you, as you have done a wonderful job.

watch attack on titan online
online anime
vestige products

Posted By: unicornn on March 8, 2021, 3:14 am | Post: 19
I feel very happy reading your share! thank you!

Posted By: lukashik on April 26, 2021, 7:18 am | Post: 20
I also struggled with using WordPress before, but then decided to change the engine to DLE. If you know even a little the basic concepts of HTML, then you definitely won't know any problems with it. Most importantly, it is very fast.

GB WhatsApp - Best Messenger of the Year

Posted By: Chopra on April 30, 2021, 3:53 pm | Post: 21
Attack on titans anime is one of the best japanese popular anime tv show.It also reflects the watch attack on titan dubbed
Xmen Movies

watch attack on titan online
online anime
vestige products

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.