Apache+php+zend Installation and Configuration _php tutorials

Source: Internet
Author: User
Tags php compiler
My desktop platform is leopard, and using Linux is limited to using servers. The first article does not know what to write good, search for a bit LDCN as if there is no Apz[apache + PHP + Zend] Configuration article, write this today. Hope to build a useful server for beginners!

Apache is an open source HTTP server that can run on most computer operating systems and is popular because of its multi-platform and security. It is fast, reliable, secure, and can be extended with a simple API. Its address is http://httpd.apache.org/.

PHP's full name is hypertext preprocessor, which is widely used in the development of Web-based programming language, especially it can be applied to the development of Web applications and can be embedded in HTML files, its syntax and C, Java and Perl similar syntax, Make it easier to learn and get started. Its address is http://www.php.net/.

Zend is a compiler-like PHP compiler that writes programs that must be translated by the Zend module on the server. There are two advantages to this, one is that the program code is optimized during the compilation process, which makes PHP run more efficiently. Second, you can simply encrypt the PHP code you write if you don't want to share it with Zend. Its server module is Zend Optimizer, and its address is http://www.zend.com/en/products/guard/downloads

First download the latest version on their respective website and upload them to the server, and then use the terminal login to the server to upload files in the directory under the following method to install:

Tar zxvf httpd-x.x.xx.tar.gz

[This command is used to extract Apache, the Httpd-x.x.xxx directory will be generated after decompression]

CD httpd-x.x.xx

[This command is entered into the httpd-x.x.xx directory]

./configure--prefix= installation directory--enable-so--enable-rewrite

[--enable-rewrite is an optional parameter and does not need to be removed]

Make

[Compile code]

Make install

[Start Installation]

Continue installing PHP5 after completion

Tar zxvf php-x.x.x.tar.gz

[This command is used to extract PHP, after decompression will generate php-x.x.x directory]

CD php-x.x.x

[This command is entered into the php-x.x.x directory]

./configure--with-apxs2=apache installation directory/bin/apxs--with-mysql--with-gd--with-jpeg-dir--with-zlib--enable-track-vars --enable-memory-limit=yes--enable-debug=no--enable-ftp=yes--with-config-file-path=php.ini file is in the same directory--with-iconv-- ENABLE-MBSTRING=CN--enable-gd-native-ttf--with-ttf--with-freetype-dir--with-tidy

[This is the configuration of the compilation parameters, the Apache installation directory can be customized, php.ini can be placed in any directory, if you do not choose the default will be in the/etc directory. Iconv, mbstring, and TTF are mandatory options, otherwise you won't be able to use some of INewS4 's features! ]

Make
Make install

[After the configuration compilation parameters are completed, you can execute the two commands to install, after the installation is complete, copy php.ini-dist to the directory you just configured the parameters, and renamed to PHP.ini ]

Finally, let's install Zend.

Tar zxvf zendoptimizer-xx.x.x-linux-glibc21-i386.tar.gz

[Unzip Zend, generate Zendoptimizer directory]

CD zendoptimizer-xx.x.x-linux-glibc21-i386

[Go to Zendoptimizer directory]

./install

[To perform the installation, the installation process will require you to enter the location of Apache and PHP.ini. Zend automatically restarts Apache boot Zend Module after installation is complete]

At this point Apz installation is complete!

Because of the limited space, and Apache2 and MySQL there are too many places to write. So I'm going to write the configuration of Apache2 and MySQL separately! These two articles are expected to be completed within one weeks:)

Thank you from the Linux Desktop Chinese network: installation and configuration of Apache + PHP + Zend the manuscript.

    1. Lamp website Development Gold Combination linux+apache+mysql+php
    1. Full transcript of PHP project development
    1. New Installation Apache2,php5,mysql5,zend under Win XP

http://www.bkjia.com/PHPjc/589413.html www.bkjia.com true http://www.bkjia.com/PHPjc/589413.html techarticle My desktop platform is leopard, and using Linux is limited to using servers. The first article does not know what to write good, search for a bit LDCN as if there is no Apz[apache + PHP + Zend] Configuration article ...

  • Related Article

    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.