I'm current about to run nginx and php-fpm under Mageia2, but I'm not familiar with that. Following several tutorial articles I've found, I've done following:
- Code: Select all
# urpmi php-fpm nginx
# cat /etc/php-fpm.conf
listen = /var/lib/php-fpm/php-fpm.sock
# less
# cat /etc/nginx/conf.d/default.conf
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
location ~ \.php$ {
root html;
fastcgi_pass unix:/var/lib/php-fpm/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
# service php-fpm start
# sevice nginx start
# cat /usr/share/nginx/html/index.php
<?php
php_info();
?>
But it seems it won't work. Is there anything else I could do?