Learn about Centmin Mod LEMP Stack today
Become a Member

Install Installed Centminmod beta trying to install wordpress but getting too much of error

Discussion in 'Install & Upgrades or Pre-Install Questions' started by drabhaydaga, Dec 15, 2018.

  1. drabhaydaga

    drabhaydaga New Member

    28
    3
    3
    Nov 24, 2018
    Ratings:
    +3
    Local Time:
    4:46 PM
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 7 64bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: . 1.15.3
    • PHP Version Installed: 7.2.9
    • MariaDB MySQL Version Installed: 10.2.xx
    • When was last time updated Centmin Mod code base ? : today
    Hello friends i have just installed centminmod on moi new droplet at digitalocean to test it


    right now on another droplets i am using webinoly which is super easy :D

    but having too many error

    i tried to install wordpress with 22 command but after setting everything its showing error 403 forbidden
    also looking in to the public directory also there are no file was i did something wrong
    so i reinstalled it again but same thing i want to know why there are no file when we do option wordpress install also i want to get rid of error 403
     
  2. eva2000

    eva2000 Administrator Staff Member

    58,908
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    9:16 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Centmin Mod values security and puts additional measures in place so that end users are also mindful of security. So in your case, you might need to whitelist or unblock the WP plugins related to your 403 permission denied messages.

    If you used centmin.sh menu option 22 auto installer Wordpress Nginx Auto Installer, the default wpsecure conf file at /usr/local/nginx/conf/wpincludes/${vhostname}/wpsecure_${vhostname}.conf where vhostname is your domain name, blocks php scripts from executing in wp-content for security

    Below links you can see examples of setting up specific wordpress location matches to punch a hole in the wpsecure blocking to whitelist specific php files that need to be able to run.

    If on Centmin Mod 123.09beta01, you may have ran into the new tools/autoprotect.sh cronjob feature outlined at Beta Branch - autoprotect.sh - apache .htaccess check & migration to nginx deny all | Centmin Mod Community You uploaded scripts may have .htaccess deny from all type files in their directories which may need bypassing autoprotect. It's a security feature that no other nginx based stack has as far as I know :)

    So instead, all .htaccess 'deny from all' detected directories now get auto generated Nginx equivalent location match and deny all setups except if you want to manually bypass the directory from auto protection via a .autoprotect-bypass file - details below here.

    You can read a few threads below on how autoprotect.sh may have caught some folks web apps falsely and the workarounds or improvements made to autoprotect.sh with the help of users feedback and troubleshooting.
    Check if your nginx vhost at either or both /usr/local/nginx/conf/conf.d/domain.com.conf and/or /usr/local/nginx/conf/conf.d/domain.com.ssl.conf has include file for autoprotect example
    Code (Text):
    include /usr/local/nginx/conf/autoprotect/domain.com/autoprotect-domain.com.conf;
    

    see if your directory for the script which has issues is caught in an autoprotect include entry in /usr/local/nginx/conf/autoprotect/domain.com/autoprotect-domain.com.conf which has a deny all entry
    Code (Text):
    cat /usr/local/nginx/conf/autoprotect/domain.com/autoprotect-domain.com.conf
    

    i.e.
    Code (Text):
    # /home/nginx/domains/domain.com/public/subdirectory/js
    location ~* ^/subdirectory/js/ { allow 127.0.0.1; deny all; }
    

    If caught you can whitelist it by autoprotect bypass .autoprotect-bypass file - details below here. So if problem js file is at domain.com/subdirectory/js/file.js then it is likely /subdirectory/js has a .htaccess with deny all in it - make sure that directory is meant to be publicly accessible by contacting author of script and if so, you can whitelist it and re-run autoprotect script to regenerate your /usr/local/nginx/conf/autoprotect/domain.com/autoprotect-domain.com.conf include file
    Code (Text):
    cd /home/nginx/domains/domain.com/public/subdirectory/js
    touch .autoprotect-bypass
    /usr/local/src/centminmod/tools/autoprotect.sh
    nprestart
    

    it maybe you need to also whitelist /subdirectory then it would be as follows creating bypass files at /home/nginx/domains/domain.com/public/subdirectory/.autoprotect-bypass and /home/nginx/domains/domain.com/public/subdirectory/js/.autoprotect-bypass
    Code (Text):
    cd /home/nginx/domains/domain.com/public/subdirectory/
    touch .autoprotect-bypass
    cd /home/nginx/domains/domain.com/public/subdirectory/js
    touch .autoprotect-bypass
    /usr/local/src/centminmod/tools/autoprotect.sh
    nprestart
    

    then double check to see if updated /usr/local/nginx/conf/autoprotect/domain.com/autoprotect-domain.com.conf include file now doesn't show an entry for /subdirectory/js
     
  3. drabhaydaga

    drabhaydaga New Member

    28
    3
    3
    Nov 24, 2018
    Ratings:
    +3
    Local Time:
    4:46 PM
    i tried Disabling tools/autoprotect.sh
    but same error

    /usr/local/nginx/conf/autoprotect/3dwala.com/autoprotect-3dwala.com.conf i check its blank

    i m really confused

    can u please explain how to disable autoprotect complete as i tried all

    also i want to know after selecting option 22 all wordpress related files are in public directory right ??
    but over there its blank when i tried uploading sample index.php or index.html it works then why this directory is blank or only few html error files ??
     
  4. eva2000

    eva2000 Administrator Staff Member

    58,908
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    9:16 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    yes it should be in web root at /home/nginx/domains/yourdomain.com/public see outline of structure at Centmin Mod Configuration Files - CentminMod.com LEMP Nginx web stack for CentOS

    centmin.sh menu option 22 run wordpress install shouldn't be blank in /home/nginx/domains/yourdomain.com/public

    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.
     
  5. drabhaydaga

    drabhaydaga New Member

    28
    3
    3
    Nov 24, 2018
    Ratings:
    +3
    Local Time:
    4:46 PM
    Abhay - Pastebin.com

    I have not deleted data as its test droplet i will just install on new droplet once its get solved everything
     
    Last edited: Dec 18, 2018
  6. eva2000

    eva2000 Administrator Staff Member

    58,908
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    9:16 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Looks like root cause of your problem is PHP was never properly installed
    Code (Text):
    update wp-cli packages
    /usr/bin/env: php: No such file or directory
    -------------------------------------------------------------
    

    so you can reload CentOS 7 OS and retry a fresh install of Centmin Mod 123.09beta01 would be easiest way.

    If you want to figure out what went wrong with initial install for PHP to fail to install, you can inspect the initial install log as per below instructions

    Troubleshooting Initial Install



    To troubleshoot initial installation, you need to check the initial install log at /root/centminlogs and instructions under Sharing logs and errors heading for using Pastebin.com or Gists to share a sanitised version of the contents of the initial install log. You can see full details at How to troubleshoot Centmin Mod initial install issues

    Example for 123.09beta01 and newer list /root/centminlogs files in date ascending order and grep for installer_*
    Code (Text):
    ls -lahrt /root/centminlogs | grep installer_*
    

    example output returns install log at /root/centminlogs both a the full log and minimal log (smaller in size with some stuff filtered out)
    Code (Text):
    ls -lahrt /root/centminlogs | grep installer_*
    -rw-r--r-- 1 root root 4.3M Jul 12 09:06 installer_120718-083445.log
    -rw-r--r-- 1 root root 826K Jul 12 10:20 installer_120718-083445_minimal.log
    


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

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

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

    for 123.08stable
    Code (Text):
    cat /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_install.log
    

    for 123.09beta01 and newer
    Code (Text):
    cat /root/centminlogs/installer_120718-083445_minimal.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 of the initial install log as outlined at How to troubleshoot Centmin Mod initial install issues
     
  7. drabhaydaga

    drabhaydaga New Member

    28
    3
    3
    Nov 24, 2018
    Ratings:
    +3
    Local Time:
    4:46 PM
    Hie i just reloaded my server
    And installing new php 7.3 will update u once its finished but actually last time also i installed it was the same issue but still again as instructed i rebuild my centos 7.5 64 bt droplet and now installing
    yum -y update; curl -O https://centminmod.com/betainstaller73.sh && chmod 0700 betainstaller73.sh && bash betainstaller73.sh

    I hope this time it will work
     
  8. eva2000

    eva2000 Administrator Staff Member

    58,908
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    9:16 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    yeah if you have problems with initial installs, the troubleshooting steps with install log previous outlined is best place to start
     
  9. drabhaydaga

    drabhaydaga New Member

    28
    3
    3
    Nov 24, 2018
    Ratings:
    +3
    Local Time:
    4:46 PM
    As i want to shift to centmin mod as centos is much stable in terms of concerrent users as rt now webinoly which is based on Ubuntu gets crashed after having in total 40,000 monthly users in a month my droplet is of 8 gb ram with 2 core cpu c think this much must be enough but aftrr every 4 days i have to restart my droplet to get ot working
    Daily i have just max 500 users as i saw in forum and everywhere i needed a stable server which i think centminmod can achive
     
  10. drabhaydaga

    drabhaydaga New Member

    28
    3
    3
    Nov 24, 2018
    Ratings:
    +3
    Local Time:
    4:46 PM
  11. eva2000

    eva2000 Administrator Staff Member

    58,908
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    9:16 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    from initial install log looks like php tar.xz download failed to download so it's missing for mirror download location at in1.php.net - what geographic location is your server ? it could be unique issue due to the location of your server and geomirroring download url at in1.php.net
    Code (Text):
    [1;33;40mDownload php-7.3.0.tar.gz ...
    [0;10maxel -4 http://in1.php.net/get/php-7.3.0.tar.gz/from/this/mirror -o php-7.3.0.tar.gz
    Initializing download: http://in1.php.net/get/php-7.3.0.tar.gz/from/this/mirror
    Connection gone while writing.
    [1;32;40mError: php-7.3.0.tar.gz download failed.
    

    Code (Text):
    ../configure --enable-fpm --enable-opcache --enable-intl --enable-pcntl --with-mcrypt --with-snmp --enable-embed=shared --with-mhash --with-zlib --with-gettext --enable-exif --enable-zip --with-libzip --with-bz2 --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-shmop --with-pear --enable-mbstring --with-openssl --with-mysql=mysqlnd --with-libdir=lib64 --with-mysqli=mysqlnd --with-mysql-sock=/var/lib/mysql/mysql.sock --with-curl --with-gd --with-xmlrpc --enable-bcmath --enable-calendar  --enable-ftp --enable-gd-native-ttf --with-freetype-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr --with-webp-dir=/usr --with-t1lib=/usr --enable-pdo --with-pdo-sqlite --with-pdo-mysql=mysqlnd --enable-inline-optimization --with-imap --with-imap-ssl --with-kerberos --with-readline --with-libedit --with-gmp --with-pspell --with-tidy --with-enchant --with-fpm-user=nginx --with-fpm-group=nginx --disable-fileinfo --with-ldap --with-ldap-sasl --with-password-argon2 --with-sodium --with-config-file-scan-dir=/etc/centminmod/php.d --with-xsl
    inc/php_configure.inc: line 1140: ../configure: No such file or directory
    
     
  12. eva2000

    eva2000 Administrator Staff Member

    58,908
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    9:16 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    I just updated 123.09beta01's php download mirror list for India and Germany so next fresh install of 123.09beta01 should work for Indian region servers
     
  13. drabhaydaga

    drabhaydaga New Member

    28
    3
    3
    Nov 24, 2018
    Ratings:
    +3
    Local Time:
    4:46 PM
    we are in India also my droplet is based in india so what can be done to solve this issue ??
     
  14. eva2000

    eva2000 Administrator Staff Member

    58,908
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    9:16 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    I already updated 123.09beta01 code with fixed india php download mirror links so next fresh CentOS 7 install with fresh 123.09beta01 install will work now
     
  15. drabhaydaga

    drabhaydaga New Member

    28
    3
    3
    Nov 24, 2018
    Ratings:
    +3
    Local Time:
    4:46 PM
    ohhh finally installed wordpress
    i need to ask u 1 last quest i have shared wordpress install log file and centminmod log files can u plz check once if anything is wrong bcoz whiles installation i got manny error of memchache

    latest install file

    wordpress

    also i want to know how to reinstall ssl as there was dns error my one of the domain was pointing to another droplet but now it pointing to this droplet so how to reissue ssl
     
  16. eva2000

    eva2000 Administrator Staff Member

    58,908
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    9:16 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Code (Text):
    (B[m[1;33;40mCheck PHP-FPM Version:
    (B[m[1;33;40m--------------------------------------------------------
    (B[mPHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20180731/memcache.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20180731/memcache.so (/usr/local/lib/php/extensions/no-debug-non-zts-20180731/memcache.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20180731//usr/local/lib/php/extensions/no-debug-non-zts-20180731/memcache.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20180731//usr/local/lib/php/extensions/no-debug-non-zts-20180731/memcache.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
    PHP 7.3.0 (cli) (built: Dec 18 2018 06:46:51) ( NTS )
    Copyright (c) 1997-2018 The PHP Group
    Zend Engine v3.3.0-dev, Copyright (c) 1998-2018 Zend Technologies
       with Zend OPcache v7.3.0, Copyright (c) 1999-2018, by Zend Technologies
    

    looks good for memcache which isn't supported in php 7.3.0 you just need to remove as per PHP 7.3.0, 7.2.13, 7.1.25, 7.0.33, 5.6.39 Released (latest 123.09beta01 update should of fixed that edit: found the bug and will update 123.09beta01 to properly remove memcache.ini - you can do that manually using below instructions)

    what is output for these 2 commands
    Code (Text):
    fpmrestart
    

    Code (Text):
    cmupdate
    


     
  17. eva2000

    eva2000 Administrator Staff Member

    58,908
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    9:16 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    try using acmetool.sh new reissue option Letsencrypt - Official acmetool.sh testing thread for Centmin Mod 123.09beta01

     
  18. eva2000

    eva2000 Administrator Staff Member

    58,908
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    9:16 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Just remember your install log is public so all sensitive passwords have been exposed. Probably good idea to do a fresh install one more time and not reveal install log publicly this time :)
     
  19. drabhaydaga

    drabhaydaga New Member

    28
    3
    3
    Nov 24, 2018
    Ratings:
    +3
    Local Time:
    4:46 PM
    Thnkx for such amazing gr8 support
    Finished will new fresh install infact imported mysql file of size of almost 600 mb without any issues
    Just need to ask will 4 gb ram server will be enough for daily 300 to 500 hits if i use redis cache and cloudflare and monthly approx 40,000 hits ??
     
  20. eva2000

    eva2000 Administrator Staff Member

    58,908
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    9:16 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Glad to hear :)

    depends on the server hardware specs too i.e. cpu model and disk but DigitalOcean 2GB VPS can handle centmin mod 123.09beta01's wordpress installed site with redis nginx level cache quite well blitz.io benched at 302 million hits/day for 10,000 concurrent users PHP 7.0.1 + Redis Cache for Wordpress of course this is with extra tuning at kernel/tcp and nginx but your standard centmin mod install can handle much more than your requirements without cloudflare. So with cloudflare in front can handle much more