Installing the Web Server Apache and then the language PHP should be straight forward.
Log onto your Raspberry Pi using a Terminal and type:
This will update your installation.
Then to install PHP and Apache type in:
Note that to restart Apache at any time enter:
This will set up a web server at /var/www/html
Now if you go to your browser on your computer and type http://servername/ it should display a start up page.
An extra step is to enable htaccess files. These are file that you place on your web site and give you the abiltiy to make configuration changes on a directory by directory bases.
To enable htaccess files you must modify the config of Apache:
You’ll see a line like the following near <Directory /var/www/html/> for your web folder:
“AllowOverride None” – change this to “AllowOverride ALL”
Then hold the Ctrl+X key, then press Y and press Return.
Now restart Apache with: