PHP configuration details options
In terms of detailed options, in addition to the above installation introduction, other options can also be added during compilation.
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
Custom ODBC database driver
Syntax: --with-custom-odbc=DIR
Description: Use a 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
For more related articles, please pay attention to the PHP Chinese website (www.php.cn)!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











PHP is a scripting language widely used on the server side, especially suitable for web development. 1.PHP can embed HTML, process HTTP requests and responses, and supports a variety of databases. 2.PHP is used to generate dynamic web content, process form data, access databases, etc., with strong community support and open source resources. 3. PHP is an interpreted language, and the execution process includes lexical analysis, grammatical analysis, compilation and execution. 4.PHP can be combined with MySQL for advanced applications such as user registration systems. 5. When debugging PHP, you can use functions such as error_reporting() and var_dump(). 6. Optimize PHP code to use caching mechanisms, optimize database queries and use built-in functions. 7

PHP and Python each have their own advantages, and the choice should be based on project requirements. 1.PHP is suitable for web development, with simple syntax and high execution efficiency. 2. Python is suitable for data science and machine learning, with concise syntax and rich libraries.

PHP and Python each have their own advantages, and choose according to project requirements. 1.PHP is suitable for web development, especially for rapid development and maintenance of websites. 2. Python is suitable for data science, machine learning and artificial intelligence, with concise syntax and suitable for beginners.

PHP is widely used in e-commerce, content management systems and API development. 1) E-commerce: used for shopping cart function and payment processing. 2) Content management system: used for dynamic content generation and user management. 3) API development: used for RESTful API development and API security. Through performance optimization and best practices, the efficiency and maintainability of PHP applications are improved.

PHP is still dynamic and still occupies an important position in the field of modern programming. 1) PHP's simplicity and powerful community support make it widely used in web development; 2) Its flexibility and stability make it outstanding in handling web forms, database operations and file processing; 3) PHP is constantly evolving and optimizing, suitable for beginners and experienced developers.

PHP is mainly procedural programming, but also supports object-oriented programming (OOP); Python supports a variety of paradigms, including OOP, functional and procedural programming. PHP is suitable for web development, and Python is suitable for a variety of applications such as data analysis and machine learning.

PHP is suitable for web development, especially in rapid development and processing dynamic content, but is not good at data science and enterprise-level applications. Compared with Python, PHP has more advantages in web development, but is not as good as Python in the field of data science; compared with Java, PHP performs worse in enterprise-level applications, but is more flexible in web development; compared with JavaScript, PHP is more concise in back-end development, but is not as good as JavaScript in front-end development.

PHP and Python have their own advantages and disadvantages, and the choice depends on project needs and personal preferences. 1.PHP is suitable for rapid development and maintenance of large-scale web applications. 2. Python dominates the field of data science and machine learning.
