Troubleshooting PrestaShop authorization error PHP as CGI

Estimated 1 minute read
|
Updated Nov 13, 2024, 1:22 PM EST
You will learn 

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. 
Klaviyo configure page in PrestaShop showing red banner warning about PHP as CGI

Before you begin

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

Steps to resolve

  1. In PrestaShop, navigate to Advanced Parameters > Web Service.
  2. Toggle on Enable CGI mode for PHP, then click Save.
    A settings page in PrestaShop showing Enable CGI mode for PHP toggled on
  3. To regenerate the .htaccess file, navigate to Shop Parameters > Traffic & SEO.
    SEO and URLS page in PrestaShop with Save with blue background at the bottom
  4. 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

Additional resources

Was this article helpful?
Use this form only for article feedback. Learn how to contact support.

Explore more from Klaviyo

Community
Connect with peers, partners, and Klaviyo experts to find inspiration, share insights, and get answers to all of your questions.
Live training
Join a live session with Klaviyo experts to learn about best practices, how to set up key features, and more.
Support

Access support through your account.

Email support (free trial and paid accounts) Available 24/7

Chat/virtual assistance
Availability varies by location and plan type