This tutorial will show you how to find the location of the file on any server. Step 1. Create a script to display your PHP information. Just one single line. Save the file and call it phpinfo. In the phpinfo. GoDaddy servers are a Special Case. 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. Rimantas Jacikevicius Rimantas Jacikevicius 6 6 silver badges 11 11 bronze badges. I like this a lot more than some of the other answers. It doesn't require that I create, locate a php file with those contents and load up the page in the browser. Use the following command to find the php. Sakthi Karthik Sakthi Karthik 2, 3 3 gold badges 22 22 silver badges 28 28 bronze badges. Get more to your email Subscribe to our newsletter and access exclusive content and offers available only to MonsterPost subscribers.
Join Now. Related Posts WordPress Tutorials. November 5, at am. November 4, at pm. October 9, at pm. October 1, at am. September 28, at am. Plaquenil says:. September 24, at am. September 19, at am.
September 11, at pm. Google says:. August 28, at pm. Social Media Marketing says:. August 6, at pm. May 19, at pm. January 3, at pm. December 22, at pm. August 27, at pm. September 9, at am. October 31, at am. Nike Air Max says:. April 12, at pm. Stacy Summers says:. April 19, at am. April 3, at am. Leave a Reply Cancel reply Your email address will not be published.
0コメント