User Tools

Site Tools


php-fpm_centos6

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
php-fpm_centos6 [2015/10/20 06:06] – created luke7858php-fpm_centos6 [2024/05/23 07:26] (current) – external edit 127.0.0.1
Line 5: Line 5:
 \\ \\
 This means that php-fpm will be using files (sockets) to run which could be considered slower because of potential slow HDDs however the files are mostly stored in RAM so it makes accessing them significantly quicker. This means that php-fpm will be using files (sockets) to run which could be considered slower because of potential slow HDDs however the files are mostly stored in RAM so it makes accessing them significantly quicker.
- +\\ 
-^ Sockets ^  fastcgi_pass unix:/run/php-fpm/example.com.sock ^+\\ 
 +CentOS 6 uses FHS 2.3, this means that it uses /dev/shm for accessing RAM 
 +^ Sockets ^  fastcgi_pass unix:/dev/shm/php-fpm-example.com.sock ^
 ^ Ports    fastcgi_pass 127.0.0.1:9000; ^ ^ Ports    fastcgi_pass 127.0.0.1:9000; ^
 +\\ 
 +You can see from the output below the tmpfs (temporary file system) is mounted to /dev/shm: 
 +<sxh bash> 
 +# df -h 
 +Filesystem      Size  Used Avail Use% Mounted on 
 +/dev/sda2       1.8T  194G  1.6T  12% / 
 +tmpfs           1.9G  4.0K  1.9G   1% /dev/shm 
 +/dev/sda1       190M   88M   93M  49% /boot 
 +</sxh>
 \\ \\
 \\ \\
Line 21: Line 31:
 [lukeslinux.co.uk] [lukeslinux.co.uk]
  
-listen = /run/php-fpm/lukeslinux.co.uk.sock+listen = /dev/shm/php-fpm-lukeslinux.co.uk.sock
 listen.allowed_clients = 127.0.0.1 listen.allowed_clients = 127.0.0.1
  
Line 54: Line 64:
 Example output of netstat -plnx: Example output of netstat -plnx:
 <sxh bash> <sxh bash>
-unix 2 [ ACC ] STREAM LISTENING 146689 21372/php-fpm: mast /run/php-fpm/lukeslinux.co.uk.sock+unix 2 [ ACC ] STREAM LISTENING 146689 21372/php-fpm: mast /dev/shm/php-fpm-lukeslinux.co.uk.sock
 </sxh> </sxh>
 \\ \\
php-fpm_centos6.1445321194.txt.gz · Last modified: 2024/05/23 07:26 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki