You need to make these changes to your /etc/httpd/conf/http.conf file in super user mode.
You need to comment off the line:
UserDir disable
and instead put
UserDir public_html
In addition, you need to add:
Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch Includes
Limit GET POST OPTIONS>
Order allow,deny
Allow from all
/Limit>
LimitExcept GET POST OPTIONS>
Order deny,allow
Deny from all
/LimitExcept>
/Directory>
TO make cgi scripts work, you need the following:
Directory “/home/*/public_html/cgi-bin”>
AllowOverride None
Options execCGI
Order allow,deny
Allow from all
/Directory>
AddHandler cgi-script .cgi
Besides, the following are the min’m permissions required for the directories’ hierarcy:
711 /home/pavan
711 /home/pavan/public_html
711 /home/pavan/public_html/cgi-bin
I hope you can understand above permissions are for the user named ‘pavan’.