So on my server I have an info.php file, which I can run fine and all readout looks good. I can also run several other files, no questions asked. Buuuuut, index.php gets sent to me as a file containing all the PHP raw code, which is very bad. On top of this going to the base page, doesn't serv up a single file at all, especially not index.php.
Here is my nginx config:
server {
server_name somedamnserver;
root /var/www;
index index.php index.html;
location / {
# This is cool because no php is touched for static content
try_files $uri $uri/ /index.php;
}
location ~ \.php$ {
#fastcgi_split_path_info ^(.+\.php)(/.+)$;
#NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
try_files $uri =404;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
#fastcgi_intercept_errors on;
include fastcgi_params;
}
}
My php.ini and fpm/pool.d/www.conf files seem to be set up correctly, but I can also link them here.
I am at my wits end here, I can simply not understand why this bully of a server would do this to little me. :(