title: Fatal error: require_once(): Failed opening required
body: <p>I'm trying to run my online site on my local machine. I stumbled upon a problem.</p>
  
  <p>This is my htaccess</p>
  
  <pre><code>AddDefaultCharset UTF-8
  Options -Indexes
  #php_value include_path .:/home/sites/www.example.it/example.it/htdocs/conf/
  
  php_value include_path .:/XAMPP/htdocs/conf/
  
  php_value display_errors on
  php_value upload_max_filesize 20M
  php_value post_max_size 50M
  php_flag magic_quotes_gpc Off
  
  &lt;IfModule mod_rewrite.c&gt;
  Options +FollowSymLinks
  RewriteEngine on
  
  #RewriteBase /
  #RewriteCond %{HTTP_HOST} ^example.it [NC]
  #RewriteRule ^(.*)$ http://www.example.it/ [L,R=301]
  
  &lt;/IfModule&gt;
  
  &lt;IfModule mod_rewrite.c&gt;
     Options +FollowSymLinks
     RewriteEngine on
  
     RewriteCond %{REQUEST_URI} /common.*
     RewriteRule ^common/(.*) resources/media/common/$1
  
     RewriteCond %{REQUEST_URI} /upload/img.*
     RewriteRule ^upload/img/(.*)$ wapp/ir.php?path=$1&amp;%{QUERY_STRING}   
  
     RewriteCond %{REQUEST_URI} /upload.*
     RewriteRule ^upload/(.*) resources/upload/$1
  
     RewriteCond %{REQUEST_URI} !/google.*
     RewriteCond %{REQUEST_URI} !/common.*
     RewriteCond %{REQUEST_URI} !/upload.* 
     RewriteCond %{REQUEST_URI} !/upload/img/.* 
     RewriteCond %{REQUEST_URI} !/wapp/ir.php 
     RewriteRule ^(.*)$ wapp/index.php?url=$1
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>The error I receive:</p>
  
  <p><strong>Warning:</strong> <code>require_once(conf.inc.php): failed to open stream: No such file or directory in C:\XAMPP\htdocs\wapp\index.php on line 2</code></p>
  
  <p><strong>Fatal error:</strong> <code>require_once(): Failed opening required 'conf.inc.php' (include_path='.:/XAMPP/htdocs/conf/') in C:\XAMPP\htdocs\wapp\index.php on line 2</code></p>
  
  <p>How can I solve it? Maybe it deals with the privileges of the xampp user ...</p>
  
  <p><strong>edit:</strong></p>
  
  <p><strong>getcwd() gives me</strong> C:\XAMPP\htdocs\wapp</p>
  
  <p><strong>conf.inc.php is located in:</strong> C:\XAMPP\htdocs\conf\</p>
  
  <p><strong>the require in index.php:</strong> require_once("conf.inc.php");</p>