after spending a few days breaking my head with the magento configuration, I discovered that it comes configured to work with CLI API, however I have hosgator contract and it uses CGI API, it is already configured to accept the magento, my problem is that when I change the .htacess to use the CGI mode, the server returns an internal 500 error. I have already checked the permissions and this is OK. When I return to CLI mode it works normally, but then I get stuck in max_memory 256M in the CGI I have 768M released.

As a beginner I'm lost, this is the .htacess snippet:

############################################
## uncomment these lines for CGI mode
## make sure to specify the correct cgi php binary file name
## it might be / cgi-bin / php-cgi

Action php5-cgi / cgi-bin / php5-cgi
AddHandler php5-cgi .php

I've seen this php5, but the server I run php7, rather the version that runs magento by the requirements of the site 7.0.32.

Can anyone give me a help if I have any other configuration that I need to change from magento to switch it to CGI API?

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.