![]() Sudo nano /etc/apache2/sites-enabled/000-default. If you are not using the HDMI out it is sensible to reduce the amount memory given to the RPi graphics to say 16MB using the config tool: To change the password for the pi user after logging in: Here I will show a method of integrating Python with the Apache web server, and allowing the Apache server access to the GPIO and UART ports without having to run it as root, if you have PHP already installed, both will run in the same environment. ![]() If your RPi will be connected to the internet or a public network a priority is to make the Raspberry Pi more secure by not using the default username and password. From reading the Raspberry Pi forum, I see many are wanting to control their hardware projects from the web. You will need root permission to write to this directory, so if you are using the GUI file manager use "sudo su" to elevate yourself to the root user before starting the GUI with "startx" If you type your Raspberry Pi IP address into the web browser on a machine connected to the network you should see the apache default web page appear.Ĭopy them into the "/var/www/html/" directory. ![]() After weve done this, well want to copy the. First, well run our usual sudo bash command to login at root level: sudo bash. ![]() Throughout this tutorial, Ill be adding the subdomain so replace this with your domain or subdomain you want to add. If you are using your RPi on a local network and this is not a concern then you may well not care about this but if you are using your RPi on a public network where security is a concern then you may want to skip this step and find an alternative solution if you hit security permission issues. Step 1 Create the sites available file for your domain or subdomain. Note that by doing this you introduce the possibility of security vulnerabilities via apache. This may be necessary if you want web pages to control IO pins etc. Raspberry Web server is a site powered by a Raspberry Pi cluster, with tutorials about web programming in Python. ![]() This is based on the nifty webiopi guide here.Īdd Apache's user (www-data) to the sudoers if needed ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |