/opt/lampp/lampp start
でサーバー起動
cd /opt/lampp/htdocs
このhtdocs内がサイトのトップのような存在。
ここに
mktemp test.pl
で新しいファイル「test.pl」を作成。
chmod 755 test.pl
でパーミッションを設定。
gedit test.pl &
でエディタ起動。test.plを編集してく。
中身
#!/usr/bin/perl
print "Content-tpe: text/html", "\n\n";
print "this is test";
http://localhost/test.plへアクセスして
「
this is test
」
と表示されていたら成功!