Welcome to Centmin Mod Community
Register Now

new wordpress install

Discussion in 'Blogs & CMS usage' started by Dan Badea, Dec 2, 2019 at 8:33 AM.

  1. Dan Badea

    Dan Badea New Member

    18
    2
    3
    Monday
    Ratings:
    +3
    Local Time:
    6:08 AM
    hello,

    first of all i'm sorry for mi English, is not my native language.

    I need some help... but first short story.

    some years ago, I don't remember... more than 6 years ago... I buy a kimsufi server and discover centminmod in internet, I buy a name and install the server with help of centminmod very easy. was a simple wordpress presentation for our business, our services etc. it work for a while... when a spammer crack the mailserver and we stop it.

    now, after years, we wan to make same thing... but with more names, multilingual etc. I search on internet and I discover only old threads about centminmod and wordpress.

    what I need is opinions about how can I start...

    what I have is: kimsufi server, CentOS 7 64bit fresh install. with what can I continue ?

    https://centminmod.com/install.html
    or
    https://centminmod.com/install.html + https://centminmod.com/nginx_domain_dns_setup.html
    or
    https://centminmod.com/install.html + https://centminmod.com/nginx-wordpress-installer.html
    or
    another combination ?!

    what I need is a fresh funcional copy of wordpress without plugins, especially without wp super cache , I test it comparatively with wp fastest cache or wp rocket or hummingbird and all is best than wp super cache.

    can you advice me ?

    ah... I have https://bga-rework-station.com hosted here in Spain at esqio.net work pretty good but inconsistent, I have and bga-rework-stations.com, this have no hosting, to test them on my new server.
    at the end I want to host all my site at kimsufi.

    best regards, Dan
     
  2. eva2000

    eva2000 Administrator Staff Member

    42,268
    9,550
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,708
    Local Time:
    3:08 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
  3. Dan Badea

    Dan Badea New Member

    18
    2
    3
    Monday
    Ratings:
    +3
    Local Time:
    6:08 AM
  4. eva2000

    eva2000 Administrator Staff Member

    42,268
    9,550
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,708
    Local Time:
    3:08 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    What's not working ? please explain ?
     
  5. eva2000

    eva2000 Administrator Staff Member

    42,268
    9,550
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,708
    Local Time:
    3:08 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    Looks like domain shows Centmin Mod default nginx index page.

    When you install Centmin Mod it's setup a main hostname nginx vhost host for server which is where Nginx default install index page is shown. Accessing server via IP address will show that page and it's correct and should be left as is as the main hostname site is also used for statistics pages outlined here. When you create a new Nginx vhost site via centmin.sh menu option 2, 22 or nv commands, you have a separate Nginx vhost directory structure. The differences are outlined on official Config file page and at Getting Started Guide step 1 and bottom of that page here.
    If your site domain name when visited redirects to main hostname and default nginx index page, then that is usually due to the main hostname being same as the site domain name which is incorrect as they need to differ.

    What does your /usr/local/nginx/conf/conf.d/virtual.conf and /usr/local/nginx/conf/conf.d/yourdomain.com.conf contents look like ? Make sure virtual.conf main hostname's server_name isn't same as any added nginx vhost site's domain name as per Getting Started Guide step 1, the main hostname needs to be unique.

    You can check via recursive grep filter of your domain name in vhost directory at /usr/local/nginx/conf/conf.d
    Code (Text):
    grep -rnw 'yourdomain.com' /usr/local/nginx/conf/conf.d
    

    Also check DNS is correct use dig to check DNS for domain
    Code (Text):
    dig +short A @8.8.8.8 yourdomain.com
    dig +short A @8.8.8.8 www.yourdomain.com
    dig +short A @8.8.8.8 hostname.yourdomain.com
    

    check HTTP headers via curl for both HTTP (and HTTPS if you have HTTPS/SSL)
    Code (Text):
    curl -I http://yourdomain.com
    curl -I http://www.yourdomain.com
    curl -I https://yourdomain.com
    curl -I https://www.yourdomain.com
    curl -I http://hostname.yourdomain.com
    
     
  6. Dan Badea

    Dan Badea New Member

    18
    2
    3
    Monday
    Ratings:
    +3
    Local Time:
    6:08 AM
    hello,

    I stop because here in Spain was 5:30 AM...

    let see... what I make was install centmin mod, this is self installing and don't ask nothing. after I install wordpress with option 22 from centminmod. after I setup on my name registrant the cloudflare 2 DNS, after that I setup on cloudflare an "A" record than point bga-rework-stations.com to 176.31.115.177 that is my kimsufi server.

    now I suppose that I have to make some after setup changes... where ?

    PS- eva2000 thank you very much for your time, if somebody know the centminmod... are you :)

    where can I start ? what I make until now is ok or... the method brute force... reinstall all centos, centminmod, option 22 with more attention ?
     
  7. Dan Badea

    Dan Badea New Member

    18
    2
    3
    Monday
    Ratings:
    +3
    Local Time:
    6:08 AM
  8. Dan Badea

    Dan Badea New Member

    18
    2
    3
    Monday
    Ratings:
    +3
    Local Time:
    6:08 AM
    Code:
    [11:27][[email protected] ~]# curl -I http://www.bga-rework-stations.com
    HTTP/1.1 200 OK
    Date: Mon, 02 Dec 2019 11:29:11 GMT
    Content-Type: text/html; charset=utf-8
    Connection: keep-alive
    Set-Cookie: __cfduid=d77d10a4c51c6607d7147fc07e973d46f1575286151; expires=Wed, 01-Jan-20 11:29:11 GMT; path=/; domain=.bga-rework-stations.com; HttpOnly
    Last-Modified: Mon, 02 Dec 2019 00:24:25 GMT
    Vary: Accept-Encoding
    X-Powered-By: centminmod
    CF-Cache-Status: DYNAMIC
    Server: cloudflare
    CF-RAY: 53ecf62ffd02ee58-CDG
    
    [11:29][[email protected] ~]# curl -I https://www.bga-rework-stations.com
    HTTP/1.1 200 OK
    Date: Mon, 02 Dec 2019 11:29:36 GMT
    Content-Type: text/html; charset=utf-8
    Connection: keep-alive
    Set-Cookie: __cfduid=d38d49305f927584bbe597a84e0522db91575286176; expires=Wed, 01-Jan-20 11:29:36 GMT; path=/; domain=.bga-rework-stations.com; HttpOnly
    Last-Modified: Mon, 02 Dec 2019 00:24:25 GMT
    Vary: Accept-Encoding
    X-Powered-By: centminmod
    CF-Cache-Status: DYNAMIC
    Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
    Server: cloudflare
    CF-RAY: 53ecf6ca6df46948-CDG
    
    [11:29][[email protected] ~]# curl -I https://bga-rework-stations.com
    HTTP/1.1 200 OK
    Date: Mon, 02 Dec 2019 11:29:50 GMT
    Content-Type: text/html; charset=utf-8
    Connection: keep-alive
    Set-Cookie: __cfduid=d8265a141d971086058b5645d98d3c19d1575286190; expires=Wed, 01-Jan-20 11:29:50 GMT; path=/; domain=.bga-rework-stations.com; HttpOnly
    Last-Modified: Mon, 02 Dec 2019 00:24:25 GMT
    Vary: Accept-Encoding
    X-Powered-By: centminmod
    CF-Cache-Status: DYNAMIC
    Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
    Server: cloudflare
    CF-RAY: 53ecf7210b43edf3-CDG
    
    I think that is ok
     
  9. Dan Badea

    Dan Badea New Member

    18
    2
    3
    Monday
    Ratings:
    +3
    Local Time:
    6:08 AM
    I don't understand where I make mistake...

    it can be simple. until install all seems that all is clear, the questions are clear, I install kimsufi.bga-rework-stations.com. same behavior, in bga-rework-station.com I delete index.html, nothing

    what I need more ? something I make wrong ? no wordpress
     
  10. Dan Badea

    Dan Badea New Member

    18
    2
    3
    Monday
    Ratings:
    +3
    Local Time:
    6:08 AM
    @eva2000 ... gentleman... or... lady... you are a genius... no... wait... a GENIUS ! such a stupid simple approach for a such a complicated thing... Linux, even an idiot like me... can buy a (I hope) good server, kimsufi, get free centminmod, and have in one moment a site completely functional.

    here is http://bga-rework-stations.com functional.

    IMPORTANT ! - NEEDED TO RESTART CENTOS AFTER CENTMINMOD INSTALL. BEFORE MENU 22 WORDPRESS INSTALL.
     
  11. eva2000

    eva2000 Administrator Staff Member

    42,268
    9,550
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,708
    Local Time:
    3:08 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    what happened if you didn't restart centos after centmin mod install for centmin.sh menu option 22 ?

    it could be your web host's centos 7 image is older than centos 7.6/7.7 i.e. centos 7.0 and after yup update it needed a restart before centmin mod install - though usually centos 7 wouldn't have issues.
     
  12. Dan Badea

    Dan Badea New Member

    18
    2
    3
    Monday
    Ratings:
    +3
    Local Time:
    6:08 AM
    first time, when I have the problems, I install centos, it restart, install centminmod and install wordpress menu 22. but... when I look at site no site, I look in directory... no wordpress structure.
    after
    I reinstall centos 7.0 64 bit, it restart automatically, check for selinux, was disabled, install centminmod, restart centos, menu 22 in centminmod and on the fly it install ok all wordpress.
     
    • Informative Informative x 1
  13. Dan Badea

    Dan Badea New Member

    18
    2
    3
    Monday
    Ratings:
    +3
    Local Time:
    6:08 AM
    every time I search for yum update, every time nothing to update... I think that is the last...
     
  14. eva2000

    eva2000 Administrator Staff Member

    42,268
    9,550
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,708
    Local Time:
    3:08 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
  15. Dan Badea

    Dan Badea New Member

    18
    2
    3
    Monday
    Ratings:
    +3
    Local Time:
    6:08 AM
    how can I help ? a benchmark for my server ? xenon 2.6G 8 threads, 32G RAM, or you have it ? if you need it tell me how... :(
     
  16. eva2000

    eva2000 Administrator Staff Member

    42,268
    9,550
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,708
    Local Time:
    3:08 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    no need to help/provide benchmarks to me. But if you want to test your own server, might want to check out my sysbench.sh script at centminmod/centminmod-sysbench
     
  17. Dan Badea

    Dan Badea New Member

    18
    2
    3
    Monday
    Ratings:
    +3
    Local Time:
    6:08 AM
    I think that it have post setup actions...

    my intention is to host my own names on my server, I have installed... bga-rework-stations.com, I will install iesn.es, bga-rework-station.com. in the future I'l buy more (if I need) only for country specific language.

    1 - I don't understand why I need step 1 from here https://centminmod.com/getstarted.html#8
    2 - I need a solution for mails from wordpress, default use phpmail() an in the past I have problem with him, I need a SMTP but a good SMTP because at esquio.net I use one and all users registration mails send directly to spam folder
    3 - the DNS records seems to be on esquio.net server, I put the cloudflare DNS entry but... I think that when somebody put in browser https://bga-rework-stations.com... first of all go to esquio after coudflare after kimsufi, can I host on my server the DNS ? or directly in cloudflare ? esquio have an inconsistent first byte time...
     
  18. eva2000

    eva2000 Administrator Staff Member

    42,268
    9,550
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,708
    Local Time:
    3:08 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    step 1 or step 8 ? For step 1 in Getting Started Guide is need to prevent server sent email ending up in spam inboxes as per https://community.centminmod.com/th...ver-email-doesnt-end-up-in-spam-inboxes.6999/ and also for Centmin Mod stats pages which are hosted off of main hostname PHP Opcode and Memcached statistics pages and allow you to pass nginx and php-fpm stats over to 3rd party monitoring services like Nixstats and Nginx Amplify https://community.centminmod.com/th...monitoring-with-nixstats-nginx-amplify.14024/ as stats are configured off of main hostname existing on Centmin Mod servers.

    For solid SMTP delivery use 3rd party like Amazon SES https://community.centminmod.com/threads/amazon-aws-ses-smtp-transactional-email-info.13842/

    Don't understand what you're attempting ? For Cloudflare questions you can ask on their official support forum at https://community.cloudflare.com

    Is that inconsistent TTFB with Centmin Mod installed Wordpress or you mean previous Wordpress installs on non-centmin mod servers ?

    Inconsistent TTFB suggests origin server related issues - server could be inherently slow or starved of resources etc i.e. slow mysql queries lead to slow php response time, leads to slow nginx response time for dynamic PHP generated HTML pages. That is a separate issue for a separate thread and forum post. See https://community.centminmod.com/threads/how-to-troubleshoot-optimize-php-fpm-server.15317/

    Regarding TTFB/Pagespeed is still geographically dependent. This is due to Cloudflare not caching HTML content by default but only static files. So for optimal TTFB speed, you want your origin real web server to be hosted in a location closest to your majority traffic visitors and then put Cloudflare in front. For instance, my forums has 50% US visitors 40% Asian visitors and 10% Oceania. So my optimal geographic location for my origin is US West Coast as it sits in middle of US, Europe and Asian so equal round trip times for majority of visitors.

    Cloudflare cache certain static content https://support.cloudflare.com/hc/en-us/articles/200172516-Which-file-extensions-does-Cloudflare-cache-for-static-content- but not dynamic/static generated html itself by default (which is what WPT TTFB is testing for). But you can tell Cloudflare to cache dynamic/static generated html content to some extent depending on Cloudflare plan you’re on via cache everything page rule but have to be careful to only do this for static html content and not dynamic html content (otherwise you would cache private logged in user content).
     
  19. Dan Badea

    Dan Badea New Member

    18
    2
    3
    Monday
    Ratings:
    +3
    Local Time:
    6:08 AM
  20. Dan Badea

    Dan Badea New Member

    18
    2
    3
    Monday
    Ratings:
    +3
    Local Time:
    6:08 AM
    or

    2. Add Your First Domain Name's Nginx Vhost Configuration.

    ?