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
- Tar zxvf httpd-x.x.xx.tar.gz // This command is used to decompress Apache, which will generate a httpd-x.x.xxx directory
- 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 the code
- Make install
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
- 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 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!
- Make
- 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.
- 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 // enter the ZendOptimizer directory
- ./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/