i'm trying to replace news system on my website with posts from wordpress site. I have main site in (example) /var/www/site and working Wordpress blog on /var/www/site/blog
Tried to do that: http://codex.wordpress.org/Integrating_WordPress_with_Your_Website and neither wp-load nor wp-blog-header are working. I'm getting redirection to wp-install.
Strange thing is that php file put into main site main dir is working properly, but any try to require wp files inside main site structure (on init stage or on displaying page header) are failing.
What i am doing wrong? It's all happening on 3.4.1 WP version.