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

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

1 comment:

  1. hey Keval,

    I found your profile while surfing linkedin and then also saw this blog of yours. I am intrigued as we both are passionate about the same things.

    I am VP & Country Head of a gaming company and am always on the lookout for folks with love for technology, strong aptitude and inherent leadership traits.

    Kindly mail me your phone number or give me a call in case you are interested so that I can discuss the opportunities I have for you.

    Thanks
    SAURABH Gupta
    saurabh@oxylabs.com
    09560835666

    http://www.linkedin.com/company/oxylabs-networks

    ReplyDelete

how to see xml preview in browser php

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