sudo useradd user01
sudo passwd user01
sudo mkdir -p /var/www/html/user01/public_html
sudo chown -R user01:user01 /var/www/html/user01/public_html
sudo chmod -R 755 /var/www/html/user01/public_html
ln -s /var/www/html/user01/public_html /home/user01/public_html
sudo vi /home/user01/public_html/index.php
#<?php phpinfo(); ?>
sudo vi /etc/httpd/conf.d/user01.conf
Alias /user01 /var/www/html/user01/public_html
<VirtualHost *:80>
ServerName www.user01.com
ServerAlias system.com
DocumentRoot /var/www/html/user01/public_html
</VirtualHost>
# KRAJ RADA U VI EDITORU
systemctl restart httpd.service
sudo passwd user01
sudo mkdir -p /var/www/html/user01/public_html
sudo chown -R user01:user01 /var/www/html/user01/public_html
sudo chmod -R 755 /var/www/html/user01/public_html
ln -s /var/www/html/user01/public_html /home/user01/public_html
sudo vi /home/user01/public_html/index.php
#<?php phpinfo(); ?>
sudo vi /etc/httpd/conf.d/user01.conf
Alias /user01 /var/www/html/user01/public_html
<VirtualHost *:80>
ServerName www.user01.com
ServerAlias system.com
DocumentRoot /var/www/html/user01/public_html
</VirtualHost>
# KRAJ RADA U VI EDITORU
systemctl restart httpd.service
No comments:
Post a Comment