Once the installation completed, we can test that Apache is working properlyby going to the Raspberry address. Sudo chmod -R 770 /var/www/html/ Check if Apache is working To do this, run the following commands: sudo chown -R pi:www-data /var/www/html/ sudo apt install apache2īy the way, we’ll take advantage of it to give rights to the apache file that you can easily manage your sites. Once the Raspberry Pi is up to date, we will install the Apache server. To do this we must have administrator rights, either because of the sudo command. Apache installationīefore installing the server, make sure we have an up-to-date machine. Whether it is for the Raspberry Pi and Raspbian, or for a more general-purpose machine, Apache is therefore a safe choice, and the skills you will be able to acquire on the subject will always be useful. In addition, the massive use of Apache (which has become the standard for web servers), coupled with its high popularity, has led to a tremendous abundance of documentation, courses, and other books dealing with its use, and his security, like this book. Apache has its own license, used by many other projects. When we speak of a web server, we often think about the machine, but this term also refers to the software that allows the machine to analyze user requests (in http form), and to return the file corresponding to the request (Or an error if the file isn’t found, or the query incorrectly formulated).Īs part of Apache, it’s software that we talk about.Īt the moment, Apache is the most used web server, with about 60% market share. The question that now arises is, how to make a web server on Raspeberry Pi ?Installation du serveur Apache avec Raspbian What is Apache ?įirst, we will install Apache, which is the web server as such. However, to support more users, you should use a Raspberry Pi 3 (the Pi 3 can be found here), the Raspberry Pi with 1 GB of RAM, rather than the Raspberry type B + (512 MB of RAM) In addition, by choosing Raspberry, you have the possibility to modify your services like you want (examples: the size of the disk, the hosting of Database, etc.), which is generally not the case with specialized hosts , Which often sell shared hosting with low configuration capacity. Unlike the Raspberry who just need to a connection. But why use a Raspberry as a web server, rather than using services providers specialized in web hosting?įirst, from an economic point of view, you should know that web hosting services are not free and that you have to pay every month / year.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |