Home  >  Article  >  Backend Development  >  centOS 自动安装php

centOS 自动安装php

WBOY
WBOYOriginal
2016-06-23 14:28:45869browse

centos下安装php

#yum install -y php

这个只安装PHP

建议安装运行库及MySQL的支持

#yum install -y php php-devel php-mysql

如果你的系统是CentOS 5.6那么上面这条命令安装的是PHP 5.1,

要安装 PHP 5.3则执行下面的命令:

#yum install -y php53 php53-devel php53-mysql

自动安装启动
#service httpd restart

会安装apache(也就是httpd),但是不会安装MySQL,MySQL需要单独安装. 安装MySQL命令: #yum install -y mysql mysql-devel mysql-server 这条命令包括MySQL的运行库及服务端

 

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
Previous article:php.net新闻拦截Next article:PHP读取文件内容