where is DocumentRoot ?


 
Thread Tools Search this Thread
Top Forums Web Development where is DocumentRoot ?
# 1  
Old 01-22-2010
where is DocumentRoot ?

hi,

I would like to run a php file on my server (ubuntu) but there is not DocumentRoot line in apache2.conf and httpd.conf is empty. Should I add the line ?

How do I know where to upload my files ?

(I've installed phpmyadmin using apt-get, and it works.. I guess it is running from usr/share, but if I upload the file into that directory... it doesn't work.

thanks
# 2  
Old 01-22-2010
Check in /etc/apache2/sites-enabled, there should be a file 000-default, wherein a DocumentRoot is defined. The default is /var/www I think.
# 3  
Old 01-22-2010
thanks a lot
Login or Register to Ask a Question

Previous Thread | Next Thread

1 More Discussions You Might Find Interesting

1. Red Hat

Httpd service not starting... Error "Documentroot must be a directory"

I am working with CentOS 6.5. Indeed the document root /var/www/html is a directory and it is a mount point of one file system (not NFS) I observed, if I unmount that file system, I could able to start httpd. Is it restricted in CentOS 6.X that the Documentroot can not be a mount point? ... (5 Replies)
Discussion started by: atanubanerji
5 Replies
Login or Register to Ask a Question