close

centos.png

輸入指令

yum -y install php php-mbstring php-pear

1.JPG

修改php.ini檔案,輸入指令

vi /etc/php.ini

2.JPG

搜尋到date.timezone,將;date.timezone =修改為date.timezone = "Asia/Taipei"

3.JPG

輸入指令,重新啟動Apache

systemctl restart httpd

4.JPG

建立index.php來做測試,輸入指令

cd /var/www/html

vi undex.php

5.JPG

程式為檢視php相關資訊,

<?php

 phpinfo();

?>

6.JPG

在網頁輸入網址,可得到下列訊息,

7.JPG

arrow
arrow

    鄭智遠 發表在 痞客邦 留言(0) 人氣()