PHP3 Chinese document Continuation 1_php Tutorial

Source: Internet
Author: User
Tags code tag dbase driver manager mathematical functions
3rd Chapter Installation This chapter will guide you through how to install and set up PHP3. and introduce the necessary knowledge and software. Basic UNIX Tips (Learn how to manipulate and "make" a C compiler) a standard ANSI C compiler for a Web server (obviously required) to compile and install the source files through UNIX sources the latest code can be found at the following URL: http://www.php.net quick ann Installation instructions (Apache Module version) 1. Gunzip apache_1.3.x.tar.gz 2. Tar xvf Apache_1.3.x.tar 3. Gunzip php-3.0.x.tar.gz 4. Tar xvf Php-3.0.x.tar 5. CD apache_1.3.x 6. ./configure--prefix=/www 7. Cd.. /php-3.0.x 8. ./configure--with-mysql--with-apache=.. /apache_1.3.x--enable-track-vars 9. Make 10. Make install 11. Cd.. /apache_1.3.x 12. ./configure--prefix=/www--activate-module=src/modules/php3/libphp3.a 13. Make 14. Make install Instead of "This step" prefer to simply copy the httpd binaryovertop of your existing binary. Make sure your shut down YourServer first though. (You can also use the direct copy httpd binary file to overwrite the existing binaries instead of the previous step, but you must first shut down your server.) ) 15. Cd.. /php-3.0.x 16. CP Php3.ini-dist/usr/local/lib/php3.ini You can edit/usr/local/lib/php3.ini the file to set PHP options. If you prefer the another location, use--with-config-file=/path IN Step 8. (You can edit the/usr/local/lib/php3.ini file directly to set PHP options, if you are storing this file in a different location, then use With-config-file=/path in step 8) 17. Edit your httpd.conf or srm.conf file and Add:addtype application/x-httpd-php3. PHP3 can choose any extension your WIS h here. . PHP3 is simply the one we suggest. (You can choose any extension you want, we think PHP3 is a very simple thing.) ) 18. Use your normal procedure for starting the Apache server. (You must stop and restart the server, not just cause the server to reload by use a HUP or USR1 signal.) (You must stop and restart the server and not just use the server's reload (reload) feature.) Here are two ways to set PHP3 1. Use the "Setup" scripting language that follows PHP3. The scripting language asks the user a series of questions (most of the "Install" scripting languages like PHP/FI 2.0) Run "Configure" at the end. To run this script, enter: "./setup". The script will also create a file called "do-conf" that will be uploaded to the data set. You can edit this file to change some settings (just some) without having to rerun the Setup program. Then, enter: "./do-conf" Using these options to set. 2. Manual run Settings. To see the settings options you can use, enter: "./configure--help". Details of the different settings will be listed below. Apache mode in accordance with the Apache model to establish PHP3, the question "build as an Apache module?" (built in Apache mode?) You should answer "Yes" (set-with-apache=dir) and then specify the basic directory that Apache allocates. If you've unzipped your Apache provisioning package in "/usr/local/www/apache_1.2.4", then this is the base directory for your Apache assignment. The default directory is "/USR/LOCAL/ETC/HTTPD". FHTTPD mode to build PHP3 according to FHTTPD mode, the question "build as an fhttpd module?" Answer "Yes" (set-with-fhttpd=dir) and specify the source data directory for FHTTPD mode. The default directory is "/USR/LOCAL/SRC/FHTTPD" if you are running FHTTPD, building PHP According to this pattern will provide better performance, stronger control and remote execution capabilities. The default setting for CGI versions is to follow a CGI program to build PHP3. If you are running a Web server-side PHP3 with this mode of support, then generally you will choose this solution for performance reasons. However, the CGI version of PHP3 allows Apache users to run different pages that use PHP3 under different user identities. Please read the section on security carefully, if you will be running PHP in the form of CGI. Database support options PHP has built-in support for many databases (as well as ODBC) Adabas D--with-adabas=dir is compiled with support for Adabas D databases.   This parameter is the installation directory for Adabas D, and the default is/USR/LOCAL/ADABASD.   dBASE--with-dbase activates the support of the built-in dBASE database and does not require an external library.   Filepro activates the built-in read-only Filepro support and does not require an external library. MSQL--with-msql=dir in order to activate MSQL support, the parameter of this option is the installation directory of MSQL, and the default is/usr/local/hughes. This is the default directory for mSQL 2.0 installation. The Configure can automatically detect the mSQL version installed on the system, PHP3 supports 1.0 and 2.0 two versions.   If you compile the PHP3 and mSQL1.0 versions, you can only access the database in 1.0 and replace the scheduling algorithm. MySQL--with-mysql=dir in order to activate MySQL support, the parameter of this option is the installation directory of MySQL, the default is/usr/local/.   This is the default directory for MySQL installation. IODBC--with-iodbc=dir includes support for IODBC. This feature was first developed for the iODBC driver Manager, and iODBC is a free re-released ODBC driver manager that works in many of the UNIX systems. This parameter is IodbC Installation of the directory, the default is/usr/local. OpenLink ODBC--with-openlink=dir includes OpenLink ODBC support.   The parameter for this option is the OpenLink ODBC installation directory, which is/usr/local/openlink by default. Oracle--with-oracle=dir includes Oracle support. After testing, at least Oracle7.0 and 7.3 can work properly.   This parameter is the Oracle_home directory, and you do not have to specify this parameter if your Oracle environment has been prepared. PostgreSQL--with-pgsql=dir includes support for PostgreSQL.   This parameter is the base directory for PostgreSQL when it is installed, and the default is/usr/local/pgsql. Other common databases are supported in much the same way as they are listed above, and refer to the instructions for using the database of your choice when needed. Other compounding options--enable-sysvsem include the SYS V signal (supported by most UNIX systems).   See the signals and shared memory documentation for more information. The--ENABLE-SYSVSHM includes support for SYS V shared memory (supported by most UNIX systems).   See the signals and shared memory documentation for more information. --with-xml includes support for an informal version of XML syntax, using the James Clark's expat library.   See the XML Function guide for details.   --enable-maintainer-mode opens additional correlation and compilation warning messages that are often used by PHP3 developers. --with-system-regex use a library of system regular expressions rather than the one that is tied to it. If you compile PHP3 as a server component, you must use the same library when compiling and connecting to the server.   If you have what you need in your system, open this option, and if possible, recommend using a library bundled with PHP3.   --with-config-file-path This path is used to find the Php3.ini file location when PHP3 is started. --with-exec-dir only allows execution in a directory in Safe mode, which is/usr/local/bin/by default.   This option can only be set to default, and he can then be implemented by modifying the Safe_mode_exec_dir in the configuration file. --disable-debug does not include debugging information in the library or in execution. AdjustableTest information can help you quickly pinpoint the problem, so as long as PHP is still in the alpha or beta testing phase, it's best to keep debugging information. --enable-safe-mode default is to turn on the "Safe_mode" (Safe mode) option, this option imposes some restrictions on PHP functionality, such as you can only open your files under the Web root directory, please read the security chapter for detailed information. CGI users should always keep this option open.   This option can only be set to default, but you can turn this option on or off later by modifying the configuration file (Php3.ini). --enable-track-vars uses PHP3 to save traces of http_cookie_vars from Http_get_vars, Http_post_vars, or Gwt/post/cookie.   This option is set to the default value, and the user can also change its properties (enabled or disabled) later by setting the value of Track_vars in the configuration file. The--enable-magic-quotes setting makes the Magic reference a default value. This option only sets this default, and it can be set to either available or unavailable using the method specified in the configuration file for Magic_quotes_runtime.   Please refer to the relevant content for MAGIC_QUOTES_GPC and magic_quotes_sybase. --enable-debugger activates the intrinsic PHP3 debugger support. This feature is only in the experimental phase.   Please refer to the configuration file for the contents of debugger configuration. --enable-discard-path If this property is set to be available, PHP's binary CGI can be safely placed outside of the wed tree, while others cannot use some special means to gain access.   Please refer to section in the security chapter for this option. --enable-bcmath makes BC-style arbitrary precision mathematical functions available.   Please refer to the configuration file for options on configuration file. --enable-force-cgi-redirect uses a security check to redirect internal servers.   This feature is required if a user runs a CGI program on Apache. When using PHP as a CGI binary, the default, PHP will first check if it is being redirected (for example, using activity instructions on Apache). This confirms that PHP binaries cannot be used to directly invoke the standard Web server authentication program, for example: http://my.host/cgi-bin/php/secret/doc.html.   This example accesses the http://my.host/secret/doc.html, but does not have the security settings httpd for the directory/secret. Do not use this option to turn off this check while using bypass httpd security and identity settings.   If you want to do this, unless your server software does not indicate a secure redirect, the files in both your folder root directory and the user directory will be accessed by anyone.   Please refer to the section on security for this option. --disable-short-tags Prohibition of PHP3 labels for short situations 。 If you want to use XML (Extensible Markup Language), you must disable , then the code tag for PHP is left only The This option can only be set to default.   You can turn this option on or off by modifying the short open tag command in the configuration file. --enable-url-includes through the Include () function, PHP3 can run code directly from other HTTP and FTP sites.   See the Include path option in the configuration file.   --DISABLE-SYNTAX-HL The syntax highlighting feature is turned off. Cppflags and LDFL

http://www.bkjia.com/PHPjc/532203.html www.bkjia.com true http://www.bkjia.com/PHPjc/532203.html techarticle 3rd Chapter Installation This chapter will guide you through how to install and set up PHP3. and introduce the necessary knowledge and software. Basic UNIX skills (Learn how to manipulate and "make" a C compiler) a standard ...

  • 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.