I have a dedicated server on which I have a site http://www.example.com
I need to create a user and:
- allow him ssh and ftp access into it
- allow him to access a page such as: http://user.example.com
- How do I provide ftp access to him?
- How do I setup public_html and all necessary details so that he can access html file from the internet? I want him to be able to execute php scripts as well (which I dont think should be a problem as the website on this site can do it already).
I don't have cPanel. I am running RHEL5/CentOS
Edit1
In httpd.conf I added this:
NameVirtualHost *:80
<VirtualHost *:80>
ServerName www.example.com
DocumentRoot /var/www/html/
</VirtualHost>
<VirtualHost *:80>
ServerName david.example.com
DocumentRoot /home/david/public_html
</VirtualHost>
<VirtualHost *:80>
ServerName matthew.example.com
DocumentRoot /home/matthew/public_html
</VirtualHost>
And made sure the corresponding folders existed with 755 permissions.
I have the main site accessible now, but not the subdomain.example.com ones.