如何检查在Apache中启用mod

编程入门 行业动态 更新时间:2024-10-18 10:32:43
本文介绍了如何检查在Apache中启用mod_headers中和指定mod_expires模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我要检查是否启用mod_headers中和指定mod_expires模块或不在我的服务器

I want to check whether mod_headers and mod_expires modules enabled or not in my server

是否有可用的列出使用一些PHP函数阿帕奇启用/禁用模块就像我们列出与 phpinfo()函数的PHP信息的方法; 功能

Is there a way available to list apache enabled/disabled modules using some php function just like we list php information with phpinfo(); function?

推荐答案

在Debian的:

user@machine:~$ /usr/sbin/apache2 -l

大多数GNU / Linux发行版:

Most GNU/Linux distros:

user@machine:~$ /usr/sbin/httpd -l

在Mac OSX上:

user@mymac:~$ httpd -l

在Win 7的(64位):

On Win 7 (64-bit):

C:\Users\myuser>"\Program Files (x86)\Apache Software Foundation\Apache2.2\bin\httpd.exe" -l

在所有但Windows终端窗口尝试这些命令,将使用CMD来代替。

Try these commands from a terminal window in all but Windows, which will use CMD instead.

更多推荐

如何检查在Apache中启用mod

本文发布于:2023-11-01 02:02:42,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1547926.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Apache   mod

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!