Home Backend Development PHP Tutorial Installation and configuration of Apache+PHP+Zend_PHP tutorial

Installation and configuration of Apache+PHP+Zend_PHP tutorial

Jul 13, 2016 pm 05:19 PM
linux use Install platform yes desktop of Configuration

我的桌面平台是Leopard,使用Linux也只是限于使用服务器。第一篇文章不知道写什么好,搜索了一下LDCN好像没有APZ[apache + PHP + Zend]的配置文章,今天就写这个吧。希望对服务器搭建初学者有用!

Apache是一种开放源码的Http服务器,可以在大多数计算机操作系统中运行,由于其多平台性与安全性使其非常流行。它快速、可靠、安全,并可以通过简单的API进行扩展。它的地址是http://httpd.apache.org/

PHP的全名为Hypertext Preprocessor,它是被广泛运用在网页程序开发的语言,尤其是它能适用于网页程序的开发以及能够嵌入HTML文件之中,它的语法和C、Java以及Perl等语法相似,使得它学习起来更容易上手。它的地址是http://www.php.net/

Zend是一个类似于编译器的PHP编译器,用它写的程序必须通过服务器上的Zend模块进行翻译。这样做有两个好处,一是编译过程中对程序代码进行优化处理,使得PHP的运行效率更高。二是通过Zend可以简单的将你编写的PHP代码进行加密如果你不打算与人分享的话)。它的服务器模块是Zend Optimizer,它的地址是http://www.zend.com/en/products/guard/downloads

首先上它们各自的网站下载最新版本并将它们上传到服务器上,然后通过Terminal登陆到服务器上传文件的目录下按以下方法进行安装:

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

[这条命令是用来解压缩Apache,解压之后会生成httpd-x.x.xxx目录]

cd httpd-x.x.xx

[这条命令是进入httpd-x.x.xx目录]

./configure --prefix=安装目录 --enable-so --enable-rewrite

[--enable-rewrite是可选参数,不需要可去掉]

make

[编译代码]

make install

[开始安装]

完成之后继续安装PHP5

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

[这条命令是用来解压缩PHP,解压之后会生成php-x.x.x目录]

cd php-x.x.x

[这条命令是进入php-x.x.x目录]

./configure --with-apxs2=apache的安装目录/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文件所在的目录 --with-iconv --enable-mbstring=cn --enable-gd-native-ttf --with-ttf --with-freetype-dir --with-tidy

[这是配置编译参数,Apache安装目录可以自定义,php.ini可以放置在任何目录,如果不做选择的话默认会在/etc目录下。iconv、mbstring和ttf是必选项,否则将不能使用iNewS4的部分功能!]

make
make install

[After configuring the compilation parameters, you can execute these two commands to install. After the installation is complete, copy php.ini-dist to the directory you just entered when configuring the parameters, and rename it to php.ini ]

Finally let’s install Zend

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

[Unzip Zend and the ZendOptimizer directory will be generated]

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

[Enter ZendOptimizer directory]

./install

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

Now the APZ installation is complete!

Due to limited space, and there are too many places to write about Apache2 and MySQL. So I plan to write the configurations of Apache2 and MySQL separately! These two articles are expected to be completed within a week:)

Thanks for the contribution from Linux Desktop Chinese Network: Apache + PHP + Zend installation and configuration .

  1. LAMP website development golden combination Linux+Apache+MySQL+PHP
  1. Record of the whole process of PHP project development
  1. New installation of Apache2, PHP5, MYSQL5, Zend under Win XP

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/589413.htmlTechArticleMy desktop platform is Leopard, and the use of Linux is limited to the server. I don’t know what to write in this first article. I searched LDCN and it seems that there is no configuration article for APZ [apache + PHP + Zend]...
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1670
14
PHP Tutorial
1274
29
C# Tutorial
1256
24
Linux Architecture: Unveiling the 5 Basic Components Linux Architecture: Unveiling the 5 Basic Components Apr 20, 2025 am 12:04 AM

The five basic components of the Linux system are: 1. Kernel, 2. System library, 3. System utilities, 4. Graphical user interface, 5. Applications. The kernel manages hardware resources, the system library provides precompiled functions, system utilities are used for system management, the GUI provides visual interaction, and applications use these components to implement functions.

How to check the warehouse address of git How to check the warehouse address of git Apr 17, 2025 pm 01:54 PM

To view the Git repository address, perform the following steps: 1. Open the command line and navigate to the repository directory; 2. Run the "git remote -v" command; 3. View the repository name in the output and its corresponding address.

How to run java code in notepad How to run java code in notepad Apr 16, 2025 pm 07:39 PM

Although Notepad cannot run Java code directly, it can be achieved by using other tools: using the command line compiler (javac) to generate a bytecode file (filename.class). Use the Java interpreter (java) to interpret bytecode, execute the code, and output the result.

How to run sublime after writing the code How to run sublime after writing the code Apr 16, 2025 am 08:51 AM

There are six ways to run code in Sublime: through hotkeys, menus, build systems, command lines, set default build systems, and custom build commands, and run individual files/projects by right-clicking on projects/files. The build system availability depends on the installation of Sublime Text.

What is the main purpose of Linux? What is the main purpose of Linux? Apr 16, 2025 am 12:19 AM

The main uses of Linux include: 1. Server operating system, 2. Embedded system, 3. Desktop operating system, 4. Development and testing environment. Linux excels in these areas, providing stability, security and efficient development tools.

laravel installation code laravel installation code Apr 18, 2025 pm 12:30 PM

To install Laravel, follow these steps in sequence: Install Composer (for macOS/Linux and Windows) Install Laravel Installer Create a new project Start Service Access Application (URL: http://127.0.0.1:8000) Set up the database connection (if required)

git software installation git software installation Apr 17, 2025 am 11:57 AM

Installing Git software includes the following steps: Download the installation package and run the installation package to verify the installation configuration Git installation Git Bash (Windows only)

How to use sublime shortcut keys How to use sublime shortcut keys Apr 16, 2025 am 08:57 AM

Sublime Text provides shortcuts to improve development efficiency, including commonly used (save, copy, cut, etc.), editing (indentation, formatting, etc.), navigation (project panel, file browsing, etc.), and finding and replacing shortcuts. Proficiency in using these shortcut keys can significantly improve Sublime's efficiency.

See all articles