Reference
Original location and files here.
This is a mini-howto for creating user web spaces (SME7) by Damien Curtain, modified by Jean-Philippe PIALASSE.
Goal
You want to allow your users to have public web space accessable by http://www.your_domain/~user_name.
Note: this will create user web spaces for NEW users AND EXISTING users.
Installation
rpm -Uvh \ http://www.pialasse.com/RPMS/smeserver-user-webspace-0.1-5.SME7.noarch.rpm
Answer YES to the question.
Configuration
You can put a default index.html in /etc/e-smith/skel/user/home/public_html that will appear in the users webspace when the user is created.
To copy the index.html file to all existing users:
find /home/e-smith/files/users/ -type d -name public_html \
-exec cp /etc/e-smith/skel/user/home/public_html/index.html {} \; \
-exec chmod 666 {}/index.html \;
To remove all index.html files in all user directories (DANGEROUS!)
find /home/e-smith/files/users/ -type d \
-name public_html -exec rm -f {}/index.html \;
Disable Personal Web Spaces
If at any stage you want to disable user webspace, enter these commands as root:
/sbin/e-smith/config set UserPublicWeb off
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
service httpd restart
Re-enable Personal Web Spaces
/sbin/e-smith/config set UserPublicWeb on
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
service httpd restart
The usual disclaimer: You are responsible for any changes you make to your server.
| < Prev | Next > |
|---|





