cancel
Showing results for 
Search instead for 
Did you mean: 

The PHP CGI cannot be accessed directly.

The PHP CGI cannot be accessed directly.

I am trying to install magento 2.1.6 on ubuntu 16.04 LTS with Lamp. After installing ubuntu (fresh install) we installed Virtualmin (Professional) and set up a virtual server. When using the built in install script I have the following message below and the installation fails. Is there a fix for this cause obviously the regular method of installation leaves magento with a security issue.

 

<b>Security Alert!</b> The PHP CGI cannot be accessed directly.

<p>This PHP CGI binary was compiled with force-cgi-redirect enabled.  This
means that a page will only be served up if the REDIRECT_STATUS CGI variable is
set, e.g. via an Apache Action directive.</p>
<p>For more information as to <i>why</i> this behaviour exists, see the <a href="http://php.net/security.cgi-bin">manual page for CGI security</a>.</p>
<p>For more information about changing this behaviour or re-enabling this webserver,
consult the installation file that came with this distribution, or visit 
<a href="http://php.net/install.windows">the manual page</a>.</p>