The document root directory under which the current script is executing, as defined in the server's configuration file.
Questions tagged [document-root]
341 questions
-1
votes
1 answer
plesk use specific directory as root for website
I got used to have all my websites in /var/www so no matter which domain, each subdomain has its document root located in /var/www/
Plesk is trying to force me to use /var/www/vhosts/domain/ and I did not find a way to tell Plesk to just put…

chris137
- 189
- 1
- 11
-1
votes
2 answers
set root (~) for web site in visual studio 2015
so this is driving me crazy...
I'm working on a website in Visual Studio 2015 (so from the start page: File>New>Web Site... NOT New Project>Web>ASP.NET Web Application) and things are going well when I use VS as the debugger/localshost. Now, being…

JoeEg
- 1
- 3
-1
votes
1 answer
GoogleMapAPI:createMarkerIcon: Error reading image
I am getting the error GoogleMapAPI:createMarkerIcon: Error reading image /path/to/my/image.php when trying to load a map on my website. This only happens on my staging and live systems. Everything works fine on my dev machine. The files are…

armin
- 353
- 1
- 3
- 8
-1
votes
1 answer
PHP: Change document root according to domain name
Hi I would like to point few domains to one of my server which contains few simple wordpress sample sites. I want to show website according to domain name. Is there any way that I can change the document root using PHP? I managed to use the below…

010 Pixel
- 195
- 3
- 14
-1
votes
1 answer
How to Set and Access Multiple Document Root(Directory) in Apache (Wamp Server)
I tried to add ;
ServerName localhost
DocumentRoot "d:\www2\" --> tried d:\www2\
Options Includes Indexes FollowSymLinks
Order allow,deny
Allow from all
Directoryindex index.php…

user60783
- 78
- 3
- 12
-2
votes
1 answer
How to rewrite for existing rewrite path?
I have this code in my .htaccess file that redirects users who go to www.example.com/inventory/anySKUnumber:
RewriteEngine On
# Change URL to .../inventory/$row[number]
RewriteRule ^Inventory/([^/]*)$…

A-Z
- 11
- 6
-2
votes
1 answer
How do I install my github project to the root directory with composer?
I'm making a request handler for php, which will route requests to specific files on the server. I have a .htaccess file that routes every request to DOCUMENT_ROOT/Server/handleRequest.php, which then handles everything else from there. To make this…

Reed
- 14,703
- 8
- 66
- 110
-2
votes
1 answer
File Referencing in PHP
If i have a file at mysite.com/pages/page1.php and a file header.php, which is in the home directory (mysite.com/header.php), what's the way to include header.php?
I tried include($_SERVER['DOCUMENT_ROOT'] . "/header.php"); or "../header.php");
That…

ioan
- 295
- 2
- 7
- 23
-2
votes
2 answers
Wordpress - allow files in site root to be accessed
I have a wordress site but I have a simple page which is not part of the wordpress project
http://sitetest.com/mypage.php
How can I make wordpress ignore this file and allow it to be shown

LeBlaireau
- 17,133
- 33
- 112
- 192
-2
votes
2 answers
Define web root dir - consant works on include but not redirect
I'm trying to create a constant which defines my web root dir, which I can use for constructing paths for requires, header redirects, images, etc.
I need the constant to work when used in files in the root folder and sub folders. I know I could…

James
- 4,644
- 5
- 37
- 48
-3
votes
1 answer
How to access three Web products via Apache Web server using single IP and one port
We would appreciate any vectors to solve the following issue with accessing our Web products via URLs. We would like to access three products through port 80 on our hosted server that has one public IP. They will be accessed at different points of…

Susheel Jalali
- 1
- 1