PHP: Unterschied zwischen den Versionen

Aus crazylinux.de
Zur Navigation springen Zur Suche springen
K (→‎Config: xx)
K (→‎Config: post)
Zeile 12: Zeile 12:
expose_php = Off
expose_php = Off
memory_limit = 320M
memory_limit = 320M
include_path = ".:/usr/share/php"
#include_path = ".:/usr/share/php"


post_max_size = 10M
upload_max_filesize = 10M
upload_max_filesize = 10M


Zeile 20: Zeile 21:
allow_url_fopen = Off
allow_url_fopen = Off


upload_tmp_dir =/tmp
#upload_tmp_dir =/tmp


; Defines the default timezone used by the date functions
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
; http://php.net/date.timezone
date.timezone = "Europe/Berlin"
date.timezone = "Europe/Berlin"


session.hash_function = sha512</source>  
session.hash_function = sha512</source>  

Version vom 10. Dezember 2016, 21:05 Uhr

http://www.php.net


Config

#/etc/php5/apache2/php.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,escapeshellcmd,proc_open,proc_nice

expose_php = Off
memory_limit = 320M
#include_path = ".:/usr/share/php"

post_max_size = 10M
upload_max_filesize = 10M

; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
; http://php.net/allow-url-fopen
allow_url_fopen = Off

#upload_tmp_dir =/tmp

; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = "Europe/Berlin"

session.hash_function = sha512


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

Links