search
Homephp教程php手册阿里云CentOS 6.3 64位下搭建php运行环境

要安装三个组件 Apache组件httpd、php、Zend Guard Loader(Zend Optimizer 在php5.3.x之后都换成了Zend Guard Loader) 1. 使用最新版的Centos 6.3 里已默认安装好Apache服务组件httpd。 2.Centos 6.3 默认下没有安装php组件,因此我们需要输入命令:yum -y

要安装三个组件 Apache组件httpd、php、Zend Guard Loader(ZendOptimizer在php5.3.x之后都换成了Zend Guard Loader)



1.使用最新版的Centos 6.3 里已默认安装好Apache服务组件httpd。

2.Centos 6.3 默认下没有安装php组件,因此我们需要输入命令:yum -y install php 回车如下图

阿里云CentOS 6.3 64位下搭建php运行环境

使用 rpm -ql php命令查看安装好的php组件,如图:

阿里云CentOS 6.3 64位下搭建php运行环境


3.从http://www.zend.com/en/products/guard/downloads下载ZendGuardLoader-php-5.3-linux-glibc23-x86_64.tar.gz

文件解压后里面有一个ZendGuardLoader.so文件,将此文件上传到/usr/lib64/httpd/modules/目录下面,然后配置php.ini,

使用命令 vi /etc/php.ini,在文件末尾加入

;[Zend Guardrd Loader]
zend_extension=/usr/lib64/httpd/modules/ZendGuardLoader.so
zend_loader.enable=1
zend_loader.disable_licensing=0
zend_loader.obfuscation_level_support=3
zend_loader.license_path=


4修改httpd.conf文件,使用命令vi /etc/httpd/conf/httpd.conf

找到ServerTokens OS 将“OS”改为“Prod “


到此,php运行环境就安装完成了。


5输入命令:vi /var/www/html/test.php 在弹出的对话框里输入信息:

phpinfo();
?>
保存退出。
然后通过你的浏览器输入:http://127.0.0.1/test.php
如出现下图界面,恭喜里php运行环境你配置成功啦。


阿里云CentOS 6.3 64位下搭建php运行环境阿里云CentOS 6.3 64位下搭建php运行环境





Statement
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 Tools

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use