Runnig nginx and php-fpm on mga2

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

Runnig nginx and php-fpm on mga2

Postby fwang » Jun 20th, '12, 04:27

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?
fwang
 
Posts: 3
Joined: Jan 28th, '12, 20:17

Re: Runnig nginx and php-fpm on mga2

Postby wintpe » Jun 20th, '12, 12:49

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
Redhat 6 Certified Engineer (RHCE)
Sometimes my posts will sound short, or snappy, however its realy not my intention to offend, so accept my apologies in advance.
wintpe
 
Posts: 1204
Joined: May 22nd, '11, 17:08
Location: Rayleigh,, Essex , UK


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest