Learn about Centmin Mod LEMP Stack today
Register Now

Wordpress Autoinstall fail to install wordpress

Discussion in 'Blogs & CMS usage' started by patrikpodo, Nov 23, 2023.

  1. patrikpodo

    patrikpodo Member

    32
    3
    8
    Aug 27, 2014
    Prague
    Ratings:
    +7
    Local Time:
    6:39 AM
    I am not sure if I can post it here, but I tried couple of my VPS hostings to install centminmod on centos 7 /I even tried on centos 8/, different php /7.4 and 8/ stable versions and even beta versions.

    All those hosts had cenitminmod installed before, but right now I cannot install wordpress correctly on them.

    I am pretty familiar with autoinstaller. I am using it for over a decade, but I have never had anything like that happening.

     

    Attached Files:

    • 1.png
      1.png
      File size:
      10.5 KB
      Views:
      0
  2. patrikpodo

    patrikpodo Member

    32
    3
    8
    Aug 27, 2014
    Prague
    Ratings:
    +7
    Local Time:
    6:39 AM
    I just tried another vps

    Not sure if this will help:

    Loaded plugins: fastestmirror, priorities, versionlock
    Loading mirror speeds from cached hostfile
    * base: mirror.bytemark.co.uk
    * centos-sclo-rh: mirror.bytemark.co.uk
    * centos-sclo-sclo: mirror.bytemark.co.uk
    * epel: b4sh.mm.fcix.net
    * extras: mirror.bytemark.co.uk
    * updates: mirror.bytemark.co.uk
    http://yum.mariadb.org/10.3/centos7-amd64/repodata/repomd.xml: [Errno 14] HTTP E rror 404 - Not Found
    Trying other mirror.
    To address this issue please refer to the below wiki article

    https://wiki.centos.org/yum-errors

    If above article doesn't help to resolve this issue please use https://bugs.cent os.org/.

    http://yum.mariadb.org/10.3/centos7-amd64/repodata/repomd.xml: [Errno 14] HTTP E rror 404 - Not Found
    Trying other mirror.
    Not using downloaded updates/repomd.xml because it is older than what we have:
    Current : Wed Nov 15 17:35:01 2023
    Downloaded: Fri Oct 20 15:57:57 2023
    repo id repo name status
    base/7/x86_64 CentOS-7 - Base 10,072
    centos-sclo-rh/x86_64 CentOS-7 - SCLo rh 8,170
    centos-sclo-sclo/x86_64 CentOS-7 - SCLo sclo 816
    epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 13,786
    extras/7/x86_64 CentOS-7 - Extras 518
    mariadb MariaDB 0
    percona-release-x86_64/7 Percona Original release/x86_64 YUM repository 2,634
    prel-release-noarch/7 Percona Release release/noarch YUM repository 5
    updates/7/x86_64 CentOS-7 - Updates 5,434
    repolist: 41,435
     
  3. brijendrasial

    brijendrasial Active Member

    207
    154
    43
    Mar 21, 2018
    Ratings:
    +236
    Local Time:
    10:09 AM
    1.13.9
    10.0.22-MariaDB
    both has no relation. what is your site name on which you just installed wordpress
     
  4. patrikpodo

    patrikpodo Member

    32
    3
    8
    Aug 27, 2014
    Prague
    Ratings:
    +7
    Local Time:
    6:39 AM

    Attached Files:

    • 4.png
      4.png
      File size:
      69 KB
      Views:
      0
  5. brijendrasial

    brijendrasial Active Member

    207
    154
    43
    Mar 21, 2018
    Ratings:
    +236
    Local Time:
    10:09 AM
    1.13.9
    10.0.22-MariaDB
    site works fine. what is not working?
     
  6. patrikpodo

    patrikpodo Member

    32
    3
    8
    Aug 27, 2014
    Prague
    Ratings:
    +7
    Local Time:
    6:39 AM
    cannot even access plugin section 5.png
     
  7. brijendrasial

    brijendrasial Active Member

    207
    154
    43
    Mar 21, 2018
    Ratings:
    +236
    Local Time:
    10:09 AM
    1.13.9
    10.0.22-MariaDB
    that has to do something with the server not with autoinstaller of centminmod
     
  8. patrikpodo

    patrikpodo Member

    32
    3
    8
    Aug 27, 2014
    Prague
    Ratings:
    +7
    Local Time:
    6:39 AM
    3 different VPS hostings /2 different hosting companies/ same mess at wordpress admin area.... 6.png
     
  9. brijendrasial

    brijendrasial Active Member

    207
    154
    43
    Mar 21, 2018
    Ratings:
    +236
    Local Time:
    10:09 AM
    1.13.9
    10.0.22-MariaDB
  10. brijendrasial

    brijendrasial Active Member

    207
    154
    43
    Mar 21, 2018
    Ratings:
    +236
    Local Time:
    10:09 AM
    1.13.9
    10.0.22-MariaDB
  11. eva2000

    eva2000 Administrator Staff Member

    53,535
    12,134
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,677
    Local Time:
    2:39 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    How did you install Centmin Mod? Exact commands?

    Which version of Centmin Mod did you install?

    What version of PHP did you use/upgrade to?

    That maybe a separate issue i.e. network connectivity issues with your VPS itself. If so initial install log for troubleshooting first as outlined at https://community.centminmod.com/threads/how-to-troubleshoot-centmin-mod-initial-install-issues.102/

    Maybe related to additional security configured in Centmin Mod centmin.sh menu option 22 Wordpress autoinstaller. See https://community.centminmod.com/threads/wordpress-403-permission-denied-errors.11215/

    If the centmin.sh menuoption 22 Wordpress autoinstaller specific issue, see below

    Troubleshooting Centmin Mod Menu Option 22 Wordpress Install Run



    To troubleshoot centmin.sh menu option 22 wordpress installation, you need to check the centmin.sh menu option 22 log located in /root/centminlogs at /root/centminlogs/centminmod_*_wordpress_addvhost.log based log where * is the centminmod version and date timestamp. Edit and mask any actual ftp username/password or wordpress usernames and logins before posting the log contents to Pastebin.com or Gists to share a sanitised version of the contents of the log.

    Example list /root/centminlogs files in date ascending order and grep for wordpress_addvhost.log
    Code (Text):
    ls -lahrt /root/centminlogs | grep wordpress_addvhost.log
    

    example output returns log at /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_wordpress_addvhost.log
    Code (Text):
    ls -lahrt /root/centminlogs | grep wordpress_addvhost.log
    -rw-r--r--  1 root root 2.2M Oct 11 01:40 /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_wordpress_addvhost.log
    

    in SSH use cat to ouput contents of /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_wordpress_addvhost.log. Clear your SSH client window/buffer so only output is the contents of the file
    Code (Text):
    cat /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_wordpress_addvhost.log
    

    Then copy and paste into Pastebin.com or Gists entry. If your SSH window scroll buffer isn't that large to get the whole contents of the install log, you can download file manually and copy and paste contents. But makes sure it's sanitised version of the contents without revealing sensitive info. For example you can replace domain name of the wordpress site with generic dummy entry = domain.com if you want and mask site/server IP revealed in the log with generic dummy entry = 111.222.333.444.
     
  12. eva2000

    eva2000 Administrator Staff Member

    53,535
    12,134
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,677
    Local Time:
    2:39 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    That screenshot in first post looks like a browser mixed HTTP/non-HTTPS content warning - could be your didn't enable Letsencrypt SSL certifications for web browser trusted SSL certificates on HTTPS sites https://centminmod.com/letsencrypt-freessl.html? Or if you did enable, Letsencrypt domain validation failed for whatever reason to issue browser trusted Letsencrypt SSL certificate and fell back to untrusted self-signed SSL certificate

    First try running your intended SSL certificate domain through the letsdebug.net online testing tool to check for potential errors with HTTP-01 validation. If you created Centmin Mod 123.09beta01 or higher Nginx site with Letsencrypt via centmin.sh menu option 2, 22 or nv command line, you now also have an automatic letsdebug.net API check log saved at /root/centminlogs/letsdebug-yourdomain.com-${DT}.log where yourdomain.com is domain specified during nginx vhost creation and DT is date/timestamp. Inspecting the /root/centminlogs/letsdebug-yourdomain.com-${DT}.log log will also give you clues as to why letsencrypt SSL certificate issuance failed.

    How was the initial letsencrypt ssl certificate obtained ? Which method ?
    • Was the domain nginx vhost alreadying created prior or new domain nginx vhost site setup for first time ?
    • Via centmin.sh menu option 2, 22, /usr/bin/nv ?
    • If you ran centmin.sh menu option 2 or 22, which letsencrypt option did you select from
      Code (Text):
      -------------------------------------------------------------
      Setup full Nginx vhost + Wordpress + WP Plugins
      -------------------------------------------------------------
      
      Enter vhost domain name you want to add (without www. prefix): acme3.domain1.com
      
      Create a self-signed SSL certificate Nginx vhost? [y/n]: n
      Get Letsencrypt SSL certificate Nginx vhost? [y/n]: y
      
      You have 4 options:
      1. issue staging test cert with HTTP + HTTPS
      2. issue staging test cert with HTTPS default
      3. issue live cert with HTTP + HTTPS
      4. issue live cert with HTTPS default
      Enter option number 1-4: 1
      
    • Via addons/acmetool.sh ? which specific command ? examples
      Code (Text):
      ./acmetool.sh issue acme.domain.com
      
      Code (Text):
      ./acmetool.sh issue acme.domain.com live
      
      Code (Text):
      ./acmetool.sh issue acme.domain.com d
      
      Code (Text):
      ./acmetool.sh issue acme.domain.com lived
      
    • What was order of steps you did ? Did you run centmin.sh menu option 2 first with letsencrypt ? Then did you run addons/acmetool.sh afterwards ?

    Centmin Mod Self-Signed SSL Fallback



    If you're seeing a Centmin Mod's self-signed ssl certificate instead of letsencrypt ssl certificate, then that's acmetool.sh and centminmod's fallback if letsencrypt verification fails to obtain letsencrypt ssl cert, it falls back to centmin mod self-signed ssl certificate on https port 443 side so to preserve the https nginx vhost

    Troubleshooting



    There are various steps you can do to troubleshoot failed letsencrypt issuances, renews, reissues etc.
    • acmetool.sh logs all command line or shell menu runs to log files at /root/centminlogs. To troubleshoot, copy the contents of the log run and post contents of log to pastebin.com or gist.github.com and share link in this thread. To find the log list the logs in ascending date order
      Code (Text):
      ls -lahrt /root/centminlogs
      .
    • You can also do a quick grep filter on all previous and current acmetool.sh runs of the underlying acme.sh client for errors listed in errordetails field of each log using the command below:
      Code (Text):
      find /root/centminlogs/ -type f -name 'acme*.log' -printf '%TY-%Tm-%Td %TH:%TM:%TS %p\n' | sort | awk '{print $3}' | xargs -d '\n' grep -i 'errordetail'
      
    • For direct acmetool.sh runs, there should be a 2nd & 3rd & 4th log in format /root/centminlogs/centminmod_${DT}_nginx_addvhost_nv.log and /root/centminlogs/acmetool.sh-debug-log-$DT.log and /root/centminlogs/acmesh-issue_*.log or /root/centminlogs/acmesh-reissue_*.log which would need to be included via separate pastebin.com or gist.github.com post.
    • Enable acmetool.sh debug mode. In persistent config file at /etc/centminmod/custom_config.inc (create it if doesn't exist) add and enable acmetool.sh debug mode which gives much more verbose letsencrypt issuance process information when you re-run acmetool.sh or centmin.sh menu options 2, 22 or /usr/bin/nv command lines.
      Code (Text):
      ACMEDEBUG='y'
    If acme.sh auto renewals didn't happen, check output for the following commands
    Code (Text):
    grep acme /var/log/cron* | sed -e "s|$(hostname -s)|host|g"
    

    Code (Text):
    echo y | /usr/local/src/centminmod/addons/acmetool.sh checkdates
    

    Code (Text):
    "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh"
    

    Code (Text):
    echo | openssl s_client -connect yourdomain.com:443
    

    Without the answers to above questions and logs, there is nothing to help troubleshoot.

    SSLLabs Test



    Also run your HTTPS domain site through SSLLabs tester at SSL Server Test (Powered by Qualys SSL Labs) if it says untrusted SSL cert and prompts to continue the test, continue the test.

    Cloudflare



    If you use Cloudflare, instead of the default Letsencrypt web root validation, you can use Cloudflare's DNS API for Letsencrypt DNS validation for your domain. See the outline at bottom of page at Letsencrypt Free SSL Certificates
     
  13. patrikpodo

    patrikpodo Member

    32
    3
    8
    Aug 27, 2014
    Prague
    Ratings:
    +7
    Local Time:
    6:39 AM
    Ok, lets forget about this certificate problem. Maybe I tried too many installation of the same domain /on different new centminmod installs/ in too short period of time /it happened to me before :D/ .

    I would like to focus on default centminmod installs, that are throwing errors.

    I am using centos 7 64 templates on hosts like crowncloud or inception hosting. I have accounts there for 5 + years and never had Centminmod autoinstaller problem.

    I used default autoinstaller commands from this page:

    https://centminmod.com/install.html /php 7.4 and also I tried 8/

    Due to the testing I also tried beta installers /php 7.4 and also I tried 8/ /from the same page/.

    I also tried another host , that is geographically closer centos 7 64 /vpshostingservice.co/ and I migrate some wordpress websites to it. Sites are working but there are problems with some plugins. For example, plugins that block creation of additional thumbnails stopped working and those 30 000 product affiliates site are getting clogged up by 200 000s image files.... Something is off. Not sure what, but after I tried those new centminmod autoinstalls , I am pretty confident that I am addressing it at the correct forum.
     
  14. patrikpodo

    patrikpodo Member

    32
    3
    8
    Aug 27, 2014
    Prague
    Ratings:
    +7
    Local Time:
    6:39 AM
  15. patrikpodo

    patrikpodo Member

    32
    3
    8
    Aug 27, 2014
    Prague
    Ratings:
    +7
    Local Time:
    6:39 AM
  16. eva2000

    eva2000 Administrator Staff Member

    53,535
    12,134
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,677
    Local Time:
    2:39 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    You can remove the log if you want as I've downloaded and inspected it. The initial install log looks fine so not related to initial install issue. You'd want to inspect the Wordpress auto install log next
     
  17. patrikpodo

    patrikpodo Member

    32
    3
    8
    Aug 27, 2014
    Prague
    Ratings:
    +7
    Local Time:
    6:39 AM
  18. patrikpodo

    patrikpodo Member

    32
    3
    8
    Aug 27, 2014
    Prague
    Ratings:
    +7
    Local Time:
    6:39 AM
  19. eva2000

    eva2000 Administrator Staff Member

    53,535
    12,134
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,677
    Local Time:
    2:39 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    You can remove that log too, I've downloaded it now. I'll take a look at it tomorrow
     
  20. patrikpodo

    patrikpodo Member

    32
    3
    8
    Aug 27, 2014
    Prague
    Ratings:
    +7
    Local Time:
    6:39 AM
    Thanks

    here is another centmin install

    1 gb RAM Server install centos 7

    php 8. default:

    yum -y update; curl -O https://centminmod.com/installer80.sh && chmod 0700 installer80.sh && bash installer80.sh

    Failed to install php and mariaDB

    LOGS