Apache Install

From HTPC How-To's
Jump to: navigation, search

The below information was copied over from the Github Wiki and needs to be cleaned up/expanded. Once that is done, this message should be removed.


sudo apt-get install apache2 php5

A site is now listening @ http://localhost/.
Website-folders/files must be located in /var/www/ (owned by root) so mediafrontpage must be in /var/www/mediafrontpage (for example). That specific site will be listening @ http://localhost/mediafrontpage.

The default user Apache is called www-data. Give write-access to www-data by chowning /var/www/website, for example:

sudo chown -R www-data /var/www/mediafrontpage

This way files can be edited by the website, for example add values to a config.ini.

Personal tools