PHP: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
K (init) |
K (→Config: c) |
||
(8 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
www.php.net | http://www.php.net | ||
<br> | <br> | ||
Zeile 5: | Zeile 5: | ||
= Config = | = Config = | ||
<source lang=" | <source lang="ini">#/etc/php5/mods-available/zzz_config.ini | ||
# or /etc/php/5.6/mods-available/zzz_config.ini | |||
;#popen needed for cacti | ;#popen needed for cacti | ||
disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,symlink,exec,system,passthru,shell_exec,proc_nice | |||
expose_php = Off | expose_php = Off | ||
memory_limit = 320M | memory_limit = 320M | ||
expose_php = Off | |||
memory_limit = 200M | |||
upload_max_filesize = 10M | upload_max_filesize = 10M | ||
post_max_size = 10M | |||
allow_url_fopen = 0 | |||
allow_url_fopen = | |||
date.timezone = "Europe/Berlin" | date.timezone = "Europe/Berlin" | ||
session.hash_function = sha512</source> | |||
<br> | |||
<syntaxhighlight lang="bash"> | |||
phpenmod zzz_config | |||
</syntaxhighlight> | |||
remove /etc/php/5.6/cli/conf.d/20-zzz_config.ini or cacti and co will not work anymore because of disable_functions | |||
= Install Pear/pecl = | = Install Pear/pecl = | ||
<source lang="bash">apt-get install php-pear | <source lang="bash">apt-get install php-pear libpcre3-dev make | ||
cd /tmp/pear | cd /tmp/pear | ||
rm -r temp | rm -r temp | ||
Zeile 41: | Zeile 41: | ||
<br> | <br> | ||
<br> | <br> | ||
= Install pecl/apc = | = Install pecl/apc = | ||
Zeile 48: | Zeile 48: | ||
</source> | </source> | ||
<br> | |||
<source lang="apache">#/etc/php5/conf.d/apc.ini | |||
extension=apc.so | |||
apc.filters = poller.php | |||
apc.enabled=1 | |||
apc.file_update_protection=2 | |||
apc.optimization=0 | |||
apc.shm_size=300M | |||
apc.shm_segments=1 | |||
apc.gc_ttl=7200 | |||
apc.ttl=7200 | |||
apc.num_files_hint=2048 | |||
apc.enable_cli=1 | |||
</source> | |||
=Links= | |||
*[http://hyponiq.blogspot.de/2009/02/apache-php-multiple-phpini.html Apache & PHP: Multiple PHP.ini Configuration Files] | |||
[[ | [[Kategorie:WWW]] | ||
[[Kategorie:Apache]] | |||
[[Kategorie:PHP]] |
Aktuelle Version vom 30. März 2018, 21:38 Uhr
Config
#/etc/php5/mods-available/zzz_config.ini
# or /etc/php/5.6/mods-available/zzz_config.ini
;#popen needed for cacti
disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,symlink,exec,system,passthru,shell_exec,proc_nice
expose_php = Off
memory_limit = 320M
expose_php = Off
memory_limit = 200M
upload_max_filesize = 10M
post_max_size = 10M
allow_url_fopen = 0
date.timezone = "Europe/Berlin"
session.hash_function = sha512
phpenmod zzz_config
remove /etc/php/5.6/cli/conf.d/20-zzz_config.ini or cacti and co will not work anymore because of disable_functions
Install Pear/pecl
apt-get install php-pear libpcre3-dev make
cd /tmp/pear
rm -r temp
ln -s /var/tmp/pear/temp/
Install pecl/apc
pecl install apc
#/etc/php5/conf.d/apc.ini
extension=apc.so
apc.filters = poller.php
apc.enabled=1
apc.file_update_protection=2
apc.optimization=0
apc.shm_size=300M
apc.shm_segments=1
apc.gc_ttl=7200
apc.ttl=7200
apc.num_files_hint=2048
apc.enable_cli=1