title: Raspberry Pi with Wordpress: instead of opening config-page for WP a file is downloaded?
body: <p>During quarantine, I am tinkering with my raspberry pi and I decided to use it to learn some wordpress-basics. Thus I ventured to <a href="https://tutorials-raspberrypi.de/raspberry-pi-wordpress-server-nginx/#webserver-setup" rel="nofollow noreferrer">this site</a> and followed the tutorial. (I am German and I liked the tone of writing ;-) ) and followed the tutorial.</p>
  <p>When they ask that one might install phpmyadmin I followed their link to <a href="https://tutorials-raspberrypi.de/webserver-installation-teil-4-phpmyadmin/" rel="nofollow noreferrer">this site</a>, where I followed the tutorial to install aforesaid phpmyadmin.
  Then as the tutorial accidentally installed Apache (I failed at realising, as a coughing attack prevented me from reading properly :-D ) I uninstalled Apache after stopping the service:</p>
  <pre><code> sudo service apache2 stop
   sudo apt-get purge apache2 apache2-utils apache2.2-bin apache2-common
   sudo apt-get autoremove
  </code></pre>
  <p>after this is <code>whereis apache2</code> and removed all the locations with <code>sudo rm -rf {all the directories}</code>. Then I followed the tutorial for getting wordpress up and running again :-). This means I installed Mariadb and set a user up with a password.</p>
  <p>Other than aforementioned slip, I followed the tutorial to the point, however I had to disable fastcgi in nginx-config for nginx to start. (?)</p>
  <p>Finally, I did</p>
  <pre><code>sudo chown -R www-data: .
  </code></pre>
  <p>and hit my Pi's IP-adress, hoping to see the wordpress config-file:
  But when I do that and hit enter a file named &quot;Download&quot; is downloaded, with the following content:</p>
  <pre><code>&lt;?php
  /**
   * Front to the WordPress application. This file doesn't do anything, but loads
   * wp-blog-header.php which does and tells WordPress to load the theme.
   *
   * @package WordPress
   */
  
  /**
   * Tells WordPress to load the WordPress theme and output it.
   *
   * @var bool
   */
  define( 'WP_USE_THEMES', true );
  
  /** Loads the WordPress Environment and Template */
  require __DIR__ . '/wp-blog-header.php';
   
  </code></pre>
  <p>Can anyone tell me what happened?
  Do you need my nginx.conf or th. similar?</p>
  <p>Any help would be appreciated!
  (I might as well set it up again - It's a pi not an important server :-D )</p>