Prestashop Installiation Problem

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 11.2.30.2 (stable)
What app is this about: Prestashop

Describe your issue

When I try to install the prestashop (after yunohost installiation) I get this annoying

PHP’s config “memory_limit” must be to a minimum of 256M

Error.

I tried to edit: /etc/php/8.1/fpm/php.ini and changed memory_limit to 256M from 128M and restart systemctl php8.1-fpm
Problem doesnt get solved.
Then around 5-10 minutes the variable goes back to 128M in php.ini file.

I tested to put phpinfo in the index and yes, it uses php 8.1
I only have php 7.4 and 8.1 so I think 8.1 is because of prestashop.

I also doesn’t have any other app and this was a fresh intalliation of debian 11 followed by yunohost.

Share relevant logs or error messages

We are currently checking PrestaShop compatibility with your system environment
Oops! Please correct the item(s) below, and then click “Refresh information” to test the compatibility of your new system.
Required PHP parameters
PHP’s config “memory_limit” must be to a minimum of 256M
Recommended PHP parameters
To get the latest internationalization data upgrade the ICU system package and the intl PHP extension.

I pushed a fix in the testing branch. You can try to update from the testing branch:
sudo yunohost app upgrade prestashop -u https://github.com/YunoHost-Apps/prestashop_ynh/tree/testing --debug

1 Like

Very nice of you. But still I’m getting the same issues.

I applied command you provided from ssh (as root) and here it is:

  • 2024-10-01 20:57:48,557: SUCCESS - prestashop upgraded
    metadata:
    ended_at: 2024-10-01 20:57:48
    env:
    YNH_APP_ACTION: upgrade
    YNH_APP_BASEDIR: /var/cache/yunohost/app_tmp_work_dirs/app_1iftlylq
    YNH_APP_CURRENT_VERSION: 8.2.0~ynh1
    YNH_APP_ID: prestashop
    YNH_APP_INSTANCE_NAME: prestashop
    YNH_APP_INSTANCE_NUMBER: 1
    YNH_APP_MANIFEST_VERSION: 8.2.0~ynh2
    YNH_APP_PACKAGING_FORMAT: 2.0
    YNH_APP_UPGRADE_TYPE: UPGRADE_PACKAGE
    YNH_ARCH: amd64
    YNH_DEBIAN_VERSION: bullseye
    YNH_HELPERS_VERSION: 2.1
    error: None
    interface: cli
    operation: app_upgrade
    parent: None
    related_to:
    • app
    • prestashop
      started_at: 2024-10-01 20:57:16
      success: True
      yunohost_version: 11.2.30.2
      metadata_path: /var/log/yunohost/categories/operation/20241001-205716-app_upgrade-prestashop.yml
      name: 20241001-205716-app_upgrade-prestashop

Then I did a reboot still, problem continues.

Okay I solved the issues thanks to you. I read the update echo’s that the command you provided here this cought my eye:

/etc/php/8.1/fpm/pool.d/prestashop.conf

I edited that and:
php_admin_value[memory_limit] = 512M
changed this from 128M.
and reboot.
I believe since I’m in the installiation process it thinks that I am admin (obviously :slight_smile: ) so this fixed the issue.