Apache root path (XAMPP)

I need to configure the path to the root of the site in the config.php file, for example:

/htdocs/mysite /xampp/localhost/mysite /localhost/htdocs/mysite 

It does not seem to matter that I try to not load any files on the path ("the stream could not be opened: there is no such file or directory in ...").

Do I need to install something in the httpd.conf file for this?

+8
apache xampp wamp
source share
1 answer

I have my settings as follows. In xampp / apache / conf / http.conf:

 DocumentRoot "C:/xampp/htdocs/drupal/" 

You can set yourself something like:

 DocumentRoot "C:/xampp/htdocs/mysite/" 

If I do, test.php in my drupal folder by running getcwd (), return

 C:\xampp\htdocs\drupal 
+8
source share

All Articles