I installed Xampp 1.8.3 with the installer, and I'm trying to move the htdocs folder from C:\xampp\htdocs to C:\Users\Håvard\htdocs . I made the necessary changes to the httpd.conf file in xampp and Apache starts up without any problems.
I struggled with this problem for several days, I even posted a question about it here earlier. Since then, I learned a bit in search of a solution and I came to the conclusion that this is a problem related to Norwegian writing in my Windows username (and therefore in the user's folder)
When I try to open my PHP project as localhost/project/index.php , I get this message:
Warning: Unknown: could not open the stream: there is no such file or directory in Unknown in line 0
Fatal error: Unknown: opening failed 'C: /Users/Håvard/htdocs/project/index.php' (include_path = '; C: \ xampp \ php \ pear \') in Unknown on line 0
The reason I believe in Norwegian writing is the reason for this message: if I changed DocumentRoot and Directory in httpd.conf to anything other than this folder (for example: C: / Users / Daniel), it works like a charm .
Why am I getting this error message? There is nothing wrong with my index.php, since I tried it with another document ... Why does Howard remember the problem? Is it a Norwegian letter or something else that I forgot?
source share