Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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: It's a default installation: no plugins, no themes)

(Note 2: 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)

share|improve this question
    
Is there anything else running on port 80? Might also be worth checking the firewall. –  webnoob Jan 24 '13 at 18:43
    
no firewall (vbox container, local test server), nothing else on 80, 443 or 3306. Also drupal works fine, so I have no idea where the issue can be... –  elcodedocle Jan 24 '13 at 18:51
    
Wordpress connecting to a MySQL instance? Is port access to that Ok? –  webnoob Jan 24 '13 at 19:01
    
Yes. Wordpress is written in PHP and stores data in a MySQL database specified during the installation process, which means it uses one of the three PHP MySQL APIs, which means it connects to port 3306 (or whatever port the MySQL server is). BTW I don't know of any other way to access to a MySQL server than socket access (MySQL daemon IP:port through a MySQL client/API), so I don't know what you mean... –  elcodedocle Jan 24 '13 at 19:19
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.