You are not logged in.
EDIT: About 20 seconds later, I think I solved my issue. I had to edit php-fpm.conf, where I found the user, group, and socket directives that escaped me the first time. I changed them all to the proper groups, and everything works peachy now!
I'm trying to get a LEMP stack running on my fresh Arch install, and I've run into some issues. I got Nginx serving basic html files, but when it comes to serving PHP (specifically a basic php info page for testing), I can't seem to get anything to work. I've looked at some guides on how to fix this issue, and nothing that came up in my searches has fixed anything.
Part of my Nginx virtual host:
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
include fastcgi.conf;
fastcgi_param SCRIPT_FILENAME /usr/share/nginx/www/blog.[i]mywebsite[/i].com$fastcgi_script_name; # I changed the folder name when pasting
}
The one thing that I think may be the issue is: on a previous server running Ubuntu 14.04, I had to change the php-fpm user in /etc/php5/fpm/pool.d/www.conf from www-data:www-data to nginx:nginx. When I search the config files located in /etc/php on this server, no mentions of a user pop up. However, the socket in /var/run/php-fpm/php-fpm.sock is owned by http:http, while files being served properly by my webserver are owned by nginx:nginx.
How can I fix this issue?
Last edited by RalphORama (2015-01-03 17:15:10)
Offline