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下安裝ffmpegCentOS
- centos7下安裝 dockerCentOSDocker
- CentOS7 下安裝 ElasticsearchCentOSElasticsearch
- centos7 下安裝 nodejsCentOSNodeJS
- centos7下docker安裝CentOSDocker
- centos7下cobbler安裝配置CentOS
- CentOS7上安裝並配置Nginx、PHP、MySqlCentOSNginxPHPMySql
- CentOS7下yum安裝MySQL 5.7CentOSMySql
- Centos7下安裝配置elasticsearch 6.3.1CentOSElasticsearch
- (Linux)CentOS7下安裝JDK 1.8LinuxCentOSJDK
- Centos7環境下安裝curlCentOS
- centos7 下安裝redis-4.0.2CentOSRedis
- CentOS7下安裝Mysql8.4CentOSMySql
- centos7下安裝Python3.7CentOSPython
- CentOS7下PostgreSQL安裝過程CentOSSQL
- centos7下安裝Python的pipCentOSPython
- CentOS7下安裝mysql8CentOSMySql
- Jupyter Notebook 下安裝 PHP 核心PHP
- 騰訊雲centos7下mysql安裝CentOSMySql
- centos7下安裝中文字型CentOS
- CentOS7 下 Nginx 的安裝和配置CentOSNginx
- CentOS7下RabbitMQ服務安裝配置CentOSMQ
- Centos7下安裝配置MySQL5.7CentOSMySql
- centos7 yum安裝php5.6以及擴充套件CentOSPHP套件
- centos7 下安裝laravel 執行環境CentOSLaravel
- CentOS7下RabbitMQ3.7安裝與配置CentOSMQ
- centos7環境下安裝CM、CDH(未完)CentOS
- Centos7或RedHat7下安裝MysqlCentOSRedhatMySql
- Centos7下原始碼編譯安裝apacheCentOS原始碼編譯Apache
- Windows下安裝 Apache PHP Mysql RedisWindowsApachePHPMySqlRedis
- Centos7安裝安裝部署dockerCentOSDocker
- CentOS7 yum 安裝 nginx 和 PHP7 訪問白屏CentOSNginxPHP
- CentOS7編譯安裝php7.1配置教程詳解CentOS編譯PHP
- Mac下Nginx、PHP、MySQL 和 PHP-fpm安裝配置MacNginxPHPMySql
- 如何在centos7環境下安裝notepad++CentOS