This article assumes that you already have a Ubuntu LAMP server installed and you are the administrator of the machine. If you are not the administrator you will have to ask your administrator to perform these steps.
First ssh/login to the server and create public_html folder in your home directory -
cdmkdir public_html
Login as root or use sudo in front of the following commands -
For the Apache server to pick up the user's public_html folder, you need to enable the userdir module -
a2enmod userdir
After enabling the userdir module, restart the Apache server to pickup the changes and load the userdir module -
/etc/init.d/apache2 restart
Now anything you save under the public_html folder will be visible from your favourite browser over the net or the internet by pointing your browser to something like -
http://[yourservername]/~[yourusername]
Hope this guide is clear enough and helps some one!
0 comments:
Post a Comment