Error after changing htdocs

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Error after changing htdocs

Postby phantomdentist » 31. March 2010 20:41

I changed my htdoc dir from the default to

Code: Select all
D:\- Work In Progress\Websites


by altering my apache httpd.conf file as follows

Code: Select all
<Directory "D:\- Work In Progress\Websites">
DocumentRoot "D:\- Work In Progress\Websites"


I moved my xampp folder and index.php and index.html from within htdocs to the new location

When i go to http://localhost I get sent to http://localhost/xampp/splash.php as i should be and I see the splash screen

Once I select a language i get the following error

Code: Select all
Warning: file_put_contents(../../install/xampp_language.txt) [function.file-put-contents]: failed to open stream: No such file or directory in D:\- Work In Progress\Websites\xampp\lang.php on line 2

Warning: Cannot modify header information - headers already sent by (output started at D:\- Work In Progress\Websites\xampp\lang.php:2) in D:\- Work In Progress\Websites\xampp\lang.php on line 10


Any ideas?

Thanks
phantomdentist
 
Posts: 1
Joined: 31. March 2010 20:32

Re: Error after changing htdocs

Postby Narrowboyy » 04. April 2010 10:44

phantomdentist wrote:Once I select a language i get the following error

Code: Select all
Warning: file_put_contents(../../install/xampp_language.txt) [function.file-put-contents]: failed to open stream: No such file or directory in D:\- Work In Progress\Websites\xampp\lang.php on line 2

Warning: Cannot modify header information - headers already sent by (output started at D:\- Work In Progress\Websites\xampp\lang.php:2) in D:\- Work In Progress\Websites\xampp\lang.php on line 10


Any ideas?

Thanks


You may have to change this line in the lang.php file outlined in the error message:
Code: Select all
file_put_contents('../../install/xampp_language.txt', basename($_SERVER['QUERY_STRING']));


...which is a relative path to the original htdocs location so try and change it to:

Code: Select all
file_put_contents('C:/xampp/install/xampp_language.txt', basename($_SERVER['QUERY_STRING']));
Use your text editor to make the changes, then save the file and try again to select a language.
Narrowboyy
 
Posts: 64
Joined: 16. February 2009 02:56


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 56 guests