Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux CentOS 7 phpmyadmin上的重新挖掘:未找到错误页_Linux_Apache_Phpmyadmin_Redmine_Centos7 - Fatal编程技术网

Linux CentOS 7 phpmyadmin上的重新挖掘:未找到错误页

Linux CentOS 7 phpmyadmin上的重新挖掘:未找到错误页,linux,apache,phpmyadmin,redmine,centos7,Linux,Apache,Phpmyadmin,Redmine,Centos7,我已经在centos 7上安装了带有phpmyadmin的Redmine 2.5,它安装在localhost中 但是当我尝试127.0.0.1/phpmyadmin或localhost/phpmyadmin时,我得到一个404错误: Page not found The page you were trying to access doesn't exist or has been removed. 但是phpmyadmin会加载 禁用虚拟主机时,localhost/phpmyadmin起作

我已经在centos 7上安装了带有phpmyadmin的Redmine 2.5,它安装在localhost中

但是当我尝试127.0.0.1/phpmyadmin或localhost/phpmyadmin时,我得到一个404错误:

Page not found

The page you were trying to access doesn't exist or has been removed.
但是phpmyadmin会加载

禁用虚拟主机时,localhost/phpmyadmin起作用。 当我将redmine分配给不同的IP地址时,一切都正常。 我的虚拟主机是:

<VirtualHost *:80>
        ServerName www.rdmine.com
        ServerAlias rdmine.com
        #ServerAdmin 127.0.0.1@domain.com
        DocumentRoot /var/www/redmine/public/
        ErrorLog logs/redmine_error_log
        <Directory "/var/www/redmine/public/">
#                Options Indexes ExecCGI FollowSymLinks
 #               Order allow,deny
                Allow from all
                Options -MultiViews
#                AllowOverride none
        </Directory>

# These have been added:
    Alias /redmine /var/www/redmine/public
    <Location /redmine>
        PassengerBaseURI /redmine
        PassengerAppRoot /var/www/redmine

    </Location>
    <Directory /var/www/redmine/public>
        Allow from all
        Options -MultiViews
        # Uncomment this if you're on Apache >= 2.4:
        #Require all granted
    </Directory>

</VirtualHost>

服务器名www.rdmine.com
服务器别名rdmine.com
#服务器管理127.0.0。1@domain.com
DocumentRoot/var/www/redmine/public/
错误日志/重新挖掘错误日志
#选项索引ExecCGI FollowSymLinks
#命令允许,拒绝
通融
选项-多视图
#不允许超限
#增加了以下内容:
别名/redmine/var/www/redmine/public
PassengerBaseURI/redmine
Passengeraprot/var/www/redmine
通融
选项-多视图
#如果您使用的是Apache>=2.4,请取消对此的注释:
#要求所有授权
我的phpmyadmin配置是:

Alias /phpMyAdmin /usr/share/phpMyAdmin
Alias /phpmyadmin /usr/share/phpMyAdmin

<Directory /usr/share/phpMyAdmin/>
   AddDefaultCharset UTF-8

   <IfModule mod_authz_core.c>
     # Apache 2.4
     <RequireAny>
       Require ip 127.0.0.1
       Require ip ::1
     </RequireAny>
   </IfModule>
   <IfModule !mod_authz_core.c>
     # Apache 2.2
     Order Deny,Allow
     Deny from All
     Allow from 127.0.0.1
     Allow from ::1
     Allow from all
   </IfModule>
</Directory>

<Directory /usr/share/phpMyAdmin/setup/>
   <IfModule mod_authz_core.c>
     # Apache 2.4
     <RequireAny>
       Require ip 127.0.0.1
       Require ip ::1
     </RequireAny>
   </IfModule>
   <IfModule !mod_authz_core.c>
     # Apache 2.2
     Order Deny,Allow
     Deny from All
     Allow from 127.0.0.1
     Allow from ::1
   </IfModule>
</Directory>

# These directories do not require access over HTTP - taken from the original
# phpMyAdmin upstream tarball
#
<Directory /usr/share/phpMyAdmin/libraries/>
    Order Deny,Allow
    Deny from All
    Allow from None
</Directory>

<Directory /usr/share/phpMyAdmin/setup/lib/>
    Order Deny,Allow
    Deny from All
    Allow from None
</Directory>

<Directory /usr/share/phpMyAdmin/setup/frames/>
    Order Deny,Allow
    Deny from All
    Allow from None
</Directory>

# This configuration prevents mod_security at phpMyAdmin directories from
# filtering SQL etc.  This may break your mod_security implementation.
#
#<IfModule mod_security.c>
#    <Directory /usr/share/phpMyAdmin/>
#        SecRuleInheritance Off
#    </Directory>
#</IfModule>
Alias/phpMyAdmin/usr/share/phpMyAdmin
别名/phpmyadmin/usr/share/phpmyadmin
AddDefaultCharset UTF-8
#Apache2.4
要求ip 127.0.0.1
需要ip::1
#Apache2.2
命令拒绝,允许
全盘否定
允许从127.0.0.1开始
允许来自::1
通融
#Apache2.4
要求ip 127.0.0.1
需要ip::1
#Apache2.2
命令拒绝,允许
全盘否定
允许从127.0.0.1开始
允许来自::1
#这些目录不需要通过HTTP访问-从原始目录获取
#塔巴尔上游的phpMyAdmin
#
命令拒绝,允许
全盘否定
从无到有
命令拒绝,允许
全盘否定
从无到有
命令拒绝,允许
全盘否定
从无到有
#此配置可防止phpMyAdmin目录中的mod_安全性受到攻击
#过滤SQL等。这可能会破坏您的mod_安全实现。
#
#
#    
#保密
#    
#
我想加载127.0.0.1/redmine上的redmine,但它也加载127.0.0.1上的phpmyadmin和127.0.0.1/phpmyadmin上的phpmyadmin,这会抛出一个错误,并且只适用于127.0.0.0.1/phpmyadmin/index.php

你知道哪里不对吗


谢谢

禁用虚拟主机时,Apache配置中有一行,例如:

DirectoryIndex.php index.html


这将生效。因此,在虚拟主机定义中添加该行。

禁用虚拟主机时,Apache配置中有一行,例如:

DirectoryIndex.php index.html


这将生效。因此,在虚拟主机定义中添加该行。

有一行DirectroyIndex index.html,我已将其插入虚拟主机,但仍然存在相同的错误。您需要“index.php”我在阅读了apache文档后已经这样做了,但仍然没有,我首先使用index.php并删除了html,但我认为虚拟主机也没有覆盖index.php,因为我没有在127.0.0.1上看到apache欢迎页面,但Redminesd您在更改后是否重新启动apache?是的,我有!每次都是!我在虚拟主机中插入了一行DirectroyIndex index.html,但仍然存在相同的错误。您需要“index.php”我在阅读了apache文档后已经这样做了,但仍然没有,我首先使用index.php并删除了html,但我认为虚拟主机也没有覆盖index.php,因为我没有在127.0.0.1上看到apache欢迎页面,但Redminesd您在更改后是否重新启动apache?是的,我有!每次都是!