Join the community today
Register Now

Wordpress wordpress pages showing php code instead of content.

Discussion in 'Blogs & CMS usage' started by harryneopotter, Jan 29, 2016.

Tags:
  1. eva2000

    eva2000 Administrator Staff Member

    55,903
    12,281
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,868
    Local Time:
    12:03 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    what do you get when you restart php-fpm ?


    Code:
    service php-fpm restart
    and from
    Code:
    php -v
    Code:
    php -m
     
  2. harryneopotter

    harryneopotter Member

    70
    3
    8
    Aug 16, 2015
    Ratings:
    +8
    Local Time:
    7:33 AM
    Nginx 1.9.3
    MariaDB 10.0
    Code:
    # service php-fpm restart
    Gracefully shutting down php-fpm . done
    Starting php-fpm  done
    
    Code:
    # php -v
    PHP 5.6.17 (cli) (built: Jan 29 2016 14:33:20)
    Copyright (c) 1997-2015 The PHP Group
    Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
        with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies
    
    Code:
    # php -m
    [PHP Modules]
    bcmath
    bz2
    calendar
    Core
    ctype
    curl
    date
    dom
    enchant
    ereg
    exif
    filter
    ftp
    gd
    geoip
    gettext
    gmp
    hash
    iconv
    igbinary
    imagick
    imap
    intl
    json
    libxml
    mbstring
    mcrypt
    memcache
    memcached
    mhash
    mongo
    mysql
    mysqli
    mysqlnd
    openssl
    pcntl
    pcre
    PDO
    pdo_mysql
    pdo_sqlite
    Phar
    posix
    pspell
    readline
    redis
    Reflection
    session
    shmop
    SimpleXML
    snmp
    soap
    sockets
    SPL
    sqlite3
    standard
    sysvmsg
    sysvsem
    sysvshm
    tidy
    tokenizer
    xml
    xmlreader
    xmlrpc
    xmlwriter
    xsl
    Zend OPcache
    zip
    zlib
    
    [Zend Modules]
    Zend OPcache
    
     
  3. eva2000

    eva2000 Administrator Staff Member

    55,903
    12,281
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,868
    Local Time:
    12:03 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    well am at a loss as to why but you can do things to verify and resolve this

    1. try installing a 2nd centmin.sh menu option 22 test site i.e. on dev.domain.com with fresh wp install and see if that works. This will verify if it's specific wp + wp plugin config issue with your live domain.com wp install if dev.domain.com works or not.

    2. if dev.domain.com works, you can try disabling wp plugins on live domain.com install and see if it's wp plugin related and then you can backup domain.com live wp install database and files and then remove the domain.com instance outlined at Nginx Vhost & NSD DNS Setup - CentminMod.com LEMP Nginx web stack for CentOS (making sure you do not backup to /home/nginx/domains/domain.com directories as that's what is getting deleted) and restore backup to a newly centmin.sh menu option 22 domain.com install
     
  4. harryneopotter

    harryneopotter Member

    70
    3
    8
    Aug 16, 2015
    Ratings:
    +8
    Local Time:
    7:33 AM
    Nginx 1.9.3
    MariaDB 10.0
    wokay..will do and let you know the results
     
  5. eva2000

    eva2000 Administrator Staff Member

    55,903
    12,281
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,868
    Local Time:
    12:03 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    you can also go into /home/nginx/domains/domain.com/public and run this command to get your wp plugin list
    Code:
    cd /home/nginx/domains/domain.com/public
    wp plugin status --allow-root
     
  6. harryneopotter

    harryneopotter Member

    70
    3
    8
    Aug 16, 2015
    Ratings:
    +8
    Local Time:
    7:33 AM
    Nginx 1.9.3
    MariaDB 10.0
    It was a stupid plugin .... damn it. Should have checked the plugins first. Lesson learned.

    Really sorry for all the trouble. My bad.
     
  7. eva2000

    eva2000 Administrator Staff Member

    55,903
    12,281
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,868
    Local Time:
    12:03 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    which plugin ?
     
  8. harryneopotter

    harryneopotter Member

    70
    3
    8
    Aug 16, 2015
    Ratings:
    +8
    Local Time:
    7:33 AM
    Nginx 1.9.3
    MariaDB 10.0
    tapatalk for wordpress.
     
  9. harryneopotter

    harryneopotter Member

    70
    3
    8
    Aug 16, 2015
    Ratings:
    +8
    Local Time:
    7:33 AM
    Nginx 1.9.3
    MariaDB 10.0
    ok..for some reason... traffic dropped to a halt just after this. (from 600-800 UVs a day to 30-40 UVs a day). Any pointers ?
     
  10. eva2000

    eva2000 Administrator Staff Member

    55,903
    12,281
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,868
    Local Time:
    12:03 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    what you dropped ages ago or just today ? you can browse your blog and pages/posts ?

    you're on your own for troubleshooting this as it could be for many reasons beyond server config as to why traffic drops
     
  11. harryneopotter

    harryneopotter Member

    70
    3
    8
    Aug 16, 2015
    Ratings:
    +8
    Local Time:
    7:33 AM
    Nginx 1.9.3
    MariaDB 10.0
    This thread was made on 29th Jan .. that is when the drop happened. And yes, everything is browseable.
     
  12. eva2000

    eva2000 Administrator Staff Member

    55,903
    12,281
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,868
    Local Time:
    12:03 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    could be changes in search ranking, search bots changes etc you need to check your google analytics and google webmaster tools for site property if you have registered site in google webmaster tools etc

    dns updates to domain too, if you had long TTL for DNS records, some folks might be trying to hit old A record IP for your domain still
     
  13. harryneopotter

    harryneopotter Member

    70
    3
    8
    Aug 16, 2015
    Ratings:
    +8
    Local Time:
    7:33 AM
    Nginx 1.9.3
    MariaDB 10.0
    no..i got it wrong the first time. Here is what happened :

    Moved the site from shared hosting to CMM.
    Nothing happened for two weeks.. traffic same, no issues.
    on 29th (two weeks after the migration), this issue happened and traffic dropped.

    So should not be a cache or CMM issue. But any ideas ?

    Checking WMT now.
     
  14. eva2000

    eva2000 Administrator Staff Member

    55,903
    12,281
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,868
    Local Time:
    12:03 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    can be changes due to google search ranking algorithms too who knows, that's why you need to check your google analytics and google webmaster tools for clues