共用サーバーSDでPHP List を使う時の対処

共用サーバーSDでは、htaccessの記述「DirectoryIndex」が使えないため、この部分をコメントアウトする必要がある。
さらに、
/lists/index.html
があるとindex.phpにアクセスできないため、削除する。

PHP List で「あなたのIPアドレスが変更されました。」を解除する方法

PHP List でネットワーク環境によっては、「あなたのIPアドレスが変更されました。」とエラーがでる場合がある。
解除したい場合は、
/lists/admin/index.php
の208~213行目あたりの

elseif (CHECK_SESSIONIP && $_SESSION["adminloggedin"] && $_SESSION["adminloggedin"] != $_SERVER["REMOTE_ADDR"]) {
    logEvent(sprintf($GLOBALS['I18N']->get('login ip invalid from %s for %s (was %s)'),$_SERVER['REMOTE_ADDR'],$_SESSION["logindetails"]['adminname'],$_SESSION["adminloggedin"]));
    $msg = $GLOBALS['I18N']->get('ipchanged');
    $_SESSION["adminloggedin"] = "";
    $_SESSION["logindetails"] = "";
    $page = "login";
  }

をコメントアウトする。

PHP List インストール方法

lists/config/config.phpの書き換え
データベース情報とドメイン情報の書き換えが必要です。また、送信用メールの設定も合わせて行います。
25行目~35行目までのデータベース情報を書き換えます。
# what is your Mysql database server

$database_host = “mysql***.db.sakura.ne.jp”;

# what is the name of the database we are using

$database_name = “*****”;

# who do we log in as?

$database_user = “****”;

# and what password do we use

$database_password = ‘****’;

49行目~53行目までのドメイン以下のディレクトリ情報の書き換えをします。
※listsというフォルダをそのまま使って、トップドメインのすぐ下にフォルダを設置した場合は変更不要ですが、フォルダの階層やフォルダ名を変更したい場合はここを書き換える必要があります。
# if you change the path to the PHPlist system, make the change here as well

# path should be relative to the root directory of your webserver (document root)

# you cannot actually change the “admin”, but you can change the “lists”

$pageroot = ‘/****’;

$adminpages = ‘/****/admin’;

75行目~88行目までのバウンスメール関連情報を書き換えます。
# Handling bounces. Check README.bounces for more info

# This can be ‘pop’ or ‘mbox’

$bounce_protocol = ‘pop’;

# set this to 0, if you set up a cron to download bounces regularly by using the

# commandline option. If this is 0, users cannot run the page from the web

# frontend. Read README.commandline to find out how to set it up on the

# commandline

define (“MANUALLY_PROCESS_BOUNCES”,1);

# when the protocol is pop, specify these three

$bounce_mailbox_host = ‘*****’;

$bounce_mailbox_user = ‘*****’;

$bounce_mailbox_password = ‘*****’;
lists/.htaccessの書き換え
ほとんどのレンタルサーバーの場合は12行目のphp設定は触れない事が多いと思いますので、#をつけてコメントアウト(無効化)します。
#php_flag magic_quotes_gpc on

PHP LISTのテストモードを解除する方法

ログインして上部に

「Running in testmode, no emails will be sent. Check your config file」

と出てくると、テストモードが解除されていない。

このテストモードを解除するには、
/lists/config/config.php
の193行目あたり

# if test is true (not 0) it will not actually send ANY messages,
# but display what it would have sent
define ("TEST",0);

define ("TEST",1);

define ("TEST",0);

とする。

Copyright © All Rights Reserved · Green Hope Theme by Sivan & schiy · Proudly powered by WordPress