centos7下安裝php
1.安裝php
#yum install -y php-common php-devel php php-mysql php-cli php-mbstring php-pdo php-gd php-ldap php-odbc php-dba php-bcmath php-xml php-xmlrpc php-pear php-soap php-tidy php-mhash php-fpm php-pecl-memcache
2.安裝apache
#yum -y install httpd httpd-devel
3.測試Apache與PHP互動
#vim /var/www/html/index.php
echo "hello wprld";
phpinfo();
?>
4.重啟apache服務
#ystemctl restart httpd
5.開啟網頁(本機地址為192.168.1.2)
links 192.168.1.2
顯示上面網頁則表明php安裝成功
配置結束
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/2318/viewspace-2809099/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- centos7下安裝php8.0CentOSPHP
- CentOS7安裝php、安裝MySqlCentOSPHPMySql
- centos7下安裝php+memcached簡單記錄CentOSPHP
- CentOS7 下安裝 ElasticsearchCentOSElasticsearch
- centos7下安裝ffmpegCentOS
- centos7下docker安裝CentOSDocker
- centos7下安裝 dockerCentOSDocker
- Centos7下安裝DockerCentOSDocker
- centos7下cobbler安裝配置CentOS
- centos7 下安裝 nodejsCentOSNodeJS
- centos7下安裝tensorflowCentOS
- Centos7下安裝配置RedsocksCentOS
- Centos7下解除安裝dockerCentOSDocker
- centos7原始碼安裝php7CentOS原始碼PHP
- centos7 下安裝redis-4.0.2CentOSRedis
- 騰訊雲centos7下mysql安裝CentOSMySql
- CentOS7下yum安裝MySQL 5.7CentOSMySql
- Centos7下安裝配置elasticsearch 6.3.1CentOSElasticsearch
- CentOS7下安裝mysql8CentOSMySql
- Centos7環境下安裝curlCentOS
- CentOS7下PostgreSQL安裝過程CentOSSQL
- Centos7下dnscrypt-proxy安裝CentOSDNS
- centos7 下安裝zabbix3.0CentOS
- centos7下編譯安裝lnmpCentOS編譯LNMP
- CentOS7下安裝Mysql8.4CentOSMySql
- CentOS7上安裝並配置Nginx、PHP、MySqlCentOSNginxPHPMySql
- centos7搭建lnmp編譯安裝php【一】CentOSLNMP編譯PHP
- Linux下安裝phpLinuxPHP
- CentOS7 下 Nginx 的安裝和配置CentOSNginx
- centos7下安裝Python的pipCentOSPython
- (Linux)CentOS7下安裝JDK 1.8LinuxCentOSJDK
- CentOS7下RabbitMQ服務安裝配置CentOSMQ
- CentOS7下安裝Docker-ComposeCentOSDocker
- centos7下rpm方式安裝mysqlCentOSMySql
- Centos7下安裝配置MySQL5.7CentOSMySql
- centos7下安裝中文字型CentOS
- centos7下安裝Python3.7CentOSPython
- centos7 安裝php7+mysql5.7+nginx+redisCentOSPHPMySqlNginxRedis