通常php.ini的位置在:
复制代码 代码如下:
/etc目录下或/usr/local/lib目录下。
如果你还是找不到php.ini或者找到了php.ini修改后不生效(其实是没找对),请使用如下办法:
1.新建php文件,写入如下代码
复制代码 代码如下:
echo phpinfo();
[code]
然后在浏览器访问该页面,搜索php.ini,
2.执行,(需要修改php为你自己的路径)
[code]/usr/local/php/bin/php --ini
会显示php.ini所在路径,哪个路径下没有php.ini文件,
复制代码 代码如下:
Configuration File (php.ini) Path: /usr/local/php/lib
Loaded Configuration File: (none)
Scan for additional .ini files in: (none)
Additional .ini files parsed: (none)
php.ini位置修改方法如下: php.ini文件缺省放在/usr/local/lib上面,
可以在编译的时候使用--with-config-file-path参数来修改php.ini的存放位置。
例如,
你可以使用--with-config-file-path=/etc
把php.ini存放到/etc下面,然后可以从源码包中拷贝php.ini-dist到/etc/php.ini。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

SublimeText3 Chinese version
Chinese version, very easy to use
