<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://wiki.ixheim.de/index.php?action=history&amp;feed=atom&amp;title=Nginx_php_Debian</id>
	<title>Nginx php Debian - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ixheim.de/index.php?action=history&amp;feed=atom&amp;title=Nginx_php_Debian"/>
	<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=Nginx_php_Debian&amp;action=history"/>
	<updated>2026-06-28T18:31:11Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Xinux Wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.ixheim.de/index.php?title=Nginx_php_Debian&amp;diff=70400&amp;oldid=prev</id>
		<title>Thomas.will am 29. Mai 2026 um 07:08 Uhr</title>
		<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=Nginx_php_Debian&amp;diff=70400&amp;oldid=prev"/>
		<updated>2026-05-29T07:08:04Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 29. Mai 2026, 07:08 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Zeile 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;=&lt;/ins&gt;= NGINX &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Debian &lt;/ins&gt;mit PHP-FPM betreiben &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;=&lt;/ins&gt;=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= NGINX mit PHP-FPM betreiben =&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Diese Anleitung zeigt, wie man eine einfache PHP-Webanwendung mit NGINX und PHP-FPM unter Debian oder Ubuntu betreibt.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Diese Anleitung zeigt, wie man eine einfache PHP-Webanwendung mit NGINX und PHP-FPM unter Debian oder Ubuntu betreibt.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key my_wiki:diff::1.12:old-70399:rev-70400 --&gt;
&lt;/table&gt;</summary>
		<author><name>Thomas.will</name></author>
	</entry>
	<entry>
		<id>https://wiki.ixheim.de/index.php?title=Nginx_php_Debian&amp;diff=70399&amp;oldid=prev</id>
		<title>Thomas.will: Die Seite wurde neu angelegt: „  = NGINX mit PHP-FPM betreiben =  Diese Anleitung zeigt, wie man eine einfache PHP-Webanwendung mit NGINX und PHP-FPM unter Debian oder Ubuntu betreibt.  == V…“</title>
		<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=Nginx_php_Debian&amp;diff=70399&amp;oldid=prev"/>
		<updated>2026-05-29T07:03:31Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „  = NGINX mit PHP-FPM betreiben =  Diese Anleitung zeigt, wie man eine einfache PHP-Webanwendung mit NGINX und PHP-FPM unter Debian oder Ubuntu betreibt.  == V…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
= NGINX mit PHP-FPM betreiben =&lt;br /&gt;
&lt;br /&gt;
Diese Anleitung zeigt, wie man eine einfache PHP-Webanwendung mit NGINX und PHP-FPM unter Debian oder Ubuntu betreibt.&lt;br /&gt;
&lt;br /&gt;
== Voraussetzungen ==&lt;br /&gt;
* Debian- oder Ubuntu-System mit root-Rechten&lt;br /&gt;
* Paketverwaltung via apt&lt;br /&gt;
* Standardwebverzeichnis: /var/www/html&lt;br /&gt;
* PHP 8.2 als Beispiel&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
* apt update&lt;br /&gt;
* apt install nginx php-fpm&lt;br /&gt;
&lt;br /&gt;
== PHP-FPM prüfen ==&lt;br /&gt;
* systemctl status php8.2-fpm&lt;br /&gt;
&lt;br /&gt;
Die Socket-Datei für FastCGI-Kommunikation liegt standardmäßig hier:&lt;br /&gt;
 /var/run/php/php8.2-fpm.sock&lt;br /&gt;
&lt;br /&gt;
== NGINX-Konfiguration anpassen ==&lt;br /&gt;
Datei: /etc/nginx/sites-available/default&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
server {&lt;br /&gt;
    listen 80;&lt;br /&gt;
    server_name localhost;&lt;br /&gt;
&lt;br /&gt;
    root /var/www/html;&lt;br /&gt;
    index index.php index.html;&lt;br /&gt;
&lt;br /&gt;
    location / {&lt;br /&gt;
        try_files $uri $uri/ =404;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    location ~ \.php$ {&lt;br /&gt;
        include snippets/fastcgi-php.conf;&lt;br /&gt;
        fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    location ~ /\.ht {&lt;br /&gt;
        deny all;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* ln -s /etc/nginx/sites-available/default /etc/nginx/sites-enabled/default&lt;br /&gt;
* nginx -t&lt;br /&gt;
* systemctl reload nginx&lt;br /&gt;
&lt;br /&gt;
== Testseite anlegen ==&lt;br /&gt;
* echo &amp;quot;&amp;lt;?php phpinfo(); ?&amp;gt;&amp;quot; &amp;gt; /var/www/html/info.php&lt;br /&gt;
&lt;br /&gt;
== Dienste neustarten ==&lt;br /&gt;
* systemctl restart php8.2-fpm&lt;br /&gt;
* systemctl restart nginx&lt;br /&gt;
&lt;br /&gt;
== Funktion prüfen ==&lt;br /&gt;
Im Browser aufrufen:&lt;br /&gt;
 http://localhost/info.php&lt;br /&gt;
&lt;br /&gt;
== Hinweise ==&lt;br /&gt;
* .htaccess-Dateien werden von NGINX '''nicht''' unterstützt – Rewrite-Regeln müssen direkt in der NGINX-Konfiguration erfolgen.&lt;br /&gt;
* Der Pfad zur php-fpm.sock kann je nach PHP-Version abweichen.&lt;br /&gt;
* Falls du TCP statt Socket verwenden willst, lautet der fastcgi_pass z. B.:&lt;br /&gt;
  fastcgi_pass 127.0.0.1:9000;&lt;br /&gt;
* Für mehrere PHP-Versionen empfiehlt sich der Einsatz separater Pools und Versionen über update-alternatives oder manuelles Umschalten.&lt;/div&gt;</summary>
		<author><name>Thomas.will</name></author>
	</entry>
</feed>