Magento on ubuntu 14.05 with Php 5.6

Hello there,

I have installed php 5.6 and configured it for a domain to try and installed magento script. While installing the script i get this error.

Security Alert! The PHP CGI cannot be accessed directly.

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.

For more information as to why this behaviour exists, see the manual page for CGI security.

For more information about changing this behaviour or re-enabling this webserver, consult the installation file that came with this distribution, or visit the manual page.

I did maintain php variable like this cgi.force_redirect = 1

But i still get this error? in the installation script, what could i be missing, BTW PHP 5.6 / 7 was configured just fine..

BTW, if i go to the domain.. magento works fine..

Rohit

Status: 
Active

Comments

Howdy -- are you by chance able to set the PHP Execution Mode to FCGID? I'm wondering if that would resolve the issue you're seeing.

Hello,

Obviously i am using a TP repo, PHP Execution Mode is set to FCGID. but i think its not working correctly..

root@server1:/usr/bin# find /etc/apache2/mods-enabled | xargs grep -i sethandler grep: /etc/apache2/mods-enabled: Is a directory /etc/apache2/mods-enabled/proxy_balancer.conf: # SetHandler balancer-manager /etc/apache2/mods-enabled/status.conf: SetHandler server-status /etc/apache2/mods-enabled/php5.conf:# SetHandler application/x-httpd-php /etc/apache2/mods-enabled/php5.conf:# SetHandler application/x-httpd-php-source

Trying to solve this issue, now:

While re-checking Virtualmin Config: The following PHP versions are available : 5.5.9 (/usr/bin/php5-cgi), 5.6.30 (/usr/bin/php-cgi5.6), 7.0.16 (/usr/bin/php-cgi7.0), 7.1.2 (/usr/bin/php7.1) PHP-FPM support was not detected : No FPM configuration directory found.

Any leads for me?

Rohit

Just to verify, you're saying this particular domain is currently configured to use PHP 5.6?

What if you change that 7.0, does that work any better?

this domain is setup to use PHP 7,

I am tryin to solve this issues

While re-checking Virtualmin Config: The following PHP versions are available : 5.5.9 (/usr/bin/php5-cgi), 5.6.30 (/usr/bin/php-cgi5.6), 7.0.16 (/usr/bin/php-cgi7.0), 7.1.2 (/usr/bin/php7.1) PHP-FPM support was not detected : No FPM configuration directory found.

ok apparently i had not install this sudo apt-get install php7.0-fpm

All ok now, Thanks.

That's great, glad to hear things are working now!