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!!

Where is the php ini file located?
answered May 19, 2020 by Niroj
• 82,780 points

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