You will learn
Learn how to solve the authorization issue “It appears you are running PHP as a CGI” when configuring the Klaviyo module in PrestaShop. Solving this issue involves changing a setting in PrestaShop, then regenerating your .htaccess file. Follow the steps in this article to finish integrating with PrestaShop properly.
Before you begin
If you have made any manual code changes to your .htaccess file, please note that the following steps will force PrestaShop to regenerate the file and erase them.
Steps to resolve
- In PrestaShop, navigate to Advanced Parameters > Web Service.
- Toggle on Enable CGI mode for PHP, then click Save.
- To regenerate the .htaccess file, navigate to Shop Parameters > Traffic & SEO.
- Click Save (you do not need to make any changes). Clicking Save here forces PrestaShop to regenerate the .htaccess file which, with the CGI toggle on, will solve the authorization issue.
Now, you can return to the module settings page and continue with the integration process.
Additional resources