php.ini配置文件修改

vi/usr/local/webserver/php/etc/php.ini

extension_dir="/usr/local/webserver/php/lib/php/extensions/no-debug-non-zts-20100525/"

extension="qqwry.so"

extension="imagick.so"

extension="oci8.so"

extension="pdo_mysql.so"

extension="pdo_oci.so"

修改output_buffering=On

修改cgi.fix_pathinfo=1防止Nginx文件类型错误解析漏洞

short_open_tag设置成On

include_path中需要加上:

include_path=/home/server/web/www/Zdlib:/home/server/web/www/Zdweb

####以下是一些参数大小的设置##

default_charset="UTF-8"

max_execution_time=3000

emory_limit=300M

post_max_size=300M

upload_max_filesize=300M

upload_tmp_dir=/tmp/web

你可能感兴趣的:(PHP,ini配置,文件修改)