【发布时间】:2014-08-23 17:17:16
【问题描述】:
我在别人的 linux 服务器上(共享主机)。我没有root访问权限。我已经确定它是作为 Centos Release 5.9(Final) 运行的 Redhat 4.1.2-46。
我有该站点的数据库转储以及来自 public_html 的 .php 文件。我正在尝试做的是找到 httpd.conf 文件并获取该站点的配置。
当我输入时
httpd - v
我得到 -bas: httpd: command not found - 即使在 /user/sbin 目录中 - 它显然正在运行。
底线我找不到 www.thisparticularsite.com 的 sitedef/conf 文件 - 甚至无法弄清楚我正在运行的 apache 版本...
【问题讨论】:
-
假设“即使在 /usr/sbin 目录中”你的意思是你在其中看到了二进制文件,那么
/usr/sbin/httpd -v或./httpd -v在/usr/sbin中时呢? -
看看是否有像
/etc/init.d/httpd这样的脚本,通常用于在系统启动时启动Apache。它应该包含httpd的路径。
标签: apache httpd.conf