Step 1: Connect via SSH
now you should try to open a SSH session via putty to raspberrypi.local or the speccific IP address( if you have ur HDMI connected it should be there on you screen, or go to ur router config page(usually 192.168.0.1) and check for raspberry pi under DHCP). you can log in to the raspberry pi with user name :pi and password :raspberry.
Step 2: Setting up you rasberry pi
will take to to the config page where you can configure your PI.
Step 3: Installing your server
sudo apt-get update
sudo apt-get install apache2 php5 libapache2-mod-php5
now you should allow overrides by editing the 000-default file, you can do that using the following comands..
sudo nano /etc/apache2/sites-enabled/000-default
now edit the following lines
change "AllowOverride None" -to "AllowOverride ALL".
sudo service apache2 restart
to restart apache witht your new settings
now your site should be up and running u can go to /var/ and change the permissions on www, making it writable.
sudo chmod 777 /www
this will enable you to login using WINSCP and upload HTML pages to your new site. open the browser on your PC and point to 192.168.xx.xx (ip address of you raspberry pi) to view the default page.
You can also install and SQL server using the following comands, with a PHP and SQL running on your server u can have a CMs like Drupal running on it.
sudo apt-get install mysql-server mysql-client php5-mysql
Step 4: Setup up PORT triggers
This means your server is up and running.
Now the problem is there is no way to access this website from the internet (like if your friend in Mexico wants to see the site :-( ).
so go back to your router config page and set the port triger as shown in the picture below. this tells the router if there is someone trying to send an HTTP request via port 80 forward the traffic to the raspberry pi. This make the raspberry pi accessible from the internet.
Step 5: Have your domain name
sudo wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
tar xf noip-duc-linux.tar.gz
sudo rm noip-duc-linux.tar.gz
sudo make install
after the install is finished, it will automatically start the configuration, enter the username and password of the no-ip.org to finish the installation.
now you have your server set up successfully now all you have to do is make sure it runs every time you start the raspberry pi. there a couple of ways to do this, this i feel is the most easy one.
sudo nano rc.local
add the following line , in the rc.local file to make noip service run during startup
ctrl-x to close the file and save the file.
now reboot the PI by the following comand
Step 6: Visit you website
sudo noip2 -S
if you see an valid PID, it means you have the service now running.... upload a few pages and hav fun!!