Web sites loading slow on Apache-MySql

Discussion in 'Web Server' started by gezginrocker, Aug 31, 2012.

  1. gezginrocker

    gezginrocker New Member

    Joined:
    Aug 31, 2012
    Messages:
    1
    Likes Received:
    0
    Hello,


    I'm running virtual Scientific Linux on Windows 2008 Hyper-V.

    My PHP web sites are taking a long time to load. DNS server is on Windows 2008.

    Here is an example slow loading site: serifyenen.com/blog

    What can be the problem?

    Thanks
     
  2. Naba Kumar Das

    Naba Kumar Das New Member

    Joined:
    Nov 3, 2014
    Messages:
    4
    Likes Received:
    0
    You can use "mysql replication mariadb" and "apache replication lighttpd".

    Thanks
     
  3. ryanvade

    ryanvade Administrator Staff Member Staff Writer

    Joined:
    Aug 4, 2012
    Messages:
    1,830
    Likes Received:
    635
    Are you running the website or are you trying to browse it? I can't even find that page.
     
  4. Naba Kumar Das

    Naba Kumar Das New Member

    Joined:
    Nov 3, 2014
    Messages:
    4
    Likes Received:
    0
    Also I can't find the page but main site is running.
     
  5. Kevin Milan

    Kevin Milan New Member

    Joined:
    Nov 28, 2014
    Messages:
    23
    Likes Received:
    3
    After doing some research I tried those, but both didn't help.

    For MySQL, I tried adding skip-name-resolve.

    For PHP, I tried changing localhost to 127.0.0.1 at PHP MySQL settings.
     
  6. Larry

    Larry New Member

    Joined:
    Nov 18, 2014
    Messages:
    16
    Likes Received:
    6
    There're a whole lot of things you can do to reduce load times. I don't feel you've provided enough information for us to help though.

    1. Try using public resolvers. 8.8.8.8 and 8.8.4.4 for example, as provided by Google.
    2. Try to use mysql tuner and see if you can squeeze more performance out of that.
    3. Reduce the amount of memory per request. Try to bring this number below 32 if possible, or if you're using a bloated Wordpress website, less than 128M would be ideal. If you're using a server with less than 512M, you need an upgrade buddy!
    4. Tweak around your apache start servers and requests per child.

    It's hard to provide user-specific suggestions. Provide more information about your environment, and we can probably help better. :)
     

Share This Page