複数のECサイトを作っています。すべてのサイトは中央管理サイトに接続されてデータを取得し、WHM を使用して単一のサーバーから動作しています。
WHM口座名:メルカン
/home/mercan/public_html/img.php
コンテンツ:
<?php
$image=imagecreatefromjpeg('/home/mercan/public_html/images/testimage.jpg');
header('Content-Type: image/jpeg');
imagejpeg($image);
//ok no problem
?>
WHM アカウント名:アップル
/home/mercan/public_html/img.php
コンテンツ:
<?php
$image=imagecreatefromjpeg('/home/apple/public_html/images/otherimage.jpg');
header('Content-Type: image/jpeg');
imagejpeg($image);
// ok no problem
?>
WHMアカウント名:kivi
/home/kivi/public_html/imgkivi.php
コンテンツ:
<?php
$image=imagecreatefromjpeg('/home/apple/public_html/images/otherimage.jpg');
// php file in kivi account.
header('Content-Type: image/jpeg');
imagejpeg($image);
// error not acces this folder.
// i neeed acces other(apple) account folder or files..
?>
$image=imagecreatefromjpeg('/home/apple/public_html/images/otherimage.jpg');
root アクセスで実行するにはどうすればよいですか?