PHP を動作させる2014/01/01 |
|
PHP スクリプトを 使えるようにしておきます。
|
|
| [1] | PHP インストール |
|
[root@www ~]#
[root@www ~]# yum -y install php php-mbstring php-pear systemctl restart httpd.service |
| [2] | PHPテストページを作成して動作確認をします。作成したテストページにWebブラウザでアクセスして、以下のようなページが表示されればOKです。 |
|
[root@www ~]#
vi /var/www/html/index.php
<html>
<body>
<div style="width: 100%; font-size: 40px; font-weight: bold; text-align: center;">
<?php
print Date("Y/m/d");
?>
</div>
</body>
</html>
|
|
| Sponsored Link |
|
|