[Solved] Migrate PS installation from Apache to Nginx

Discussion in 'Installation/Configuration' started by raspdroid, Oct 11, 2017.

  1. raspdroid

    raspdroid Member

    Hello,
    I haved moved a Prestashop installation from IspConfgix3.1.7p1+Apache2 to IspConfig3.1.7p1+Nginx but not works.

    I used other domain and installed (in new server) Prestashop from packages installer of IspConfig and works fine.

    INFORMACIÓN DEL SERVIDOR
    Información del servidor: Linux #41~16.04.1-Ubuntu SMP Fri Oct 6 22:42:59 UTC 2017 x86_64

    Versión del software del servidor: nginx/1.10.3

    Versión PHP: 7.0.22-0ubuntu0.16.04.1

    Límite de memoria: 1024M

    Tiempo máx. de ejecución: 10000

    Tamaño máx. para la subida de archivos: 20M

    INFORMACIÓN DE LA BASE DE DATOS
    Versión de MySQL: 10.0.31-MariaDB-0ubuntu0.16.04.2

    Servidor MySQL: localhost

    Nombre MySQL: c9aps7

    Usuario MySQL: c9aps7

    Prefijo de las tablas: prstshp_

    Motor MySQL: InnoDB

    Controlador MySQL: DbPDO

    INFORMACIÓN DE LA TIENDA
    Versión de PrestaShop: 1.7.2.2

    URL de la tienda: http://mydomain.com/

    Tema actual en uso: classic

    CONFIGURACIÓN DE CORREO ELECTRÓNICO
    Método de correo electrónico: Estás utilizando la función PHP mail().

    TUS DATOS
    Su navegador: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36

    COMPRUEBA TU CONFIGURACIÓN
    Parámetros requeridos: OK

    Parámetros opcionales: OK


    In both domains works fine phpMyAdmin with this nginx directive:
    location /phpmyadmin {
    root /usr/share/;
    index index.php index.html index.htm;
    location ~ ^/phpmyadmin/(.+\.php)$ {
    try_files $uri =404;
    root /usr/share/;
    fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $request_filename;
    include /etc/nginx/fastcgi_params;
    fastcgi_param PATH_INFO $fastcgi_script_name;
    fastcgi_buffer_size 128k;
    fastcgi_buffers 256 4k;
    fastcgi_busy_buffers_size 256k;
    fastcgi_temp_file_write_size 256k;
    fastcgi_intercept_errors on;
    }
    location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
    root /usr/share/;
    }
    }
    location /phpMyAdmin {
    rewrite ^/* /phpmyadmin last;
    }


    What can be happening so that the installation that I moved does not work in ningx?
    In new server, I used PHP-FPM with nginx.

    Best regards
     
  2. raspdroid

    raspdroid Member

    I reloaded the database via CLI and now it works, it is very large it may not load well.
    Best regards
     

Share This Page