apache2 switch from mpm_worker to mpm_fpm

Discussion in 'Server Operation' started by moltra, Aug 6, 2013.

  1. moltra

    moltra New Member

    I am running Ubuntu 12.04 LTS with apache2 and mpm_worker, mod_fcigd. I followed this guide to http://www.howtoforge.com/using-php5-fpm-with-apache2-on-ubuntu-12.04-lts to convert to mpm_fpm. I have it all configured and it shows that php5-fpm is working


    Code:
    top - 20:48:12 up 1 day, 17 min,  3 users,  load average: 0.30, 0.23, 0.33
    Tasks: 152 total,   1 running, 151 sleeping,   0 stopped,   0 zombie
    Cpu(s):  1.7%us,  0.3%sy,  0.0%ni, 97.8%id,  0.0%wa,  0.0%hi,  0.0%si,  0.2%st
    Mem:   1543532k total,   831472k used,   712060k free,    32748k buffers
    Swap:   262140k total,    74964k used,   187176k free,   266172k cached
    
      PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
    21553 www-data  20   0  192m 110m  49m S   13  7.3   0:10.47 php5
    21544 www-data  20   0  134m  15m 5604 S    1  1.0   0:00.44 apache2
     3684 www-data  20   0  5312  180  160 S    0  0.0   0:00.00 newrelic-daemon
     3685 www-data  20   0  106m 5080 1988 S    0  0.3   1:23.61 newrelic-daemon
    20192 www-data  20   0  137m 3468  588 S    0  0.2   0:00.00 php5-fpm
    20193 www-data  20   0  137m 3468  588 S    0  0.2   0:00.00 php5-fpm
    20194 www-data  20   0  137m 3468  588 S    0  0.2   0:00.00 php5-fpm
    20195 www-data  20   0  137m 3468  588 S    0  0.2   0:00.00 php5-fpm
    21542 www-data  20   0 20940 2964  348 S    0  0.2   0:00.00 apache2
    21543 www-data  20   0 22084 3208  588 S    0  0.2   0:00.00 apache2
    But phpinfo(); still shows "CGI/FastCGI" I have restarted apache2, php5-fpm multiple times
     
  2. moltra

    moltra New Member

    I have been trying to get this to work and I have some more information that might help someone that know this better than me.

    I have the following in my virtual host file for apache2

    Code:
    Options MultiViews Indexes Includes FollowSymLinks ExecCGI
    If I remove the ExecCGI option, I start getting 403 errors for all of my pages. I have tried it with the 127.0.0.1:9000 and the sock connection and still get the 403 error.
     

Share This Page