my $password = 'dummypassword'; |
mt4i.cgi
と mt4imgr.cgi
の perl
のパスも環境に合わせて変更してください。#
!/usr/bin/perl
です。header("Content-Type: text/html; charset="._CHARSET);
XOOPSファイル以下の/html/modules/legacy/kernel/legacy_controller.class.php
です。 # vi /var/www/xp/html/modules/legacy/kernel/Legacy_Controller.class.php |
function executeRedirect($url, $time = 1, $message = null, $addRedirect = true){ global $xoopsConfig, $xoopsRequestUri; header("Content-Type: text/html; charset="._CHARSET); /*この行を追加する*/ |
/html/include/functions.php
です。
# vi /var/www/xoops/html/include/functions.php |
function redirect_header($url, $time = 3, $message = '', $addredirect = true){ global $xoopsConfig, $xoopsRequestUri; header("Content-Type: text/html; charset="._CHARSET); /*この行を追加する*/ |
$ sudo -i |
# nautilus |
/var/www/xp/html/
~/var/www/xp/html/
にブラウザからアクセスします。$ sudo apt-get install clamav |
$ sudo freshclam |
$ $ sudo /etc/init.d/clamav-freshclam stop |
$ sudo /etc/init.d/clamav-freshclam start |
/var/www/
配下にhoge
ディレクトリを作る。
# mkdir /var/www/hoge |
/var/www/
配下に新しく作ったディレクトリがあるかを確認する。
$ ls /var/www/ |
vi
コマンドでファイルを編集する際、左のスペースに行番号(ここが何行目なのか示す数字)を表示させる方法。$ echo "set number" >> ~/.exrc |
$ sudo vi /var/www/index.html |
Warning: hoge::hoge /hohe/hoge.pl on line 118 |
nkf
をインストールする$ sudo apt-get install nkf |
# nkf -g /hoge/hoge.html |
# vi /hoge/hoge.html |
: ++enc=EUC-JP |
:set fileencoding=UTF-8 |
:wq |
# vi /usr/share/webmin/file/lang/ja_JP.UTF-8 |
:set fileencoding=shift_jis |
:wq |
$ sudo vi /etc/apache2/sites-available/default |