目的
まずは HelloWorld から!
目次
- 前提
- index.phpファイルを作る
- コードを書く
前提
- ドキュメントルート: /var/www/html
- URL: https://192.168.56.110/
index.php ファイルを作る
$ cd /var/www/html
$ sudo mkdir stampede
$ cd stampede
$ sudo touch index.php
コードを書く
$ sudo vi index.php
index.php
<?php
echo 'HelloWorld';
(ZZで保存)
// エスケープキーが効かなくてviのモード切替ができない場合は、
// Ctrl + c でモードを切り替えてから ZZ で保存する
次の記事
[オレオレ02] シンボリックリンク
前の記事
オレオレフレームワークの作り方