PHP: Unterschied zwischen den Versionen

Aus crazylinux.de
Zur Navigation springen Zur Suche springen
K (init)
(links)
Zeile 1: Zeile 1:
www.php.net  
http://www.php.net


<br>  
<br>  
Zeile 7: Zeile 7:
<source lang="apache">#/etc/php5/apache2/php.ini
<source lang="apache">#/etc/php5/apache2/php.ini


disable_functions = symlink,exec,system,passthru,shell_exec,escapeshellcmd,proc_open,proc_nice,ini_restore
disable_functions = symlink,exec,system,passthru,shell_exec,escapeshellcmd,proc__open,proc_nice,ini_restore
;#popen needed for cacti
;#popen needed for cacti


Zeile 63: Zeile 63:
apc.num_files_hint=2048
apc.num_files_hint=2048
apc.enable_cli=1
apc.enable_cli=1
</source>  
</source>
 
=Links=
*[http://hyponiq.blogspot.de/2009/02/apache-php-multiple-phpini.html Apache & PHP: Multiple PHP.ini Configuration Files]


[[Category:WWW]] [[Category:PHP]]
[[Kategorie:WWW]]
[[Kategorie:Apache]]
[[Kategorie:PHP]]

Version vom 1. September 2013, 22:47 Uhr

http://www.php.net


Config

#/etc/php5/apache2/php.ini

disable_functions = symlink,exec,system,passthru,shell_exec,escapeshellcmd,proc__open,proc_nice,ini_restore
;#popen needed for cacti

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

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