Apache2 Server on Debian
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Zohair
- Posts: 5
- Joined: Sat Jan 10, 2015 9:04 am
Apache2 Server on Debian
I have to work on Beaglebone Black with Debian as web server, while upgrading the debian image, apache2 has installed. I have made a HTML page and some php (as well as java on other file) coding with HTML. When I entered the IP of board (from ifconfig) it give 192.168.0.102. Entering this IP is not opening my HTML page but "Support/bone101" page. I have saved my files in /var/www. Is apache2 not installed during upgrading? or any kind of configuration is required to run apache2 server. Does apache2 support XML codes? One last thing, to run php or jave code, is there any additional installation is required?
- adafruit_support_mike
- Posts: 67485
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Apache2 Server on Debian
The BBB comes with a web app that allows hardware programming through a Javascript API.
I don't have Debian on my BBB at the moment, but the usual location for the Apache config files is /etc/apache2/httpd.conf
Check there, and look for the DocumentRoot directive.
For complete information about configuring an Apache webserver, the official documentation is extremely good:
http://httpd.apache.org/docs/
I don't have Debian on my BBB at the moment, but the usual location for the Apache config files is /etc/apache2/httpd.conf
Check there, and look for the DocumentRoot directive.
For complete information about configuring an Apache webserver, the official documentation is extremely good:
http://httpd.apache.org/docs/
- philtheis
- Posts: 9
- Joined: Wed Jan 22, 2014 6:11 pm
Re: Apache2 Server on Debian
If you have Rev C, then apache2 is on port 8080
so type your ip address:8080 in the browser to see what apache is serving.
And if you are going to use PHP, you must: apt-get install php5 curl php5-curl php5-json
Works for me
Phil
so type your ip address:8080 in the browser to see what apache is serving.
And if you are going to use PHP, you must: apt-get install php5 curl php5-curl php5-json
Works for me
Phil
Please be positive and constructive with your questions and comments.