Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HOWTO: Enable and use apache on raspberry PI
08-16-2014, 05:37 AM,
#1
HOWTO: Enable and use apache on raspberry PI
Needed:
- Raspberry (without apache installed)

Log into the raspberry and install apache
Code:
$ sudo apt-get install apache2
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libblas3gf liblapack3gf
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common libapr1
  libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap ssl-cert
Suggested packages:
  apache2-doc apache2-suexec apache2-suexec-custom openssl-blacklist
The following NEW packages will be installed:
  apache2 apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common libapr1
  libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap ssl-cert
0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,355 kB of archives.
After this operation, 4,929 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Installation takes place at this moment.

Now you can browse to the IP address of the raspberry. It will show the Apache welcome message "It works!"

To edit the html-file which is shown:
Code:
cd /var/www
vi index.html
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)