Where to find php ini in linux




















You'll first need to log in via SSH. WHM allows you to configure your php. To access this tool and edit your php. For help using WHM, please see cPanel's documentation.

Start by logging into WHM as the root user. From the Home page, select the Service Configuration button. Once you click on PHP Configuration Editor , you will be presented with a number of different parameters that you may edit the configurations for. If you don't see the parameter that you wish to edit in Basic Mode , you may click on Advanced Mode for a longer list of editable parameters. If you need more flexibility, you can also edit your php.

If you need to apply settings to a single site without making a global change that will affect all sites on your server, you may create a php.

This will apply the settings in that file to that site only. Community dv Article. Browse by products and services. Overview For Shared Hosting, the. PHP directives Once the. We recommend checking out our additional articles on php limits before saving any changes: How do I increase the PHP upload limits?

Overview The php. The most common parameters changed in the php. Via SSH An alternate way to edit your php. FAQs Do I need to restart my service for the changes to take effect? Is there any way to use a different php.

Requirements Before you start, you'll need: Root access enabled. Also see stackoverflow. The premise of the question is wrong. Speaking of which, locate php. Adam: unless it isn't PHP5 ; — Line. Show 2 more comments. Active Oldest Votes. On the command line execute: php --ini You will get something like: Configuration File php. Improve this answer.

KingCrunch KingCrunch k 19 19 gold badges silver badges bronze badges. I used this command and edited the php. I tried using the phpinfo PHP function and it give me the actual correct location of the php. I think this is very important and I hope this helps someone. I have changed the accepted answer to one that highlights creating a.

By the way, if you comment on the question then I get notified and I can fix the problem sooner. I don't use the apache module, but as far as I remember I think there is no way around a phpinfo.

Usually you use this two or three times and at the end of the day you know where the files are ; — KingCrunch. I ended up editing the wrong ini file too, wasting an hour. Show 4 more comments. The best way to find this is: Create a PHP. It will show the file which is actually being read! Updates by the OP: The previously accepted answer is likely to be faster and more convenient for you, but it is not always correct. See comments on that answer.

Tejas Tejas 6, 1 1 gold badge 18 18 silver badges 25 25 bronze badges. This should be the accepted answer. If you have CLI installed and have apache running then it may have its own ini file as my system does. Using the accepted answer returns what the CLI is using rather than apache's.

Dan Yes, you are right. I am changing the accepted answer to this one because the problem you mention was also encountered somebody in practice who commented on the previously accepted answer.

By the way, if you had commented on the question I would have fixed this problem sooner. This does not work on my installation. Show 3 more comments. This works for me: php -i grep 'php. To get only the php. This only works, if there is a php. I've never come across a situation where there is no php. Running this command gives me Configuration File php. Like this post? Please share to your friends:. Even though HyperTerminal is not a part of Windows 10, the Windows 10 operating.

Move the mouse pointer to the lower left corner of the screen, right-click, and. Do I need to reinstall Windows after replacing hard drive? This site uses cookies to store data.

By continuing to use the site, you consent to the processing of these files.



0コメント

  • 1000 / 1000