Installation and configuration of Apache + PHP + Zend

Source: Internet
Author: User
Tags php compiler

My desktop platform is Leopard and Linux is only limited to servers. I don't know what to write in the first article. I searched for LDCN and it seems that there is no configuration article for APZ [apache + PHP + Zend]. Let's write this article today. It is intended to be useful for beginners who want to build servers!

Apache is an open-source Http server that can run in most computer operating systems. It is very popular due to its multi-platform and security. It is fast, reliable, and secure, and can be expanded through simple APIs. Its address is http://httpd.apache.org/

The full name of PHP is Hypertext Preprocessor. It is widely used in Web application development, especially for Web application development and embedded HTML files, its syntax is similar to C, Java, Perl, and other syntaxes, making it easier to learn. Its address is http://www.php.net/

Zend is a PHP compiler similar to the compiler. Programs Written with it must be translated through the Zend module on the server. This solution has two advantages: one is to optimize the program code during the compilation process, so that PHP runs more efficiently. Second, you can simply Encrypt Your PHP code through Zend, if you don't want to share it with others ). Its server module is Zend Optimizer and its address is http://www.zend.com/en/products/guard/downloads

First, download the latest versions from their respective websites and upload them to the server. Then, use Terminal to log on to the directory where the files are uploaded on the server and install them as follows:

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

[This command is used to extract Apache, which will generate a httpd-x.x.xxx directory after decompression]

Cd httpd-x.x.xx

[This command is to enter the httpd-x.x.xx Directory]

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

[-- Enable-rewrite is an optional parameter and can be removed without any need]

Make

[Compile code]

Make install

[Start installation]

Continue to install PHP5

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

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

Cd php-x.x.x

[This command is to enter 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. directory of the INI file -- with-iconv -- enable-mbstring = cn -- enable-gd-native-ttf -- with-freetype-dir -- with-tidy

[This is the configuration compilation parameter. The Apache installation directory can be customized. php. ini can be placed in any directory. If you do not select it, it will be in the/etc directory by default. Iconv, mbstring, and ttf are required. Otherwise, some functions of iNewS4 cannot be used.]

Make
Make install

[After the compilation parameters are configured, you can run these two commands for installation. After the installation is complete, copy php. ini-dist enter the directory you entered When configuring the parameters, and change it to php. ini ]

Finally, we will install Zend.

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

[Decompress Zend to generate the ZendOptimizer Directory]

Cd ZendOptimizer-xx.x.x-linux-glibc21-i386

[Go To The ZendOptimizer Directory]

./Install

[Run the installation. The installation process requires you to enter the location of Apache and php. ini. After the installation is complete, Zend will automatically restart Apache to start the Zend module]

Now APZ has been installed!

Due to limited space, Apache2 and MySQL have too many writeable places. So I plan to write the configuration sheets of Apache2 and MySQL separately! These two articles are expected to be completed within one week :)

Thanks to the Chinese network from the Linux Desktop:Installation and configuration of Apache + PHP + Zend.

  1. LAMP website development golden combination Linux + Apache + MySQL + PHP
  1. Full PHP project development recording
  1. Install Apache2, PHP5, MYSQL5, and Zend in Windows XP

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.