Options execcgi is off in this directory:/tool/www/samba

Source: Internet
Author: User

Use the Apache-built Samba server to change the password environment by using the ChangePassword component User:

Visit: http://192.168.25.57/samba/changepassword.cgi 403 error

[Email protected] samba]# curl-i 192.168.25.57/samba/changepassword.cgihttp/1.1 403 forbiddendate:tue, Jan 2016 08:4 9:56 gmtserver:apache/2.4.17 (Unix) php/5.5.9content-type:text/html; Charset=iso-8859-1

To view the Apache Installer directory error log:

Cat/usr/local/apache2/logs/error_log[tue Jan 18:29:02.313632] [cgid:error] [pid 29240:tid 3075713936] [client 19 2.168.30.228:59435] Ah01262:options execcgi is off in this directory:/tool/www/samba/changepassword.cgi

You are not prompted to find

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

To edit the Apache master configuration file:

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 multiviews219      #220      # Note that  "MultiViews"  must be named * explicitly* ---  "options all" 221 &NBSP;&NBSP;&NBSP;&NBSP;#&NBSP;DOESN ' t give it to you.222     # 223     # the options directive is both complicated  and important.  please see224     # http:// httpd.apache.org/docs/2.4/mod/core.html#options225     # for more  information.226     # options indexes followsymlinks execcgi

Perform/usr/local/apache2/bin/apachectl restrt #重启apache

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

Refresh the browser for normal access.

This article from "Boyhack" blog, declined reprint!

Options execcgi is off in this directory:/tool/www/samba

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.