How to do Html on user account

View previous topic View next topic Go down

How to do Html on user account

Post  Admin on Sun Oct 11, 2009 11:23 pm

Homeuser html page
*****Server side*******
#mkdir /home/htmluser/public_html
#chmod 705 /home/htmluser/public_html/
#chmod 701 /home/htmluser/
#ls -Z /var/www/html/
#ls -Z /home/
#chcon -R -t httpd_sys_content_t /home/htmluser/public_html/
#getenforce --enforcing
#cp -av /var/www/html/index.html /home/htmluser/public_html/
#vim /home/htmluser/public_html/index.html --> modify
#vim /etc/httpd/conf/httpd.conf
****
UserDir public_html

<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
****

#apachectl stop
#apachectl start
#service httpd reload

****client side *****
http://192.168.1.2/~htmluser

****endstep if nothing works*****
#setenforce 0
#setsebool -P htttpd.enable.homedirs 1
check firewall
check port80 is open
#ps -ef | grep httpd
#netstat -a | grep http
avatar
Admin
Admin

Posts : 32
Join date : 2009-09-13
Age : 31
Location : Chennai

View user profile http://linux.nsguru.com

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum