JordiB wrote
I've tried max_execution_time putting it to 6 minutes and the problem stays.
I've noticed the problem is in my account: If I try to access dokuwiki with another account, or just anonymous access, the access is correct and under 1 second.
the question is, why is dokuwiki accessing another web with HTTPClient? (I suppose that's what it's doing)
Seems to be a firewall problem. DokuWiki tries to look for updates when you're logged in as admin. Usually it should timeout the HTTP connection if it can't connect to the outside. Try disabling the update check:
http://www.dokuwiki.org/config:updatecheck