Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

“DOCUMENT_ROOT”


katman1971

Recommended Posts

Hi

 

I am trying to find out what my DOCUMENT_ROOT is. The format should be something like /home/content/user/public_html.

I looked in the admin area of my site and went to Tools > Server Info. I scrolled down to Environment thinking it would be there but I don't see it.

Anyone know the best way to find out my DOCUMENT_ROOT is? Thanks.

Link to comment
Share on other sites

One way which is easy is to log in using ftp and look at the path.... like you said, it will most likely be something like: /home/content/user/public_html

Link to comment
Share on other sites

It is listed in the Apache Environment section in your store Administration -> Tools -> Server Info.

 

I dont see Apache Environment but I do have and Environment Section:

Is this my DOCUMENT_ROOT?: /var/chroot/home/content/19/4966619/html

 

Environment

Variable Value

TMPDIR /var/chroot/home/content/19/4966619

PHPRC /var/chroot/home/content/19/4966619/html

TEMP /var/chroot/home/content/19/4966619

PHP_FCGI_CHILDREN 0

PATH /usr/local/bin:/usr/bin:/bin

PWD /web/cgi-bin

SHLVL 0

RAILS_ENV production

SPI TRUE

TMP /var/chroot/home/content/19/4966619

PHP_FCGI_MAX_REQUESTS 100000

Link to comment
Share on other sites

Under Variable should be DOCUMENT_ROOT. The value is your document root setting.

 

If you don't see it there then put the below into a php file and access it. It will give you your document root.

<?php
 echo '<b>Document Root</b> ' . $_SERVER['DOCUMENT_ROOT'];
?>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...