I have just installed wordpress (last version) on /var/www/wordpress on a default ubuntu server 12.04 LAMP installation.
Every time I want to load something on this wordpress (even the login screen) the browser says "waiting for 127.0.0.1" or "waiting for localhost" for at least 10 seconds! (Then the page loads very fast)
I have been looking for an answer online for almost 3 hours, also tried to reinstall twice, eliminated IPV6 entries from hosts.conf, changed database host on wp-config.php from localhost to 127.0.0.1 and checked apache2 default configuration, enabling modrewrite and reviewing configuration files for default and default-ssl sites.
I'm about to give up... Why does it go so slow? I have also a drupal install on /var/www/drupal and it doesn't have this delay!
(Note the ubuntu install is in an Oracle Virtual Box with 1 core and 1GB of RAM assigned, and the delay is the same if I load the page from the host browser using the virtual interface ip)
[EDIT] After asigning 4 cores to the virtual machine instead of just one, the delay goes down to only 1 second. The CPU isn't busy at all during this time, though, which makes it even more mysterious...