Learn about Centmin Mod LEMP Stack today
Register Now

Magento Configuration Centmin Mod with magento

Discussion in 'Ecommerce / Shopping cart usage' started by reallove0810, Jan 16, 2015.

  1. MarkKiss

    MarkKiss New Member

    25
    3
    3
    Sep 2, 2015
    Ratings:
    +4
    Local Time:
    7:17 PM
    404 I found here


    Code:
        location ~ .php$ { ## Execute PHP scripts
            if (!-e $request_filename) { rewrite / /index.php last; } ## Catch 404s that try_files miss
    
            expires        off; ## Do not cache dynamic content
            fastcgi_pass   127.0.0.1:9000;
            fastcgi_param  HTTPS $server_https;
            fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
            fastcgi_param  MAGE_RUN_CODE txt; ## Store code is defined in administration > Configuration > Manage Stores
            fastcgi_param  MAGE_RUN_TYPE store;
            include        fastcgi_params; ## See /etc/nginx/fastcgi_params
        }
    
     
  2. eva2000

    eva2000 Administrator Staff Member

    46,861
    10,629
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,498
    Local Time:
    4:17 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    Yeah they have to match server wide :)
     
  3. eva2000

    eva2000 Administrator Staff Member

    46,861
    10,629
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,498
    Local Time:
    4:17 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    Nginx vhost already has php location match in an include file for each created vhost

    Code:
      include /usr/local/nginx/conf/php.conf;
    if you have another set in your vhost could cause conflicts so may want to comment out the one in vhost include file

    Code:
      #include /usr/local/nginx/conf/php.conf;
    Or copy /usr/local/nginx/conf/php.conf to a new file /usr/local/nginx/conf/php-magento.conf
    Code:
    cp -a /usr/local/nginx/conf/php.conf /usr/local/nginx/conf/php-magento.conf
    then edit /usr/local/nginx/conf/php-magento.conf for any additional magento changes and include that instead

    Code:
    #include /usr/local/nginx/conf/php.conf;
    /usr/local/nginx/conf/php-magento.conf
    You can also try /usr/local/nginx/conf/php.conf default include and remove any additional php location matches you added yourself
     
  4. MarkKiss

    MarkKiss New Member

    25
    3
    3
    Sep 2, 2015
    Ratings:
    +4
    Local Time:
    7:17 PM
    I was try all this, but nothing help.

    May is because my version of PHP 5.6.12 (or my magento bug)

    Today I will try clean installation of Magento
     
  5. nqservices

    nqservices Member

    70
    14
    8
    Jun 17, 2016
    Ratings:
    +28
    Local Time:
    7:17 PM
    Hi to all users on this thread,

    Is it anyone using CentminMOD with Magento 2? If yes, what changes did you change in CentminMOD and/or Magento 2 in order to make it properly with with Magento 2?

    Any special recommendation?

    Thanks