php-fpm_centos6
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
php-fpm_centos6 [2015/10/20 06:06] – created luke7858 | php-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 | ^ Ports | ||
+ | \\ | ||
+ | You can see from the output below the tmpfs (temporary file system) is mounted to /dev/shm: | ||
+ | <sxh bash> | ||
+ | # df -h | ||
+ | Filesystem | ||
+ | / | ||
+ | tmpfs | ||
+ | / | ||
+ | </ | ||
\\ | \\ | ||
\\ | \\ | ||
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/ | + | unix 2 [ ACC ] STREAM LISTENING 146689 21372/ |
</ | </ | ||
\\ | \\ |
php-fpm_centos6.1445321194.txt.gz · Last modified: 2024/05/23 07:26 (external edit)