Apache + PHP + Zend configuration in Linux

Source: Internet
Author: User
Tags php compiler
Hello everyone, I am Venmo and my desktop platform is Leopard. Today, this article is about the configuration of Apache + Zend + PHP in the Linux operating system. I hope it will be useful to you! 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

Hello everyone, I am Venmo and my desktop platform is Leopard. Today, this article is about the configuration of Apache + Zend + PHP in the Linux operating system. I hope it will be useful to you! 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

Hello everyone, I am Venmo and my desktop platform is Leopard. Today, this article is about the configuration of Apache + Zend + PHP in the Linux operating system. I hope it will be useful to you!

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. First install Apache

  1. Tar zxvf httpd-x.x.xx.tar.gz // This command is used to decompress Apache, which will generate a httpd-x.x.xxx directory
  2. Cd httpd-x.x.xx // This command is to enter the httpd-x.x.xx directory
  3. ./Configure -- prefix = installation directory -- enable-so -- enable-rewrite // -- enable-rewrite is an optional parameter and can be removed without any need
  4. Make // compile the code
  5. Make install

Continue to install PHP5

  1. Tar zxvf php-x.x.x.tar.gz // This command is used to extract PHP, which will generate a php-x.x.x directory
  2. Cd php-x.x.x // This command is to enter the php-x.x.x directory
  3. . /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 compile parameters, the Apache installation directory can be customized. ini can be placed in any directory. If you do not select ini, it will be in the/etc directory by default. Iconv, mbstring, and ttf are required. Otherwise, some functions of iNewS4 cannot be used!
  4. Make
  5. Make install // After the compilation parameters are configured, You can execute 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 <mv php. ini-dist php. ini>

Finally, we will install Zend.

  1. Tar zxvf ZendOptimizer-xx.x.x-linux-glibc21-i386.tar.gz // decompress Zend to generate the ZendOptimizer directory
  2. Cd ZendOptimizer-xx.x.x-linux-glibc21-i386 // enter the ZendOptimizer directory
  3. ./Install // execute the installation. The installation process requires you to enter the location of Apache and php. ini. After the installation is complete, Zend automatically restarts 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 :) if you have any questions or comments about my article, or have any questions you want to communicate with me please contact me via email: venmos@gmail.com, my blog is http://www.i-nteractive.com.cn/

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.