Welcome to Centmin Mod Community
Register Now

Wordpress site broken on CMM

Discussion in 'Blogs & CMS usage' started by jdan1457, Jan 17, 2017.

  1. jdan1457

    jdan1457 New Member

    14
    2
    3
    Dec 20, 2016
    Ratings:
    +2
    Local Time:
    10:31 AM
    1.11.13
    mariadb10
    Hi, I love CMM and I switched one of my sites to a server running CMM. But now the site is broken. The problem seems to be related to just one theme, I've tested other themes and they are working normally. The theme was working perfect on the old setup(EE) but since the switch, its been a headache to figure out. I've tried it with php5.6 and php7.0, neither work. Any suggestions?
     
  2. RB1

    RB1 Active Member

    266
    70
    28
    Nov 11, 2016
    California
    Ratings:
    +117
    Local Time:
    7:31 AM
    Nginx 1.13.x
    MariaDB 10.1.x
    What specific problems with the theme are you having?
     
  3. jdan1457

    jdan1457 New Member

    14
    2
    3
    Dec 20, 2016
    Ratings:
    +2
    Local Time:
    10:31 AM
    1.11.13
    mariadb10
    I don't know what its actually called, but the theme isn't displaying properly. Its all jumbled and nothing is where it should be. The page is missing lots of stuff. I know my description doesn't help much, I just don't know the proper terms lol
     
  4. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,573
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,755
    Local Time:
    12:31 AM
    Nginx 1.13.x
    MariaDB 5.5
    1. How did you install wordpress ?
    2. What wordpress plugin does the url or php belong to ?
    3. Which Centmin Mod version 123.08stable or 123.09beta01 ?
    4. Was it via centmin.sh menu option 22 auto installer Wordpress Nginx Auto Installer (WP Super Cache) ? If so the default wpsecure conf file at /usr/local/nginx/conf/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.
     
  5. JarylW

    JarylW Active Member

    213
    39
    28
    Jun 19, 2014
    Singapore
    Ratings:
    +99
    Local Time:
    10:31 PM
    Inspect element on Google chrome. See if there are any 404 errors on stylesheet and JavaScript. This would suggest appropriate editing as @eva2000 mentioned on file/directory denies
     
    • Informative Informative x 1
  6. jdan1457

    jdan1457 New Member

    14
    2
    3
    Dec 20, 2016
    Ratings:
    +2
    Local Time:
    10:31 AM
    1.11.13
    mariadb10
    Thanks guys I will work on these and see if I can sort it out.