Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


PHP Suddenly stopped working?
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

PHP Suddenly stopped working?

eastoncheastonch Member
edited December 2012 in General

Harro LET!

So I'm using the standard Minstall, got Deluge running and also PHPMYADMIN running, for some reason, none of the domains I have on this node want to run PHP. Here's the config for "samplecode.me"

 
server {
        listen 80;
        server_name samplecode.me;

        rewrite ^/(.*) http://www.samplecode.me/$1 permanent;
}

server {
        listen 80;
        server_name www.samplecode.me;

        access_log off;
        error_log /home/chris/http/logs/samplecode.me.log;
        index index.html index.php;
        root /home/chris/http/hosts/samplecode.me;

        include /etc/nginx/conf.d/cache.conf;
        include /etc/nginx/conf.d/deny.conf;
        include /etc/nginx/php.d/chris.conf;
}

Here's "chris.conf" from "php.d"

 
location ~ \.php$ {
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_pass unix:/home/chris/http/private/php.socket;
        include fastcgi_params;
        try_files $uri =404;
}

Really confused, since this is the normal setup right? http://www.samplecode.me/

EDIT

Fixed, didnt recognise <? and ?> properly, needed <?php ?>.

Comments

Sign In or Register to comment.