Configuration detail options for PHP

Source: Internet
Author: User
Tags end expression odbc mysql variables sybase sybase database oracle database
On detailed options, you can add additional options at compile time, in addition to the installation brief described above.

Apache Module
Syntax:--with-apache=dir
Description: Use this option to let PHP use Apache module, DIR's string can be/usr/local/apache or other installed Apache directory
Example:--with-apache=/var/lib/apache

FHTTPD Server Module
Syntax:--with-fhttpd=dir
Note: If you use the FTTPD server, you can use this directive to compile PHP. With the modular approach to FTTPD server, you can have better efficiency.

Adabas D Database
Syntax:--with-adabas=dir
Note: This option is required when the database system is a Adabas D database. For details on the Adabas D database, refer to http://www.adabas.com.
Example:--WITH-ADABAS=/USR/LOCAL/ADABASD

DBase Data Sheet
Syntax:--with-dbase
Note: As long as this option, without other parameters or library of functions, PHP will allow the system to access the DBase data table function.

Filepro Database
Syntax:--with-filepro
Note: 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 the mSQL database. For more details please refer to mSQL's 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 an ODBC database device for accessing back-end databases. For more details please refer to iODBC's website http://www.iodbc.org.
Example:--WITH-IODBC=/USR/LOCAL/IODBC

OpenLink ODBC Database Device
Syntax:--with-openlink=dir
Note: Use the OpenLink ODBC database appliance to access back-end databases. 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
Description: Use Oracle database. Oracle versions are to be in version 7.3. You can also use environment variable Oracle_home in your 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
Description: Use the PostgreSQL database. For more information on PostgreSQL, please refer to PostgreSQL's website http://www.postgreSQL.org or Mirror station HTTP://POSTGRESQL.CCIT.EDU.TW in Taiwan.
Example:--with-pgsql=/usr/local/pgsql

Solid Database
Syntax:--with-solid=dir
Description: Use the Solid database. For more information on Solid, please refer to Solid's website http://www.solidtech.com.
Example:--with-solid=/usr/local/solid

Sybase Database
Syntax:--with-sybase=dir
Description: Use Sybase database. For more information on Sybase, please refer to Sybase's website http://www.sybase.com.
Example:--with-sybase=/home/sybase

SYBASE-CT Database
Syntax:--with-sybase-ct=dir
Description: Use the SYBASE-CT database.
Example:--with-sybase-ct=/home/sybase

Velocis Database
Syntax:--with-velocis=dir
Description: Use the VELOCIS database. For further information on the VELOCIS database, please refer to the Raima company's website http://www.raima.com.
Example:--with-velocis=/usr/local/velocis

Customizing an ODBC database driver
Syntax:--with-custom-odbc=dir
Description: Use the custom ODBC function library. Of course, you specify the custom_odbc_libs and Cflags variables when using this method. For example, when using Sybase SQL Anywhere on QNX machines, you might configure system environment variables CFLAGS=-DODBC_QNX, Ldflags=-lunix, and custom_odbc_libs= "-ldblib-lodbc" and HP Configuration Join--WITH-CUSTOM-ODBC=/USR/LIB/SQLANY50
Example:--WITH-CUSTOM-ODBC=/USR/LOCAL/ODBC

Do not use an ODBC database driver
Syntax:--DISABLE-UNIFIED-ODBC
Description: Use this option to make all ODBC database drivers not work. This option does not 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
Note: To use the Directory Protocol (Lightweight directory Access Protocol, LDAP) You must turn this option on. For details about LDAP, refer to the RFC1777 and RFC1778 of the RFC file.
Example:--with-ldap=/usr/local/ldap.

MCrypt coded function Library
Syntax:--with-mcrypt=dir
Note: When the MCrypt function library is installed, you can add this option when compiling PHP so that the program can use the codec function.
Example:--with-mcrypt=/usr/local/include

Sys V Signal
Syntax:--enable-sysvsem
Note: To use the SYSV signal (semaphores) mechanism, turn this option on.

XML Support
Syntax:--with-xml
Description: Open this option to support the XML parser library written by James Clark.

Maintenance Mode
Syntax:--enable-maintainer-mode
Note: This option is not normally open unless it is useful for PHP developers.

Regular Expression Program Library
Syntax:--with-system-regex
Note: If you need additional regular expression functionality, you can add this option.

PHP configuration file
Syntax:--with-config-file-path=dir
Description: Use to specify the Php3.ini or Php4.ini path for PHP initialization.
Example:--with-config-file-path=/usr/local/lib

PHP Execution Path
Syntax:--with-exec-dir=dir
Note: Sometimes for system security considerations, you will specify in which directory the PHP program must be executed.
Example:--with-exec-dir=/usr/local/bin

Debug mode
Syntax:--enable-debug
Note: This option is generally not used unless it is useful to develop PHP programs. It can display additional error messages.

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

Variable tracking
Syntax:--enable-track-vars
Description: Allow PHP to track Http_get_vars, Http_post_vars and http_cookie_vars three variables, usually open.

Introducing characters automatically
Syntax:--enable-magic-quotes
Description: Allows the program to automatically add the backslash character when it is executed.

To open the debugger
Syntax:--enable-debugger
Description: Open the built-in PHP debugger. At present, this function is still in the experimental stage, not yet mature.

Cancel path (discard path)
Syntax:--enable-discard-path
Note: When this option is turned on, users will not be able to read. htaccess and system security related files through the browser.

Mathematical function of high precision
Syntax:--enable-bcmath
Description: Open the high precision function. This function library must be installed before this option is available.

Forcing a CGI redirect
Syntax:--enable-force-cgi-redirect
Example: If you use CGI VERSION mode to perform PHP, opening this option can increase security. For example, users read http://my.host/cgi-bin/php/secret/doc.html encounter a more understanding of the PHP system hacker-level users may have entered the following URL http://my.host/secret/doc.html To read the relevant information. If PHP and Apache are compiled together to make PHP a part of Apache, you don't need to add this option.

Do not use a short mark
Syntax:--disable-short-tags
Description: After configuring this option, the PHP program can not use the short. .... ? > mark, must use <?php ...? Long marks for >.

Introduction of the distal stall ning
Syntax:--enable-url-includes
Description: Configure this option to allow PHP programs to introduce (include) remote HTTP or FTP server files.

Turn off grammar effects
Syntax:--DISABLE-SYNTAX-HL
Description: Use this option to turn off the color effect of the PHP syntax.

function library Path
Grammar: Cppflags=-idir and Ldflags=-ldir
Description: If PHP is in a secure or compiled function library in a worthwhile path, you need to add this option, Ldflags represents the path to the function library, Cppflags represents the path to the header file.
Example: Ldflags=-l/my/lib/dir cppflags=-i/my/include/dir./configure

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.