Page 1 of 1

force-cgi-redirect

Posted: Fri Sep 23, 2016 5:21 am
by ShariB23
I am trying to do a clean, new install of 2.3.0.2 to check it out before deciding if I wish to upgrade. Instead of the installer page, I get a 500 server error. Checking the server log I found the following message:

<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>

Can someone please tell me what I need to do to correct this situation? ???
Thanks in advance!

Re: force-cgi-redirect

Posted: Sat Sep 24, 2016 2:06 am
by EvolveWebHosting
ShariB23 wrote:I am trying to do a clean, new install of 2.3.0.2 to check it out before deciding if I wish to upgrade. Instead of the installer page, I get a 500 server error. Checking the server log I found the following message:

<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>

Can someone please tell me what I need to do to correct this situation? ???
Thanks in advance!
Your best is to contact your Hosting Company Support Department. I don't know that I've ever seen that message during all of the installs / upgrades that we've done for clients.

Re: force-cgi-redirect

Posted: Sat Sep 24, 2016 6:31 am
by ShariB23
Just in case someone else runs into this problem, my hosting company said that they have a php.ini file built into the hosting and the one in the program was conflicting with it or wasn't necessary. They deleted the php.ini from opencart and voila, it works. ;)