Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure a php development environment in centos7

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article shows you how to configure a php development environment in centos7. The content is concise and easy to understand. It will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

Php what to use php is a nested acronym, is an English hypertext preprocessing language, its syntax mixed C, Java, Perl and php self-innovative syntax, mainly used to do website development, many small websites are developed in php, because php is open source, which makes php enduring.

Installation:

Yum-y install php php-devel php-pear php-mysql

Configuration:

Vim / etc/php.ini

Display_errors = on # allow php to report errors

Upload_max_filesize = 20m # upload file size limit

Memory_limit = 512m # memory usage

Default_socket_timeout =-1 # script timeout, set to unlimited

Full profile reference:

[PHP]

Engine = On

Short_open_tag = Off

Asp_tags = Off

Precision = 14

Output_buffering = 4096

Zlib.output_compression = Off

Implicit_flush = Off

Unserialize_callback_func =

Serialize_precision = 17

Disable_functions =

Disable_classes =

Zend.enable_gc = On

Expose_php = On

Max_execution_time = 30

Max_input_time = 60

Memory_limit = 512m

Error_reporting = E_ALL & ~ E_DEPRECATED & ~ E_STRICT

Display_errors = on

Display_startup_errors = Off

Log_errors = On

Log_errors_max_len = 1024

Ignore_repeated_errors = Off

Ignore_repeated_source = Off

Report_memleaks = On

Track_errors = Off

Html_errors = On

Variables_order = "GPCS"

Request_order = "GP"

Register_argc_argv = Off

Auto_globals_jit = On

Post_max_size = 8m

Auto_prepend_file =

Auto_append_file =

Default_mimetype = "text/html"

Doc_root =

User_dir =

Enable_dl = Off

File_uploads = On

Upload_max_filesize = 20m

Max_file_uploads = 20

Allow_url_fopen = On

Allow_url_include = Off

Default_socket_timeout =-1

[CLI Server]

Cli_server.color = On

[Date]

[filter]

[iconv]

[intl]

[sqlite]

[sqlite3]

[Pcre]

[Pdo]

[Pdo_mysql]

Pdo_mysql.cache_size = 2000

Pdo_mysql.default_socket=

[Phar]

[mail function]

SMTP = localhost

Smtp_port = 25

Sendmail_path = / usr/sbin/sendmail-t-I

Mail.add_x_header = On

[SQL]

Sql.safe_mode = Off

[ODBC]

Odbc.allow_persistent = On

Odbc.check_persistent = On

Odbc.max_persistent =-1

Odbc.max_links =-1

Odbc.defaultlrl = 4096

Odbc.defaultbinmode = 1

[Interbase]

Ibase.allow_persistent = 1

Ibase.max_persistent =-1

Ibase.max_links =-1

Ibase.timestampformat = "% Y-%m-%d% H:%M:%S"

Ibase.dateformat = "% Y-%m-%d"

Ibase.timeformat = "% H:%M:%S"

[MySQL]

Mysql.allow_local_infile = On

Mysql.allow_persistent = On

Mysql.cache_size = 2000

Mysql.max_persistent =-1

Mysql.max_links =-1

Mysql.default_port =

Mysql.default_socket =

Mysql.default_host =

Mysql.default_user =

Mysql.default_password =

Mysql.connect_timeout = 60

Mysql.trace_mode = Off

[MySQLi]

Mysqli.max_persistent =-1

Mysqli.allow_persistent = On

Mysqli.max_links =-1

Mysqli.cache_size = 2000

Mysqli.default_port = 3306

Mysqli.default_socket =

Mysqli.default_host =

Mysqli.default_user =

Mysqli.default_pw =

Mysqli.reconnect = Off

[mysqlnd]

Mysqlnd.collect_statistics = On

Mysqlnd.collect_memory_statistics = Off

[OCI8]

[PostgreSQL]

Pgsql.allow_persistent = On

Pgsql.auto_reset_persistent = Off

Pgsql.max_persistent =-1

Pgsql.max_links =-1

Pgsql.ignore_notice = 0

Pgsql.log_notice = 0

[Sybase-CT]

Sybct.allow_persistent = On

Sybct.max_persistent =-1

Sybct.max_links =-1

Sybct.min_server_severity = 10

Sybct.min_client_severity = 10

[bcmath]

Bcmath.scale = 0

[browscap]

[Session]

Session.save_handler = files

Session.use_cookies = 1

Session.use_only_cookies = 1

Session.name = PHPSESSID

Session.auto_start = 0

Session.cookie_lifetime = 0

Session.cookie_path = /

Session.cookie_domain =

Session.cookie_httponly =

Session.serialize_handler = php

Session.gc_probability = 1

Session.gc_divisor = 1000

Session.gc_maxlifetime = 1440

Session.bug_compat_42 = Off

Session.bug_compat_warn = Off

Session.referer_check =

Session.cache_limiter = nocache

Session.cache_expire = 180

Session.use_trans_sid = 0

Session.hash_function = 0

Session.hash_bits_per_character = 5

Url_rewriter.tags = "axianghrefgrame arearefrereref _ ref _ frame _ r _ c _ entry

[MSSQL]

Mssql.allow_persistent = On

Mssql.max_persistent =-1

Mssql.max_links =-1

Mssql.min_error_severity = 10

Mssql.min_message_severity = 10

Mssql.compatability_mode = Off

Mssql.secure_connection = Off

[Assertion]

[mbstring]

[gd]

[exif]

[Tidy]

Tidy.clean_output = Off

[soap]

Soap.wsdl_cache_enabled=1

Soap.wsdl_cache_dir= "/ tmp"

Soap.wsdl_cache_ttl=86400

Soap.wsdl_cache_limit = 5

[sysvshm]

[ldap]

Ldap.max_links =-1

[mcrypt]

[dba]

The above is how to configure a php development environment in centos7. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report