Where is the php ini file located?

1 answer to this question.

Hello @kartik,

You can get a full phpinfo() using :

php -i

And, in there, there is the php.ini file used :

$ php -i | grep 'Configuration File' Configuration File (php.ini) Path => /etc Loaded Configuration File => /etc/php.ini

On Windows use find instead:

php -i|find/i"configuration file"

Hope this is helpfull!!

Thank You!!

answered May 19, 2020 by Niroj
• 82,780 points

Related Questions In PHP

  • All categories
  • Apache Kafka (84)
  • Apache Spark (596)
  • Azure (131)
  • Big Data Hadoop (1,907)
  • Blockchain (1,673)
  • C# (124)
  • C++ (268)
  • Career Counselling (1,060)
  • Cloud Computing (3,356)
  • Cyber Security & Ethical Hacking (145)
  • Data Analytics (1,266)
  • Database (853)
  • Data Science (75)
  • DevOps & Agile (3,500)
  • Digital Marketing (111)
  • Events & Trending Topics (28)
  • IoT (Internet of Things) (387)
  • Java (1,148)
  • Kotlin (3)
  • Linux Administration (384)
  • Machine Learning (337)
  • MicroStrategy (6)
  • PMP (423)
  • Power BI (516)
  • Python (3,154)
  • RPA (650)
  • SalesForce (92)
  • Selenium (1,569)
  • Software Testing (56)
  • Tableau (608)
  • Talend (73)
  • TypeSript (124)
  • Web Development (2,989)
  • Ask us Anything! (66)
  • Others (994)
  • Mobile Development (37)

Subscribe to our Newsletter, and get personalized recommendations.

Already have an account? Sign in.

Where is the PHP ini file in Windows?

If you're running Windows, you'll likely find the php. ini file within the directory of your PHP installation in the system drive.

Where is PHP ini located in Linux?

The default location for the php. ini file is: Ubuntu 16.04: /etc/php/7.0/apache2. CentOS 7: /etc/php.

Can not find PHP ini file?

Your php. ini file should be located either in the 'Configuration File Path' section, or like in my case in 'Loaded Configuration File' section. The first location is the default one, the second location applies in case your PHP installation is used as a module.

Where is PHP ini in file manager?

ini file is located at /usr/local/lib/php. ini.

Where is the PHP ini file located in WordPress?

If you're using WAMP for your local WordPress installation, you can easily find the location of php. ini by right-clicking on the program icon and navigating to PHP > php. ini. That's it.

Postingan terbaru

LIHAT SEMUA