Home > Backend Development > PHP Tutorial > PHP configuration details options

PHP configuration details options

黄舟
Release: 2023-03-03 14:16:02
Original
1229 people have browsed it

apache module
Syntax: --with-apache=DIR
Explanation: This option allows PHP to be used as an apache module. The string of DIR can be /usr/local/apache or other directories where apache is installed.
Example: --with-apache=/var/lib/apache

fhttpd server module
Syntax: --with-fhttpd=DIR
Note: If you use fttpd server, you can use this instruction to compile PHP. Using modules to cooperate with the fttpd server can achieve better efficiency.

Adabas D database
Syntax: --with-adabas=DIR
Description: This option is required when the database system is Adabas D database. For details about the Adabas D database, please refer to http://www.adabas.com.
Example: --with-adabas=/usr/local/adabasd

dBase data table
Syntax: --with-dbase
Explanation: As long as you add this option, without other parameters or function libraries, PHP will make the system have Function to access dBase data tables.

filePro database
Syntax: --with-filepro
Description: You can read the filePro database (read-only) without specifying the database path and other function libraries.

mSQL database
Syntax: --with-msql=DIR
Description: Provides access to mSQL database. For more details please refer to the mSQL website http://www.hughes.com.au.
Example: --with-msql=/usr/local/Hughes

MySQL database
Syntax: --with-mysql=DIR
Description: Provides access to MySQL database. For more details, please refer to the MySQL website http://www.tcx.se.
Example: --with-mysql=/usr/local/mysql

iODBC database device
Syntax: --with-iodbc=DIR
Description: Provides ODBC database device for accessing the back-end database. For more details, please refer to the iODBC website http://www.iodbc.org.
Example: --with-iodbc=/usr/local/iodbc

OpenLink ODBC database installation
Syntax: --with-openlink=DIR
Description: Use OpenLink ODBC database installation to access the back-end database. For more details, please refer to the OpenLink ODBC website http://www.openlinksw.com.
Example: --with-openlink=/usr/local/openlink

Oracle database
Syntax: --with-oracle=DIR
Instructions: Use Oracle database. The version of Oracle must be version 7.3 or above. You can also use the environment variable ORACLE_HOME in the PHP program to specify the path to Oracle. For more information about Oracle, please refer to Oracle's website http://www.oracle.com.
Example: --with-oracle=/export/app/oracle/product/7.3.2

PostgreSQL database
Syntax: --with-pgsql=DIR
Instructions: Use PostgreSQL database. For more information about PostgreSQL, please refer to the PostgreSQL website http://www.postgreSQL.org or the Taiwan Mirror website http://postgresql.ccit.edu.tw.
Example: --with-pgsql=/usr/local/pgsql

Solid database
Syntax: --with-solid=DIR
Instructions: Use Solid database. For more information about Solid, please refer to Solid’s website http://www.solidtech.com.
Example: --with-solid=/usr/local/solid

Sybase database
Syntax: --with-sybase=DIR
Instructions: Use Sybase database. For more information about Sybase, please refer to the Sybase website http://www.sybase.com.
Example: --with-sybase=/home/sybase

Sybase-CT database
Syntax: --with-sybase-ct=DIR
Instructions: Use Sybase-CT database.
Example: --with-sybase-ct=/home/sybase

Velocis database
Syntax: --with-velocis=DIR
Instructions: Use Velocis database. For further information on the Velocis database please refer to the Raima website at http://www.raima.com.
Example: --with-velocis=/usr/local/velocis

Customized ODBC database driver
Syntax: --with-custom-odbc=DIR
Description: Use custom ODBC function library. Of course, you must specify the CUSTOM_ODBC_LIBS and CFLAGS variables when using this method. For example, when using Sybase SQL Anywhere on a QNX machine, you may need to configure the system environment variables CFLAGS=-DODBC_QNX, LDFLAGS=-lunix and CUSTOM_ODBC_LIBS="-ldblib -lodbc", and add --with-custom-odbc=/ in the PHP configuration usr/lib/sqlany50
Example: --with-custom-odbc=/usr/local/odbc

Do not use ODBC database driver
Syntax: --disable-unified-odbc
Explanation: Using this option will make all The ODBC database driver does not work. This option does not need to specify a path, and the options affected by this option are --with-iodbc, --with-solid, --with-adabas, --with-velocis and --with-custom-odbc.

LDAP Directory Protocol
Syntax: --with-ldap=DIR
Description: If you want to use the Directory Protocol (Lightweight Directory Access Protocol, LDAP), you must turn on this option. For details about LDAP, please refer to the RFC documents RFC1777 and RFC1778.
Example: --with-ldap=/usr/local/ldap.

mcrypt encoding function library
Syntax: --with-mcrypt=DIR
Note: After installing the mcrypt function library, you can add this when compiling PHP option to allow the program to use the codec function.
Example: --with-mcrypt=/usr/local/include

Sys V signal
Syntax: --enable-sysvsem
Description: To use the SysV signal (semaphores) mechanism, you must turn on this option.

XML support
Syntax: --with-xml
Description: Turning this option on can support the XML parsing library written by James Clark's.

Maintainer Mode
Syntax: --enable-maintainer-mode
Description: This option is generally not turned on unless it is more useful for PHP developers.

Regular expression library
Syntax: --with-system-regex
Description: If you need additional regular expression functions, you can add this option.

PHP configuration file
Syntax: --with-config-file-path=DIR
Description: Used to specify the path of php3.ini or php4.ini for use during PHP initialization.
Example: --with-config-file-path=/usr/local/lib

PHP execution path
Syntax: --with-exec-dir=DIR
Note: Sometimes for system security considerations, PHP will be specified The program must be executed in the directory.
Example: --with-exec-dir=/usr/local/bin

Debug mode
Syntax: --enable-debug
Explanation: This option is generally not used unless it is useful when developing PHP programs. It can display additional error information.

Safe Mode
Syntax: --enable-safe-mode
Description: The default value is on, which can provide more protection for system security.

Variable tracking
Syntax: --enable-track-vars
Description: Allow PHP to track the three variables HTTP_GET_VARS, HTTP_POST_VARS and HTTP_COOKIE_VARS, which are usually turned on.

Automatically add introduction characters
Syntax: --enable-magic-quotes
Description: Allows the program to automatically add backslash introduction characters when executing.

Open the debugger
Syntax: --enable-debugger
Description: Open the built-in PHP debugger. At present, this function is still in the experimental stage and has not yet matured.

Discard path
Syntax: --enable-discard-path
Description: By turning this option on, users will not be able to read .htaccess and other system security-related files through the browser.

High-precision mathematical functions
Syntax: --enable-bcmath
Description: Turn on high-precision functions. This function library must be installed first for this option to be effective.

Force CGI redirection
Syntax: --enable-force-cgi-redirect
Example: If you use CGI VERSION mode to execute PHP settings, turning this option on will increase security. For example, when a user reads http://my.host/cgi-bin/php/secret/doc.html and encounters a hacker-level user who knows the PHP system well, he or she may enter the following URL http://my.host/secret/doc. html to read relevant information. If PHP and Apache are compiled together and PHP becomes part of Apache, you do not need to add this option.

Do not use short tags
Syntax: --disable-short-tags
Explanation: After configuring this option, PHP programs cannot use short tags, you must use < ?php... ?> long tag.

Introduce remote files
Syntax: --enable-url-includes
Description: Configuring this option allows the PHP program to include (include) files in the remote HTTP or FTP server.

Turn off the syntax effect
Syntax: --disable-syntax-hl
Note: Using this option will turn off the color effect of PHP syntax.

Function library path
Syntax: CPPFLAGS=-IDIR and LDFLAGS=-LDIR
Note: If PHP is safe or the function library required for compilation is in a worthy path, you need to add this option, LDFLAGS means the path of the function library, CPPFLAGS means The path to the header file.
Example: LDFLAGS=-L/my/lib/dir CPPFLAGS=-I/my/include/dir ./configure

The above is the content of PHP configuration detailed options. For more related articles, please pay attention to the PHP Chinese website (www. php.cn)!


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template