您的位置:首页 > 运维架构 > Apache

linux 安装apache ,php,mysql

2017-10-20 21:26 489 查看
1、安装apache使用yum命令安装Apache
yum
–y
install
httpd
设置开机启动Apachechkconfig --levels 235 httpd on启动Apacheservice httpd start |restart2、安装php查看安装的php版本,yum list installed | grep php 如果php版本过低,删除已安装版本,默认的php安装版本较低  yum remove php.x86_64 php-cli.x86_64 php-common.x86_64 php-gd.x86_64 php-ldap.x86_64 php-mbstring.x86_64 php-mcrypt.x86_64 php-mysql.x86_64 php-pdo.x86_64 追加CentOS 6.5的epel及remi源。
rpm -Uvh http:
//ftp.iij.ad.jp/pub/linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh http:
//rpms.famillecollet.com/enterprise/remi-release-6.rpm
[/code]安装php5.6及扩展yum install --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-devel php-mbstring php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhprof

                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: