Apache:how to config for php-cgi

I have configured apache for using php-cgi as follows:

<Directory "c:/wamp64/cgi-bin">
    AllowOverride All
    Options +ExecCGI
    AddHandler cgi-handler .php
    Action cgi-handler /local-bin/php-cgi.exe
    Require all granted

But since the accessibility of php-cgi.exe requires to have permission, I have used the following block:

<Directory "c:/wamp64/bin/php7">
    Require all granted

Will this block cause any security problem? If yes, then what is the solution?

Hopefully you’re not using this for a live website?

no.i’m not using.why?

Only that WampServer isn’t intended for use on live sites as it doesn’t have all the necessary security settings set.

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.