Want more timely Centmin Mod News Updates?
Become a Member

Wordpress From Bitnami wordpress to Centminmod

Discussion in 'Blogs & CMS usage' started by Lav, Mar 6, 2020.

Tags:
  1. Lav

    Lav New Member

    16
    1
    3
    Feb 23, 2020
    Ratings:
    +1
    Local Time:
    3:43 PM
    1.17.8
    10.3
    I am trying to move my site which is currently running on bitnami stack to centminmod.
    I need help in understanding some basic file configuration and permission as centminmod is slightly different from bitnami.
    1. In bitnami I used to change file permission of different files using sudo chmod to deny file permission. For example:
    Code:
    sudo chmod 640 /opt/bitnami/apps/wordpress/htdocs/wp-config.php
    This command will deny writing permission to wp plugins. Do I need to do these similar setups in centminmod too. If yes, then how?
    2. How to add expires header in centminmod wordpress?
    3. How to make .well-known directory publicly accessible to verify our domain on apple-pay?
    In bitnami I used to add this code in
    Code:
    /opt/bitnami/apps/wordpress/conf/nginx-app.conf
    Code:
    location ^~ /.well-known/ {
    allow all;
    default_type "text/plain";
    }
    4. Do I need to install redis individually even if I have installed wordpress by centmin command on option 22 with 2 as option for install wordpress with redis.
    If redis needs to be installed individually then is this guide would be helpful.
    Redis - Insight Guide - How to install Redis server on Centmin Mod LEMP stack
    5. I want to issue letsencrypt certificate on my domain as www.domain.com as the primary name but during vhost creation on option 22, I need to enter domain without www. Then how to issue letsencrypt certificate on www.domain.com as primary name.
    6. Which one would be better RediSearch or Elastic Search and how to install it for woocommerce store?
     
  2. tininho

    tininho Member

    76
    23
    8
    May 22, 2019
    Nordic
    Ratings:
    +50
    Local Time:
    1:13 PM
    To transfer a Wordpress site to a new server I do the following (on this order):

    1. install all-in-one-wp-migration plugin and export the wordpress backup/transfer file (old server)
    2. change DNS to point the site to the new server
    3. make a new wordpress site with Centminmod command 22 WITH ssl (on new server)
    4. install all-in-one-wp-migration plugin and import the file created on step 1 (new server)
    Afterwards you just save the permalinks as instructed, clean up/check everything is working, and you are good to go. You can set your site to maintenance before step 1, so users will be minimally affected.

    As for the actual questions you made - someone more experienced will surely help you out.
     
    • Informative Informative x 1
    • Friendly Friendly x 1
  3. eva2000

    eva2000 Administrator Staff Member

    43,579
    9,885
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,265
    Local Time:
    8:13 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    You can read Centmin Mod Configuration Files - CentminMod.com LEMP Nginx web stack for CentOS as to layout of everything and Getting Started Guide Getting Started Guide - CentminMod.com LEMP Nginx web stack for CentOS to understand the differences. Step 2 of Getting Started guide has basics of permissions

    Generally you wouldn't need that as some wordpress plugins would require such access for configuring caching. You can try and see if it works for you without altering permissions versus with altering permissions and see

    what are you trying to do ? centmin mod nginx vhosts generated automatically set expire headers for static files via staticfiles.conf include file which is shared globally but placed in each nginx vhosts config file. So you can alter the staticfiles.conf include file or set custom expires for other custom routes within your nginx vhost config file outlined at Centmin Mod Configuration Files - CentminMod.com LEMP Nginx web stack for CentOS

    You can manually add that within your nginx vhost config file outlined at Centmin Mod Configuration Files - CentminMod.com LEMP Nginx web stack for CentOS

    No need to install redis server if you ran centmin mod 123.09beta01 version or higher with centmin.sh menu option 22 and selected redis nginx level cache. As selecting that option will auto install and configure redis server

    Centmin Mod automatically adds www version of your domain to SSL certificate so you only need to enter domain without www and Letsencrypt cert will be issued covering both www and non-www version of your domain. You can see examples of Wordpress setup with Letsencrypt + Cloudflare at https://servermanager.guide/122/how-to-install-wordpress-on-centmin-mod-lemp-stack-guide/

    Probably best to ask in forum at Blogs & CMS usage or on Wordpress community forums as I don't have any practical experience with Woocommerce so can't advise on either search option.
     
  4. Lav

    Lav New Member

    16
    1
    3
    Feb 23, 2020
    Ratings:
    +1
    Local Time:
    3:43 PM
    1.17.8
    10.3
    I know these things but I really appreciate your kind post. Thanks a lot for taking out your time for trying to help me. I really appreciate your kind gesture.
    Thank you tininho!!!
     
    • Like Like x 1
  5. tininho

    tininho Member

    76
    23
    8
    May 22, 2019
    Nordic
    Ratings:
    +50
    Local Time:
    1:13 PM
    I merely tried to point out that (most of) those questions would be somewhat irrelevant in a scenario, where the site is transferred as mentioned above. Your case might be different, and you seem to know what you are doing :)
     
    • Like Like x 1