Forum Moderators: phranque

Message Too Old, No Replies

DocumentRoot to /usr/local/apache/htdocs ($_SERVER['DOCUMENT_ROOT'])

$_SERVER['DOCUMENT_ROOT'] gives /usr/local/apache/htdocs probbly httpd.conf

         

kadhumia flo

10:38 am on Apr 3, 2006 (gmt 0)

10+ Year Member



<? echo $_SERVER['DOCUMENT_ROOT'];?>
http://195.***.152.131/~tescom/testnews.php

Hello
The File above contains the PHP Code above that , and it is currently showing something other than what it should (/home/tescom/public_html is what it should display)

Shall i cut abit of the httpd.conf file and stick it here

all coments appriciated

Regards

[edited by: jdMorgan at 3:16 pm (utc) on April 3, 2006]
[edit reason] Obscured specifics per TOS. [/edit]

Oldiesmann

4:58 pm on Apr 4, 2006 (gmt 0)

10+ Year Member



It's definitely an httpd.conf setting. Open it up in a text editor and look for the DocumentRoot setting.