Nginx 1.6/1.7 mit php-fpm über Socket

Dieses Thema im Forum "Hosting & Server" wurde erstellt von Decryptor, 29. April 2014 .

Schlagworte:
  1. 29. April 2014
    Hallo, da nun nginx 1.6 raus is und ich den Server mal neu aufsetzen wollte, ist nen ubuntu 12.04(bei Debian wheezy habe ich das gleiche Problem).
    Ich habe beim Server nur die Wahl zwischen Minimal und normal mit apache vorinstalliert, leider spackt die minimal install mit mysql so das ich das normale Packet nehmen muss.


    jedenfalls mein Installscript
    Code:
    wget http://nginx.org/keys/nginx_signing.key
    echo "deb http://nginx.org/packages/ubuntu/ precise nginx" >> /etc/apt/sources.list
    echo "deb-src http://nginx.org/packages/ubuntu/ precise nginx" >> /etc/apt/sources.list
    sudo apt-key add nginx_signing.key
    apt-get update
    apt-get remove --purge -y apache2*
    apt-get install -y mysql-server
    apt-get install -y php5-fpm
    apt-get install -y nginx
    Mein Problem an der Sache ist, ich bekomm php ned zum laufen, leider wurden auch die configs umgebaut und es ist nix mehr wie es mal war.
    meine Datei /etc/nginx/conf.d/default.conf
    Code:
    location ~ \.php$ {
     # root html;
     fastcgi_pass unix:/var/run/php5-fpm.sock;
     fastcgi_index index.php;
     fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
     include fastcgi_params;
     }
    meine Datei
    /etc/php5/fpm/pool.d/www.conf
    habe ich das listening auf gesetzt
    Code:
    listen = /var/run/php5-fpm.sock
    Mein Problem hierbei ist immer das ich ein "File not found. " bekomme

    edit:
    der Fehler lag an
    fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html$fastcgi_script_name;
     
  2. Video Script

    Videos zum Themenbereich

    * gefundene Videos auf YouTube, anhand der Überschrift.