Centos7 Configuring PHP

Source: Internet
Author: User
Tags ibase soap ldap mssql tidy

  • Installation:
    yum  -y  install  php  php-devel  php-pear  php-mysql
  • Configuration:
    Vim/etc/php.ini
    display_errors = on  #  允许php报告错误upload_max_filesize = 20M  #  上传文件大小限制memory_limit = 512M  #  内存使用量default_socket_timeout = -1  #  脚本超时时间,设置为无期限
  • Full configuration File Reference:
    [Php]engine = Onshort_open_tag = Offasp_tags = Offprecision = 14output_buffering = 4096zlib.output_compression = Offimplic It_flush = Offunserialize_callback_func =serialize_precision = 17disable_functions =disable_classes =zend.enable_gc = onexpose_php = Onmax_execution_time = 30max_input_time = 60memory_limit = 512merror_reporting = E_ALL & ~E_DEPRECATED & ~e_strictdisplay_errors = Ondisplay_startup_errors = Offlog_errors = Onlog_errors_max_len = 1024ignore_repeated_ Errors = Offignore_repeated_source = Offreport_memleaks = Ontrack_errors = Offhtml_errors = Onvariables_order = "GPCS" requ Est_order = "GP" register_argc_argv = Offauto_globals_jit = Onpost_max_size = 8mauto_prepend_file =auto_append_file = Default_mimetype = "text/html" doc_root =user_dir =enable_dl = offfile_uploads = Onupload_max_filesize = 20Mmax_file_ uploads = 20allow_url_fopen = Onallow_url_include = Offdefault_socket_timeout = -1[cli Server]cli_server.color = On[Date] [Filter] [Iconv] [Intl] [SQLite] [Sqlite3] [Pcre] [Pdo][pdo_mysql]pdo_mysql.cache_size = 2000pdo_mysql.default_socket=[phar][mail Function]SMTP = Localhostsmtp_port = 25sendmail_path =/usr/sbin/sendmail-t-imail.add_x_header = On[sql]sql.safe_mode = Off[odbc]odbc.allow_persistent = Onodbc.check_persistent = Onodbc.max_persistent = -1odbc.max_links = -1ODBC.DEFAULTLRL = 4096odbc.defaultbinmode = 1[ Interbase]ibase.allow_persistent = 1ibase.max_persistent = -1ibase.max_links = -1ibase.timestampformat = "%Y-%m-%d%H:% m:%s "Ibase.dateformat ="%y-%m-%d "Ibase.timeformat ="%h:%m:%s "[mysql]mysql.allow_local_infile = Onmysql.allow_ Persistent = Onmysql.cache_size = 2000mysql.max_persistent = -1mysql.max_links = -1mysql.default_port =mysql.default_ Socket =mysql.default_host =mysql.default_user =mysql.default_password =mysql.connect_timeout = 60mysql.trace_mode = Off[mysqli]mysqli.max_persistent = -1mysqli.allow_persistent = Onmysqli.max_links = -1mysqli.cache_size = 2000mysqli.default_port = 3306mysqli.default_socket =mysqli.default_host =mysqlI.default_user =MYSQLI.DEFAULT_PW =mysqli.reconnect = Off[mysqlnd]mysqlnd.collect_statistics = Onmysqlnd.collect_ Memory_statistics = Off[oci8][postgresql]pgsql.allow_persistent = Onpgsql.auto_reset_persistent = Offpgsql.max_ Persistent = -1pgsql.max_links = -1pgsql.ignore_notice = 0pgsql.log_notice = 0[sybase-ct]sybct.allow_persistent = Onsybct.max_persistent = -1sybct.max_links = -1sybct.min_server_severity = 10sybct.min_client_severity = 10[bcmath] Bcmath.scale = 0[browscap][session]session.save_handler = Filessession.use_cookies = 1session.use_only_cookies = 1session.name = Phpsessidsession.auto_start = 0session.cookie_lifetime = 0session.cookie_path =/session.cookie_domain =session.cookie_httponly =session.serialize_handler = phpsession.gc_probability = 1session.gc_divisor = 1000session.gc_maxlifetime = 1440session.bug_compat_42 = Offsession.bug_compat_warn = Offsession.referer_check = Session.cache_limiter = Nocachesession.cache_expire = 180session.use_trans_sid = 0session.hash_function = 0session.hash_bits_per_character = 5url_rewriter.tags = "A=href,area=href,frame=src,input=src,form=fakeentry" [mssql]mssql.allow_persistent = onmssql.max_persistent = -1mssql.max_links = -1mssql.min_error_severity = 10mssql.min_ message_severity = 10mssql.compatability_mode = Offmssql.secure_connection = Off[assertion][mbstring][gd][exif][tidy ]tidy.clean_output = off[soap]soap.wsdl_cache_enabled=1soap.wsdl_cache_dir= "/tmp" soap.wsdl_cache_ttl= 86400soap.wsdl_cache_limit = 5[sysvshm][ldap]ldap.max_links = -1[mcrypt][dba]
  • Centos7 Configuring PHP

    Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.