<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://aznot.com/index.php?action=history&amp;feed=atom&amp;title=Raspberry_Pi%2FWeb_Server</id>
	<title>Raspberry Pi/Web Server - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://aznot.com/index.php?action=history&amp;feed=atom&amp;title=Raspberry_Pi%2FWeb_Server"/>
	<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=Raspberry_Pi/Web_Server&amp;action=history"/>
	<updated>2026-04-17T01:21:17Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://aznot.com/index.php?title=Raspberry_Pi/Web_Server&amp;diff=4801&amp;oldid=prev</id>
		<title>Kenneth at 04:02, 1 July 2018</title>
		<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=Raspberry_Pi/Web_Server&amp;diff=4801&amp;oldid=prev"/>
		<updated>2018-07-01T04:02:28Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Web Server ==&lt;br /&gt;
&lt;br /&gt;
Setting up a web server on a Raspberry Pi - Raspberry Pi Documentation - https://www.raspberrypi.org/documentation/remote-access/web-server/&lt;br /&gt;
&lt;br /&gt;
== Apache ==&lt;br /&gt;
&lt;br /&gt;
Setting up an Apache Web Server on a Raspberry Pi - Raspberry Pi Documentation - https://www.raspberrypi.org/documentation/remote-access/web-server/apache.md&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install apache2 -y&lt;br /&gt;
&lt;br /&gt;
php:&lt;br /&gt;
 sudo apt-get install php libapache2-mod-php -y&lt;br /&gt;
&lt;br /&gt;
== NGINX ==&lt;br /&gt;
&lt;br /&gt;
Setting up an NGINX web server on a Raspberry Pi - Raspberry Pi Documentation - https://www.raspberrypi.org/documentation/remote-access/web-server/nginx.md&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install nginx&lt;br /&gt;
 sudo /etc/init.d/nginx start&lt;br /&gt;
&lt;br /&gt;
php:&lt;br /&gt;
 sudo apt-get install php-fpm&lt;br /&gt;
&lt;br /&gt;
 cd /etc/nginx&lt;br /&gt;
 sudo nano sites-enabled/default&lt;br /&gt;
   # Add index.php&lt;br /&gt;
   index index.html index.htm;&lt;br /&gt;
   # uncomment .php section&lt;br /&gt;
   location ~ \.php$ {&lt;br /&gt;
                include snippets/fastcgi-php.conf;&lt;br /&gt;
&lt;br /&gt;
                # With php-fpm (or other unix sockets):&lt;br /&gt;
                fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;&lt;br /&gt;
                # With php-cgi (or other tcp sockets):&lt;br /&gt;
                #fastcgi_pass 127.0.0.1:9000;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
 sudo /etc/init.d/nginx reload&lt;br /&gt;
&lt;br /&gt;
test:&lt;br /&gt;
 cd /var/www/html/&lt;br /&gt;
 sudo mv index.nginx-debian.html index.php&lt;br /&gt;
&lt;br /&gt;
 # index.php&lt;br /&gt;
 &amp;lt;?php echo phpinfo(); ?&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kenneth</name></author>
	</entry>
</feed>