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. So, phpinfo was more reliable in my case. This is not entirely correct. Every framework that uses the PHP language has it's own php. For that file, you should look into the apache2 folder. Add a comment. In a command window, type php --ini It will show you the path something like: Configuration File php.
This command should help you to find it php -r "phpinfo ;" grep php. Philippe Boissonneault 3, 3 3 gold badges 23 23 silver badges 32 32 bronze badges. Best Drones. Best 4K TVs. Best iPhone 13 Cases. Best Tech Gifts for Kids Aged Best 8K TVs.
Best VR Headsets. Best iPad Mini Cases. Best Gifts for Cutting the Cord. Best Bluetooth Speakers. Awesome PC Accessories. Best Linux Laptops. Best Gaming Monitors. Best iPads. Best iPhones. Best External Hard Drives. Browse All News Articles.
Smart TVs Ads. Team Comes to Workplace by Meta. Block People Spotify. Verizon Selling PS5. Windows 11 SE Explained. Windows 11 SE. Why could you need to find the php.
What are the parameters that are changed the most frequently? Website Installation service - to get your template up and running within just 6 hours without hassle. No minute is wasted and the work is going. ONE Membership - to download unlimited number of WordPress themes, plugins, ppt and other products within one license.
Since bigger is always better. A team of developers will do all the work for you. Must-Have WordPress Plugins - to get the most essential plugins for your website in one bundle.
All plugins will be installed, activated and checked for proper functioning. Finest Stock Images for Websites - to create amazing visuals. SSL Certificate Creation service - to get the absolute trust of your website visitors. Comodo Certificate is the most reliable https protocol that ensures users data safety against cyber attacks. Website speed optimization service - to increase UX of your site and get a better Google PageSpeed score.
WordPress Hacks. Matthew Cain. Get more to your email Subscribe to our newsletter and access exclusive content and offers available only to MonsterPost subscribers.
0コメント