在etc文件夹中找不到php.ini? [英] can't find php.ini in the etc folder?

查看:61
本文介绍了在etc文件夹中找不到php.ini?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对我的专用服务器有 root 访问权限,当我运行 phpinfo() 时,它说我的 php.ini 文件在 etc/目录中,使用 ssh 我似乎找不到它在那里,我不知道在哪里可以找到,谢谢:))

I have root access to my dedicated server, and when I run phpinfo() it says my php.ini file is in the etc/ directory, using ssh i can't seem to find it there, i don't know where i can find it thanks :))

推荐答案

这可能不是 SO 的问题,但这里有几个潜在的解决方案,当然,所有这些都取决于您的发行版:

This may not be a question for SO, but here's a couple potential solutions, all depending on your distro of course:

locate php.ini

应该给你php.ini所在的目录(你可能需要先updateb)

Should give you the directory that php.ini resides in (You may need to do updatedb first)

否则,总会找到.

find / -name "php.ini"

这篇关于在etc文件夹中找不到php.ini?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆