Page 1 of 1

Error after changing htdocs

PostPosted: 31. March 2010 20:41
by phantomdentist
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

Re: Error after changing htdocs

PostPosted: 04. April 2010 10:44
by Narrowboyy
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.