Linux 系统安装配置PHP服务(源码安装)
简介:
PHP(外文名:PHP: Hypertext Preprocessor,中文名:“超文本预处理器”)是一种通用开源脚本语言。语法吸收了C语言、Java和Perl的特点,利于学习,使用广泛,主要适用于Web开发领域。
标注:
配置nginx请参考此教程:
配置mysql请参考此教程:
配置网络yum源参考此教程:
需要安装以下安装包:(使用网络yum源在线安装以下四个依赖包,本教程大部分使用下载的源码安装进行编译安装)
[root@ssticentos65 src]# yum -y install libcurl-devel (必须安装)
[root@ssticentos65 src]# yum -y install libXpm-devel (必须安装)
若提示安装失败,则需要单独下载包安装
[root@tmaster zabbix]# yum -y install libXpm-devel
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
file:///mnt/cdrom/Server/repodata/repomd.xml: [Errno 14] Could not open/read file:///mnt/cdrom/Server/repodata/repomd.xml
Trying other mirror.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package libXpm-devel.x86_64 0:3.5.10-2.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=======================================================================================================
Package Arch Version Repository Size
=======================================================================================================
Installing:
libXpm-devel x86_64 3.5.10-2.el6 EL 33 k
Transaction Summary
==========================================&