• It took me three weeks and I am trying to get it up and running. Yesterday it’s finally running smoothly. Now, I tried to create a custom page template and it threw WordPress into a slow crawl. I now have to face that I have to abandon WordPress for good because no one was able to help me.

    https://csdr-cde.ca.gov

    Why is it slow? I installed LiteSpeed server and only has one mysql db for that WordPress blog.

Viewing 13 replies - 16 through 28 (of 28 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    Doh. Typo. I corrected the above code, try it again.

    Also, your explanation doesn’t make much sense as far as it goes. You can’t really block outgoing http requests like that, or at least you can’t do it easily, and anyway there’s no reason to do that as it’s not any more secure.

    However, you say that you can’t ping google.com which is more interesting. It suggests to me that the server doesn’t have DNS setup. If this is a Linux box, run “type /etc/resolv.conf” on it, and see if any nameservers are listed. If not, then they may just need to be configured.

    Thread Starter fuocorav

    (@fuocorav)

    I got the message:

    Warning: fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /opt/lsws/DEFAULT/html/test.php on line 2

    Warning: fsockopen() [function.fsockopen]: unable to connect to csdr-cde.ca.gov:80 (Unknown error) in /opt/lsws/DEFAULT/html/test.php on line 2
    Error: (172270024)

    I did run /etc/resolv.conf but permission denied. I’ll ask a friend to help me out on getting permission on /etc/resolv.conf

    Thread Starter fuocorav

    (@fuocorav)

    [root@localhost etc]# cat /etc/resolv.conf

    search localdomain
    nameserver 10.7.1.3

    Thread Starter fuocorav

    (@fuocorav)

    One more thing: I have no control over how the switcher is set up. I have to wait until next week to discuss it with the IT guy who may block outgoing port 80 traffic. If it’s not an issue, fine.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    One more thing: I have no control over how the switcher is set up. I have to wait until next week to discuss it with the IT guy who may block outgoing port 80 traffic. If it’s not an issue, fine.

    It’s not a port 80 block. Your own error proves that:

    Warning: fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /opt/lsws/DEFAULT/html/test.php on line 2

    That means it’s a DNS failure. It could not look up “csdr-cde.ca.gov” in your DNS server. This explains why wp-cron fails normally. It’s trying to make a connection to itself to start wp-cron, but it can’t find its own address, so it fails repeatedly, causing the slowdown.

    You need your IT guy to check the DNS settings on that box and make sure they are correct. WordPress requires servers that are capable of looking up their own addresses.

    Thread Starter fuocorav

    (@fuocorav)

    Otto, I see. Thanks! I’ll discuss it with him. Hopefully, he can fix it.

    Thread Starter fuocorav

    (@fuocorav)

    Hi,

    We are still figuring it out. DNS is in DMZ zone and so it’s hard to get the web server to communicate with the DNS server.

    i wonder if I use IP address in the WP-options for WP address and Blog address will be using the domain name. Will it resolve the issue?

    I do value your inputs and help…that’s what makes WP community so great!

    Hi,

    I have the same problem on my site where I’m the only one to work on and surf on for now (password protected site) until it’s completely ready.

    The big problem is that my homepage needs 20 seconds to display!

    I’ve done what Otto42 told and yes I can call wp-cron.php in my browser.

    I also have tried to desactivate plugins one by one but it was the same.

    I hope I could fix this problem because this is the last thing I have to fix to launch my site ??

    Hi,

    i also have this problem, but there is no reaction on calling wt-cron.php and i’ve checked also (with that php-code Otto42 posted) DNS. Result:

    Success sending the GET.

    executing wp_cron() takes 20 seconds – I have added a return; as first line of the function and the site is fast as usual. But I dont think i have diabled a “dummy”-function – So i need help to locate the problem.

    This behavier just started a few days ago, without a known reason.

    Thanks for help.

    Chrif

    My friend can not schedule posts in v 2.6.1 and I am assuming that this is an issue between wp-cron.php and the server. I made a file with the code mentioned above with the required changes

    <?php
    $argyle = fsockopen( 'example.com', 80, $errno, $errstr, 0.01 );
    if ( $argyle ) {
    fputs( $argyle, "GET /wp-cron.php HTTP/1.0\r\n"
    . "Host: example.com\r\n\r\n" );
    echo "Success sending the GET.\n";
    } else {
    echo "Error: $errstr ($errno)\n";
    }
    ?>

    and tested this on her host and on mine - I am running the same version of WordPress. On her host I got Error 110 Connection Timeout. On mine where I can schedule posts I got 'Success Sending the Get'.

    What I want to know is what is the best way to explain this to the host so they don't automatically say it's a wordpress problem?

    Thanks

    I ran the script and received:
    Error: Connection timed out (110)

    My theory is that my wp-cron jobs aren’t running, even though I have sufficient traffic to trigger them. (~1400 visits/day).

    My symptoms are: The stats module in bStats v4 don’t stay current, pings do not work, and future-publishing of stories does not work.

    I also ran the script and also got:

    Error: Connection timed out (110)

    My site is very slow. I tried to run the wp-cron.php and it helped, but as others pointed out it can take like 20 to 40 seconds to post a text! This is crazy.

    Anyone can help?

    Thanks!

    I have two frustrating problems with WordPress.

    1) my first post is displayed in its entirety on the opening page and when I click the archives, categories or recent entries I get the first paragraph of the post with no way to read the rest.

    2) it is running impossibly slow (I’ll be reading the other messages to see if any of the replies help)

    Thank-you,
    Kirt

Viewing 13 replies - 16 through 28 (of 28 total)
  • The topic ‘Slow WordPress – it drove me crazy!’ is closed to new replies.