Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
nndocs:lamp [2017/11/01 14:32]
naptastic [PHP] add mysqli dependency
nndocs:lamp [2018/07/04 00:19]
naptastic we don't use PHP APC anymore.
Line 144: Line 144:
  
 "But David,"​ I hear you asking, "Why didn't you put it in /​var/​run?"​ Because /var/run is a ramdisk, so /​var/​run/​php-fpm would have to be created every time PHP-FPM starts, and I didn't feel like hacking up the init script any more than I already do. Or I could put the socket files in /var/run not in a directory, but /var/run gets messy enough already. And since PHP's installation process treats /usr/local like its own root filesystem anyway, what the hell, let's do it. "But David,"​ I hear you asking, "Why didn't you put it in /​var/​run?"​ Because /var/run is a ramdisk, so /​var/​run/​php-fpm would have to be created every time PHP-FPM starts, and I didn't feel like hacking up the init script any more than I already do. Or I could put the socket files in /var/run not in a directory, but /var/run gets messy enough already. And since PHP's installation process treats /usr/local like its own root filesystem anyway, what the hell, let's do it.
- 
-==== PHP-APC === 
- 
-  * ''<​nowiki>​wget http://​pecl.php.net/​get/​APC-3.1.13.tgz</​nowiki>''​ 
-  * ''​tar -xvf APC-3.1.13.tgz''​ 
-  * ''​cd APC-3.1.13''​ 
-  * ''​phpize''​ 
-  * ''<​nowiki>​./​configure --enable-apc</​nowiki>''​ 
-  * ''​make''​ 
-  * ''​make install''​ 
- 
-Add this to the end of ''/​usr/​local/​lib/​php.ini'':​ 
- 
-  extension='​apc.so'​ 
-  apc.enable=1 
-  apc.shm_size=256m 
  
 At this point, PHP-FPM is ready to start if you want. At this point, PHP-FPM is ready to start if you want.
nndocs/lamp.txt ยท Last modified: 2018/07/04 00:30 by naptastic
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki