Options ExecCGI is off in this directory: /Tool/www/samba

利用apache搭建的Samba server 利用changepassword组件用户自行更改密码环境:

访问:http://192.168.25.57/samba/changepassword.cgi      报403错误

[[email protected] samba]# curl -I 192.168.25.57/samba/changepassword.cgi
HTTP/1.1 403 Forbidden
Date: Tue, 05 Jan 2016 08:49:56 GMT
Server: Apache/2.4.17 (Unix) PHP/5.5.9
Content-Type: text/html; charset=iso-8859-1

查看apache安装程序目录错误日志:

cat /usr/local/apache2/logs/error_log
[Tue Jan 05 18:29:02.313632 2016] [cgid:error] [pid 29240:tid 3075713936] [client 192.168.30.228:59435] AH01262: Options ExecCGI is off in this directory: /Tool/www/samba/changepassword.cgi

提示找不到

off in this directory: /Tool/www/samba/changepassword.cgi  #找不到该配置文件

编辑apache主配置文件:

213    DocumentRoot "/usr/local/apache2/htdocs"
214 <Directory "/Tool/www/samba">                         #改成changepassword安装目录
                   
215     #
216     # Possible values for the Options directive are "None", "All",
217     # or any combination of:
218     #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
219     #
220     # Note that "MultiViews" must be named *explicitly* --- "Options All"
221     # doesn‘t give it to you.
222     #
223     # The Options directive is both complicated and important.  Please see
224     # http://httpd.apache.org/docs/2.4/mod/core.html#options
225     # for more information.
226     # Options Indexes FollowSymLinks ExecCGI

执行/usr/local/apache2/bin/apachectl restrt       #重启apache

/usr/local/apache2/bin/apachectl -t           #语法检查

刷新浏览器正常访问.

时间: 2024-08-07 05:29:55

Options ExecCGI is off in this directory: /Tool/www/samba的相关文章

window系统下配置apache,php

1.apache2.4.20下载地址http://www.apachelounge.com/download/VC11/binaries/httpd-2.4.20-win64-VC11.zip 2.php5.6.20下载地址http://windows.php.net/downloads/releases/php-5.6.20-nts-Win32-VC11-x64.zip 3.apache2.4拓展模块下载地址http://www.apachelounge.com/download/VC11/m

ASP.NET IIS Registration Tool (Aspnet_regiis.exe)

IIS Version Special cases for 32-bit versions of Aspnet_regiis.exe 6.0 You can run the 32-bit version of Aspnet_regiis.exe under a 64-bit IIS 6.0 installation on Windows Server 2003 with the following restrictions: The 32-bit version runs only if IIS

apache的&lt;directory&gt;语句以及属性的含义

在整完apache和tomcat的之后我觉得有必要把<directory>和它下面的属性捋顺一下 如何访问根目录下的目录http://192.168.1.12/test/ 第一.缺省apache不允许访问http目录(没有定义,就没有访 问权限) 1 访问目录http://192.168.1.12/test/ 2 会显示: 3 Forbidden 4 You don't have permission to access /test/ on this server. 第二.无限制目录访问 在h

转载-ubuntu搭建Git 服务器

本文转载自:http://blog.chinaunix.net/uid-15007890-id-3217101.html 硬件需求:一台linux Ubuntu电脑(虚拟机),在公司局域网内有独立IP,并且保证小组每个人都能ping通:软件需求:git-core, gitosis, openssh-server, openssh-client安装git和openssh:[email protected]:~$ sudo apt-get install git-core[email protect

Munin监控的安装与配置

Munin 是一款类似 RRD tool 的优秀系统监控工具,它能提供给你多方面的系统性能信息,例如 磁盘.网络.进程.系统和用户. Munin 的工作原理 Munin 以客户端-服务器模式运行,主服务器上运行的 Munin 服务器进程会从本地运行的客户端守护进程(Munin 可以监控它自己的资源)或者远程客户端(Munin 可以监控上百台机器)收集数据,然后在它的 web 界面上以图形的方式显示出来. 在服务器中配置 Munin 安装 要配置服务器端和客户端,我们需要完成以下两步. 安装 Mu

mod_php VS mod_fastcgi

mod_php VS mod_fastcgi 目录 什么是mod_php和mod_fastcgi 1 工作原理 1 mod_php 2 mod_fastcgi 3 mod_factcgi的三种配置方式 4 静态配置 5 动态配置 5 远程方式 6 php-fpm 6 性能测试 8 名称解释 8 测试内容 8 测试结果 8 fastcgi配置项对性能的影响. 11 分析&结论 13 附录 14 apache+mod_fastcgi+php搭建 14 什么是mod_php和mod_fastcgi 在

[兄弟连技术交流分享]如何在 Linux 上安装和配置Munin

如何在 Linux 上安装和配置Munin Munin 是一款类似 RRD tool 的非常棒的系统监控工具,它能提供给你多方面的系统性能信息,例如 磁盘.网络.进程.系统和用户.这些是 Munin 默认监控的内容.下面跟大家来聊聊Munin! Munin 如何工作? Munin 以客户端-服务器模式运行.主服务器上运行的 Munin 服务器进程会从本地运行的客户端守护进程(Munin 可以监控它自己的资源)或者远程客户端(Munin 可以监控上百台机器)收集数据,然后在它的 web 界面上以图

CGI(通用网关接口)

公共网关接口 CGI(Common Gateway Interface) 是WWW技术中最重要的技术之一,有着不可替代的重要地位.CGI是外部应用程序(CGI程序)与Web服务器之间的接口标准,是在CGI程序和Web服务器之间传递信息的规程.CGI规范允许Web服务器执行外部程序,并将它们的输出发送给Web浏览器,CGI将Web的一组简单的静态超媒体文档变成一个完整的新的交互式媒体. Common Gateway Interface,简称CGI.在物理上是一段程序,运行在服务器上,提供同客户端H

Arch linux LXR 安装过程

参考网页: http://lxr.sourceforge.net/en/1-0-InstallSteps/1-0-install.php 我选择的版本:2.2, 我自己的操作系统是arch linux 安装必要环境: perl:sudo pacman -S perl ctags: sudo pacman -S ctags MariaDB:sudo pacman -S mariadb Apache httpd: 安装之后,需要先进行以下的配置:在启动服务之前: # mysql_install_db