Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I set up a virtual host on my apache server and after restarting the server, it gives the warning: Starting httpd: Warning: DocumentRoot /www/html/platinum does not exist

ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /www/html/platinum
ServerName www.platinum.com
ErrorLog logs/platinum.com-error_log
CustomLog logs/platinum.com-access_log common

can any one would help me to sort this out

share|improve this question
3  
Well, does /www/html/platinum exist? Does the Apache user have access to it? –  Pekka 웃 Dec 21 '11 at 10:30
    
yes the directory exists and selenix is disabled on my system.system permission is already give to the directory.would u tell me how to set up Apache user access to that . –  Junior Dev Dec 21 '11 at 10:35
2  
What user is Apache running as? What's the output of running "ls -l /www/html/platinum" as that user? –  pgl Dec 21 '11 at 10:40
    
when runs command : ls: cannot access /www/html/platinum: No such file or directory and apache log for user is as follow -D AP_DOC_ROOT="/var/www" -D AP_GID_MIN=100 -D AP_HTTPD_USER="apache" -D AP_LOG_EXEC="/var/log/httpd/suexec.log" -D AP_SAFE_PATH="/usr/local/bin:/usr/bin:/bin" -D AP_UID_MIN=500 -D AP_USERDIR_SUFFIX="public_html" –  Junior Dev Dec 21 '11 at 10:48
    
Your folder does not exist, see first comment. –  luastoned Dec 21 '11 at 10:53
show 3 more comments

migrated from stackoverflow.com Dec 22 '11 at 8:13

This question came from our site for professional and enthusiast programmers.

1 Answer

up vote 0 down vote accepted

It seems that, there is no dir named platinum in the /www/html/. So, first create the dir platinum in /www/html/ and set the user and group of the apache to the created folder.

share|improve this answer
    
yes, I managed to settle the things. thnks :) –  Gayan Dec 23 '11 at 5:32
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.