私の/etc/hosts/
:
127.0.0.1 localhost
127.0.1.1 ali-VirtualBox-ubuntu
127.0.1.2 mgip
#virtualhost
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
私の/etc/apache2/sites-available
:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName mgip
DocumentRoot /var/www/mgip/html/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/mgip/html/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
サーバー名apache2/httpd.conf
:
ServerName 127.0.1.2 mgip
私のapache2/ports.conf
:
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default
# This is also true if you have upgraded from before 2.2.9-3 (i.e. from
# Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
# README.Debian.gz
NameVirtualHost *:80
Listen 80
<IfModule mod_ssl.c>
# If you add NameVirtualHost *:443 here, you will also have to change
# the VirtualHost statement in /etc/apache2/sites-available/default-ssl
# to <VirtualHost *:443>
# Server Name Indication for SSL named virtual hosts is currently not
# supported by MSIE on Windows XP.
Listen 443
</IfModule>
<IfModule mod_gnutls.c>
Listen 443
</IfModule>
このWebサイトに示されている仮想ホストをセットアップするために必要なすべての手順を実行しました:
Ubuntu 12.04 LTSおよびその他でApache仮想ホストをセットアップする方法
ですが、正確な問題を見つけることができませんでした.
これはconfig.php
私のウェブサイトのファイルです:
<?
// Bring in and make any configurations.
// (not really implemented anywhere yet).
@$configOption=array_merge( # don't show errors here
array(
),
$configOption
);
define('ADMIN_EMAIL',"pramod.036@gmail.com");
$defaultDocRoot='/var/www/mgip/html';
define('PUBLIC_USERNAME',"public");
define('PUBLIC_PASSWORD',"password");
$defaultLanguage='en';
// mysql
$databaselocation = "localhost"; // Network location of your MySQL Database
$databasename = "mgip"; // The name of the database
$databaseuser = "mgip"; // The name of a user
$databasepass = "mysql"; // Password of db user
$databaseprefix = "cdc2_";
以前は、 user のアクセスが拒否されたというエラーが表示されました'mgip'@'localhost'
。そのデータベースのすべての権限を持つ新しいユーザーを作成しました。DB の問題は解決されましたが、まだ空白のページが表示されます。
私を助けてください。