How to find where the php.ini path is

WBOY
Release: 2016-07-25 08:58:12
Original
717 people have browsed it
  1. phpinfo();
  2. ?>
Copy the code

to display the configuration information of php, from which you can know the exact location of the php.ini file. Generally it is under /usr/local/php/lib. If you compile and install PHP, it will not be generated automatically. You need to copy it from the PHP source code directory:

  1. cp php.ini-dist /usr/local/php/lib/php.ini
Copy code


source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!