6.51 PHP化

P.630

ファイル・ディレクトリのパーミッション変更

mt-config.cgi

## Movable Type Configuration File
##
## This file defines system-wide
## settings for Movable Type. In 
## total, there are over a hundred 
## options, but only those 
## critical for everyone are listed 
## below.
##
## Information on all others can be 
## found at:
##  http://www.movabletype.jp/documentation/config
 
#======== REQUIRED SETTINGS ==========
 
CGIPath        /mt/
StaticWebPath  /mt/mt-static/
StaticFilePath /home/foo/www/mt/mt-static
 
#======== DATABASE SETTINGS ==========
 
ObjectDriver DBI::mysql
Database foo
DBUser foo
DBPassword hogehoge
DBHost mysqlxx.db.sakura.ne.jp
 
#======== MAIL =======================
 
MailTransfer sendmail
SendMailPath /usr/sbin/sendmail
 
HTMLUmask 0022
HTMLPerms 0777
UploadUmask 0022
UploadPerms 0777
DirUmask 0022

P.632

ケース1

HTMLUmask 0022
HTMLPerms 0777

ケース2

HTMLPerms 0755

●ディレクトリ・ファイルのパーミッションを705にする

HTMLUmask 0072
HTMLPerms 0777
UploadUmask 0072
UploadPerms 0777
DirUmask 0072

P.633

■CGIWrapとsuEXECについて

ファイルのパーミッションを600に設定

HTMLUmask 0077
HTMLPerms 0600
UploadUmask 0077
UploadPerms 0600

ファイルのパーミッションを700に設定

HTMLUmask 0077
HTMLPerms 0700
UploadUmask 0077
UploadPerms 0700

ディレクトリのパーミッションを701に設定

DirUmask 0076

XML宣言の修正

「ヘッダー」テンプレートモジュール(サンプルテンプレート)

<?xml version="1.0" encoding="UTF-8" ?>
...後略...

「ヘッダー」テンプレートモジュール(サンプルテンプレート)

<?php echo('<?xml version="1.0" encoding="UTF-8" ?>'); ?>
...後略...

「ヘッダー」テンプレートモジュール(サンプルテンプレート)

<mt:if name="system_template">
<?xml version="1.0" encoding="<mt:publishCharset />" ?>
<mt:else>
<?php echo('<?xml version="1.0" encoding="<mt:publishCharset />" ?>'); ?>
</mt:if>
...後略...

P.634

■PHP化の確認方法

<?php phpinfo() ?>

P.635

「ヘッダー」テンプレートモジュール(サンプルテンプレート)

<?xml version="1.0" encoding="UTF-8" ?>
...後略...

「ヘッダー」テンプレートモジュール(サンプルテンプレート)

<?php echo('<?xml version="1.0" encoding="UTF-8" ?>'); ?>
...後略...

ウェブページ

Powered by Movable Type 4.261

このアーカイブについて

最近のコンテンツはインデックスページで見られます。過去に書かれたものはアーカイブのページで見られます。