APC : Différence entre versions
De SME Server Wiki
(Page créée avec « installer php APC sur sme8 (http://www.php.net/manual/en/apc.installation.php) yum install php-pear yum install php-devel yum install httpd-devel yum install gcc yum in... ») |
|||
Ligne 63 : | Ligne 63 : | ||
mkdir --parent /etc/e-smith/templates-custom/etc/php.ini/ | mkdir --parent /etc/e-smith/templates-custom/etc/php.ini/ | ||
echo "extension=apc.so"> /etc/e-smith/templates-custom/etc/php.ini/99apc | echo "extension=apc.so"> /etc/e-smith/templates-custom/etc/php.ini/99apc | ||
+ | expand-template /etc/php.ini | ||
+ | service httpd-e-smith restart | ||
+ | |||
+ | |||
+ | perso après un petit | ||
+ | cp /usr/share/pear/apc.php /home/e-smith/files/ibays/Primary/html/ | ||
+ | |||
+ | j'Ai pu voir que le 32 M de cache etait pqas suffisant seulement 55% de hits dans le cache et renouvellement incessant. | ||
+ | solution : | ||
+ | |||
+ | echo "apc.shm_size= 64M">>/etc/e-smith/templates-custom/etc/php.ini/99apc | ||
expand-template /etc/php.ini | expand-template /etc/php.ini | ||
service httpd-e-smith restart | service httpd-e-smith restart |
Version du 17 juin 2013 à 18:29
installer php APC sur sme8 (http://www.php.net/manual/en/apc.installation.php)
yum install php-pear yum install php-devel yum install httpd-devel yum install gcc yum install pcre-devel pecl install apc
répondre aux questions
résultat
Libraries have been installed in: /var/tmp/pear-build-root/APC-3.1.13/modules If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,--rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- Build complete. Don't forget to run 'make test'. running: make INSTALL_ROOT="/var/tmp/pear-build-root/install-APC-3.1.13" install Installing shared extensions: /var/tmp/pear-build-root/install-APC-3.1.13/usr/lib64/php/modules/ Installing header files: /var/tmp/pear-build-root/install-APC-3.1.13/usr/include/php/ running: find "/var/tmp/pear-build-root/install-APC-3.1.13" -ls 233242626 4 drwxr-xr-x 3 root root 4096 juin 17 14:07 /var/tmp/pear-build-root/install-APC-3.1.13 233242692 4 drwxr-xr-x 4 root root 4096 juin 17 14:07 /var/tmp/pear-build-root/install-APC-3.1.13/usr 233242696 4 drwxr-xr-x 3 root root 4096 juin 17 14:07 /var/tmp/pear-build-root/install-APC-3.1.13/usr/include 233242697 4 drwxr-xr-x 3 root root 4096 juin 17 14:07 /var/tmp/pear-build-root/install-APC-3.1.13/usr/include/php 233242698 4 drwxr-xr-x 3 root root 4096 juin 17 14:07 /var/tmp/pear-build-root/install-APC-3.1.13/usr/include/php/ext 233242699 4 drwxr-xr-x 2 root root 4096 juin 17 14:07 /var/tmp/pear-build-root/install-APC-3.1.13/usr/include/php/ext/apc 233242700 4 -rw-r--r-- 1 root root 3357 juin 17 14:07 /var/tmp/pear-build-root/install-APC-3.1.13/usr/include/php/ext/apc/apc_serializer.h 233242693 4 drwxr-xr-x 3 root root 4096 juin 17 14:07 /var/tmp/pear-build-root/install-APC-3.1.13/usr/lib64 233242694 4 drwxr-xr-x 3 root root 4096 juin 17 14:07 /var/tmp/pear-build-root/install-APC-3.1.13/usr/lib64/php 233242695 4 drwxr-xr-x 2 root root 4096 juin 17 14:07 /var/tmp/pear-build-root/install-APC-3.1.13/usr/lib64/php/modules 233242691 680 -rwxr-xr-x 1 root root 688778 juin 17 14:07 /var/tmp/pear-build-root/install-APC-3.1.13/usr/lib64/php/modules/apc.so Build process completed successfully Installing '/var/tmp/pear-build-root/install-APC-3.1.13//usr/include/php/ext/apc/apc_serializer.h' Installing '/var/tmp/pear-build-root/install-APC-3.1.13//usr/lib64/php/modules/apc.so' Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in PEAR/Validate.php on line 454 Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in PEAR/Validate.php on line 486 install ok: channel://pecl.php.net/APC-3.1.13 You should add "extension=apc.so" to php.ini
puis :
mkdir --parent /etc/e-smith/templates-custom/etc/php.ini/ echo "extension=apc.so"> /etc/e-smith/templates-custom/etc/php.ini/99apc expand-template /etc/php.ini service httpd-e-smith restart
perso après un petit
cp /usr/share/pear/apc.php /home/e-smith/files/ibays/Primary/html/
j'Ai pu voir que le 32 M de cache etait pqas suffisant seulement 55% de hits dans le cache et renouvellement incessant. solution :
echo "apc.shm_size= 64M">>/etc/e-smith/templates-custom/etc/php.ini/99apc expand-template /etc/php.ini service httpd-e-smith restart