katman1971 Posted June 1, 2010 Share Posted June 1, 2010 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 More sharing options...
Guest Posted June 1, 2010 Share Posted June 1, 2010 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 More sharing options...
♥mdtaylorlrim Posted June 1, 2010 Share Posted June 1, 2010 It is listed in the Apache Environment section in your store Administration -> Tools -> Server Info. Community Bootstrap Edition, Edge Avoid the most asked question. See How to Secure My Site and How do I...? Link to comment Share on other sites More sharing options...
katman1971 Posted June 1, 2010 Author Share Posted June 1, 2010 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 More sharing options...
Guest Posted June 1, 2010 Share Posted June 1, 2010 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.