Welcome to Centmin Mod Community
Become a Member

Problems on test server with gateway

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by omjo, Oct 11, 2014.

  1. omjo

    omjo New Member

    14
    1
    3
    Oct 11, 2014
    Ratings:
    +1
    Local Time:
    7:55 PM
    Hi all

    I have a vps 512ram from DO and install centos 6.5 and run centminmod and setup run ok run very well
    a small wordpress website for test.

    the problem is i setup vhost for another wordpress site that is a little big with a db with 80mb ... run well the front i think becouse i have cache enable etc... the problem is on wp-admin without any one using only me is a little slow and save a post some times give error 502 gateway...

    my question: is any params i que change to avoid this error ? mybe 1g ram droplet improve ?


    Thks
     
  2. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    3:55 AM
    Mainline
    10.2
    If you have a lot of post, then it's normal for a 512mb ram.
     
  3. eva2000

    eva2000 Administrator Staff Member

    54,107
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,738
    Local Time:
    5:55 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    @omjo the troubleshooting initial install guide at How to troubleshoot Centmin Mod initial install issues | Centmin Mod Community has links to show you were you nginx and php-fpm error logs are located, you'd want to dig into those for clues as to why you're getting 502 gateway which usually nginx way of saying I am giving up and I'm going to timeout waiting for the backend response which could be from PHP-FPM server which is slow or chewing on an exceptionally long running PHP process which maybe in turn waiting on mysql response (mysql slow queries or high mysql load)

    2 wordpress sites should be fine for low traffic usage on 512-1GB VPS. You need to find out why Nginx timed out via the error logs.

    Centmin Mod is provided as is, so troubleshooting would be left to you and/or help from other members here
     
  4. omjo

    omjo New Member

    14
    1
    3
    Oct 11, 2014
    Ratings:
    +1
    Local Time:
    7:55 PM
    Thanks all answers

    Im now change my droplet to 1g Ram...

    eva 2000 i was think that error can be from some timeout php mysql and ajust timeout should fix, but i dont find where config ... i will see the logs
     
  5. eva2000

    eva2000 Administrator Staff Member

    54,107
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,738
    Local Time:
    5:55 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    FAQ 16 entry at Centmin Mod FAQ - Menu based Nginx installer shows all the command short cuts to various config files. For PHP-FPM and Nginx it's also listed at PHP PHP-FPM - Centmin Mod - Menu based Nginx installer for CentOS servers

    phpinc shortcut is for PHP-FPM settings for timeouts while fpmconf is shortcut for PHP-FPM server settings
     
  6. omjo

    omjo New Member

    14
    1
    3
    Oct 11, 2014
    Ratings:
    +1
    Local Time:
    7:55 PM
    After upgrade the error 502 on wordpress admin as gone ... i have put online i is runnig fine ....

    Now im looking something to monitor ... i have see a post with that... let see i can find again..

    just one more thing after copy everything media library miss alot of images and they are on folder , the most strange is :
    give error 404
    http://*****.com/wp-content/uploads/2014/06/test.jpg
    but if i had
    http://*****.com/wp-content/uploads/2014/06/06/test.jpg
    give me correct image
    this problem is only in some images not all....
    this folder dont exist wp-content/uploads/2014/06/06/
    but exist is this wp-content/uploads/2014/06

    strange any one can point ? rewrite rule ?
     
  7. eva2000

    eva2000 Administrator Staff Member

    54,107
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,738
    Local Time:
    5:55 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    you migrating an existing wordpress database ? not sure if rewrite urls would cause this if you have same configuration for wordpress settings via a database import
     
  8. omjo

    omjo New Member

    14
    1
    3
    Oct 11, 2014
    Ratings:
    +1
    Local Time:
    7:55 PM
    Hi

    I have fix and was strange becouse i have a first folder public and rename to public_
    then i upload all again .... and after that problem apear... so i delete public_ and that fix .... wired :s
     
  9. eva2000

    eva2000 Administrator Staff Member

    54,107
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,738
    Local Time:
    5:55 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    sounds like you initially uploaded to wrong folders for public web root at /public :)
     
  10. omjo

    omjo New Member

    14
    1
    3
    Oct 11, 2014
    Ratings:
    +1
    Local Time:
    7:55 PM
    heheh i dont think

    i think was something on server ... upload folder have a lot images 5g and more then 50.000 images becouse retina plugin 2x.... but now all images are there after delete first folder i create
     
  11. eva2000

    eva2000 Administrator Staff Member

    54,107
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,738
    Local Time:
    5:55 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    strange then :)