After creating the cloud account, I log in to the account via SSH using the following information:
root@[your IP address]
(you’ll be prompted for a username/password)
To install apache2, you can simply type:
# apt-get install apache2
To also install PHP5 , just run this additional command:
# apt-get install php5
The apache module for PHP is automatically installed when you do this. You can also confirm you have a web site running at this poing by navigating to your site at:
http://[your IP address]/
the apache config files can be found here:
# ls -al /etc/apache2/
You should now have a default page in the following directory:
# ls -al /var/www/index.html
You can see where this is set as the default DocumentRoot directory for your account in the following file:
# vi /etc/apache2/sites-available/default
Now that you have a functioning web site, you can begin to build your content. Feel free to comment to let me know where I need to expand this simple tutorial.
No comments:
Post a Comment