3. Installing PHP

sudo apt-get install php5-fpm php5-sqlite php5-gd

To get php working with nginx you need to change sites-available/wordpress

    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
    #
    location ~ \.php$ {
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
    #    # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
    #
    #    # With php5-cgi alone:
    #    fastcgi_pass 127.0.0.1:9000;
    #    # With php5-fpm:
        fastcgi_pass unix:/var/run/php5-fpm.sock;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME /home/public_html$fastcgi_script_name;
        include fastcgi_params;
    }

results matching ""

    No results matching ""