Showing posts with label DocumentRoot not found. Show all posts
Showing posts with label DocumentRoot not found. Show all posts

Tuesday, June 28, 2011

Apache Userdir enabled

go to

In httpd.conf
add comment bellow line
userdir disabled
-----------------------------------------------
chmod 711 for /home/userdir(userid)
chmod 755 for /home/userdir(userid)/public_html

[or]

chcon -R -t htppd_sys_content_t /home/keval/web
-----------------------------------------------
system => selinux management => boolean
check => Allow httpdto read home directores(module apache)

[or]

setsebool -P httpd_enable_homedirs true
-----------------------------------------------
remove comment in httpd.conf
NameVirtualHost *:80


ServerName localhost
DocumentRoot /home/userdir/web

-----------------------------------------------
restart httpd
-----------------------------------------------

/etc/hosts

change localhost localhost.localdomain to localhost.localdomain localhost

127.0.0.1 localhost localhost.localdomain
::1 localhost localhost.localdomain

replace with

127.0.0.1 localhost.localdomain localhost
::1 localhost.localdomain localhost

-----------------------------------------------

how to see xml preview in browser php

xml preview view in browser $xml = new DOMDocument('1.0', 'UTF-8');                 $xml->preserveWhiteSpace = false; ...