Friday, April 3, 2015

Apache HTTP server installation

To install Apache, type this command in the terminal:

sudo apt-get install apache2







Type Y to continue.

Check if the Apache server is running:

service apache2 status




Get the IP address of the Raspberry Pi by typing:

ifconfig
 Use a PC browser to access the IP address just got, and the browser should become:





















Congratulations when you see 'It works!'

=======

To stop / start / restart the Apache server, enter:

sudo service apache2 <command>

or

sudo /etc/init.d/apache2 <command>

where <command> is stop / start / restart.


To check the Apache version, type this:

apachectl -V

or

Install MySQL server first and then login to phpMyAdmin.

=======

To check if port 80 used by HTTP is correctly configured, type this:

netstat -an | grep :80


To check the port from another computer, type this:

curl -s 192.168.xx.xx:80


No comments:

Post a Comment