Get the most out of your Centmin Mod LEMP stack
Become a Member

Wordpress Site won't load on iphone

Discussion in 'Install & Upgrades or Pre-Install Questions' started by duriangray, Dec 3, 2015.

Tags:
  1. duriangray

    duriangray New Member

    6
    1
    3
    Dec 1, 2015
    Berkeley
    Ratings:
    +1
    Local Time:
    7:37 PM
    Hey I recently installed centminmod and used option 22 to install nginx and wordpress.
    Followed the instructions to set it up. Loads fine on desktop, but when I am using my iphone, it either takes over 30 secs to load or doesn't load at all. What is the issue here?

     
  2. eva2000

    eva2000 Administrator Staff Member

    55,189
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    12:37 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  3. duriangray

    duriangray New Member

    6
    1
    3
    Dec 1, 2015
    Berkeley
    Ratings:
    +1
    Local Time:
    7:37 PM
    Hi - Thanks for the fast reply.
    I ran it with the webpage test. here are the results: WebPagetest Test Result - Dulles : com-abcd.xyz - 12/02/15 19:57:38
    Not sure why the Time to First Byte is so long? hosting on a $10 linode and using Route 53 for DNS.
    I think it is the default wordpress settings?

    although i am not sure why the mobile version is way way longer than the desktop version.
     
  4. eva2000

    eva2000 Administrator Staff Member

    55,189
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    12:37 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  5. duriangray

    duriangray New Member

    6
    1
    3
    Dec 1, 2015
    Berkeley
    Ratings:
    +1
    Local Time:
    7:37 PM
    That shouldn't be the case. The issue is much more serve.
    The server is not responding when trying to access via mobile phone.
    If you try to visit my homepage via iphone or android: removed
    It doesn't load 75% of the time which i find strange.
     
    Last edited: Dec 4, 2015
  6. duriangray

    duriangray New Member

    6
    1
    3
    Dec 1, 2015
    Berkeley
    Ratings:
    +1
    Local Time:
    7:37 PM
    I think it is something to do with nginx. The way you set up the conf files is a bit difficult to understand.... My guess is that something to do with blocking mobile phones? On desktop it is completely fine.

    Try a brand new install with centmin and option 22. And then try visiting the site on your iphone. It won't load half of the time.
     
  7. eva2000

    eva2000 Administrator Staff Member

    55,189
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    12:37 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  8. eva2000

    eva2000 Administrator Staff Member

    55,189
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    12:37 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    When you create a new nginx vhost domain via centmin.sh menu option 2 or 22 or /usr/bin/nv cli command line, you will create the Nginx vhost files and directories. You will get an outputted the path location where it will create the domain name's vhost conf file named newdomain.com.conf (and newdomain.com.ssl.conf if you selected yes to self signed SSL)
    • Nginx vhost conf path will be at /usr/local/nginx/conf/conf.d/newdomain.com.conf
    • Nginx HTTP/2 SSL vhost conf path will be at /usr/local/nginx/conf/conf.d/newdomain.com.ssl.conf
    • Nginx Self-Signed SSL Certificate Directory at /usr/local/nginx/conf/ssl/newdomain.com
    • Vhost public web root will be at /home/nginx/domains/newdomain.com/public
    • Vhost log directory will be at /home/nginx/domains/newdomain.com/log
    Please post the contents of /usr/local/nginx/conf/conf.d/newdomain.com.conf and if applicable /usr/local/nginx/conf/conf.d/newdomain.com.ssl.conf wrapped in CODE tags (outlined at How to use forum BBCODE code tags | Centmin Mod Community
     
  9. eva2000

    eva2000 Administrator Staff Member

    55,189
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    12:37 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Ah your background image is 1.2MB in size ! desktop speeds will be fast, but mobile 3G will be slow too - 3G mobile took 15+ seconds to download just the background image !

    Generally i don't recommend total page size for everything to be larger than 400KB to 1000KB.

    3G 15.34s

    upload_2015-12-3_7-38-37.png

    4G 3.04s

    upload_2015-12-3_7-41-11.png
     
    Last edited: Dec 3, 2015
  10. duriangray

    duriangray New Member

    6
    1
    3
    Dec 1, 2015
    Berkeley
    Ratings:
    +1
    Local Time:
    7:37 PM
    Hey man

    Thanks a lot for replying. Yea I realized the background image was a little large. I optimized it but still had the issue of server not responding issues.

    What fixed it I believe was rebooting my server... lol
    Not sure why the 1 GB RAM linode was having so many problems.
    Also removed some of the plugins and tweaked the nginx conf files to increase the limits.

    Thanks again eva2000!
     
  11. eva2000

    eva2000 Administrator Staff Member

    55,189
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    12:37 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Good to hear :)