Page 1 of 1

Runnig nginx and php-fpm on mga2

PostPosted: Jun 20th, '12, 04:27
by fwang
Hello,

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?

Re: Runnig nginx and php-fpm on mga2

PostPosted: Jun 20th, '12, 12:49
by wintpe
As per "Help us to Help you", you have assumed that people on here as aware of this as you are.

so please assume, no ones got a glue what this product is, and havnt a clue what online help there is , and explain what you think should happen, and whats not happening, then we can apply some generic trouble shooting to your problem.

no ones going to go through what you have just to reproduce your problem and help you.

regards peter