Php 在子目录中使用Typecho和wordpress的Apache--”;未指定输入文件;

Php 在子目录中使用Typecho和wordpress的Apache--”;未指定输入文件;,php,wordpress,apache,.htaccess,Php,Wordpress,Apache,.htaccess,我试图通过在http.conf中更改我的虚拟主机,将我的站点从wordpress移动到Typecho(这是一个中国CMS系统) |-yjdata |-www(where I want my site to be direct to) |-php-fpm-5.5.conf |-wordpress(where my site is used to be direct to) |-index.php |-w

我试图通过在
http.conf
中更改我的虚拟主机,将我的站点从wordpress移动到Typecho(这是一个中国CMS系统)

|-yjdata
      |-www(where I want my site to be direct to)
         |-php-fpm-5.5.conf
         |-wordpress(where my site is used to be direct to)
            |-index.php
            |-wp-admin
            |-... ...
         |-typecho
            |-index.php
            |-install.php
            |-... ...
|-yjdata
      |-www(where I want my site to be direct to)
         |-index.html
         |-php5.ini
         |-php-fpm-5.5.conf
         |-wordpress(where my site is used to be direct to)
            |-index.php
            |-wp-admin
            |-... ...
         |-typecho
            |-.htaccess
            |-php5.ini
            |-index.php
            |-install.php
            |-... ...
在我的
http.conf
看起来像这样之前

<VirtualHost *:80>
    ServerName www.mydomain.com
    ServerAlias www.mydomain.com mydomain.com 
    DocumentRoot /yjdata/www/wordpress/
    ProxyPassMatch ^/(.*\.php)$ fcgi://127.0.0.1:10000/yjdata/www/wordpress/$1
    DirectoryIndex index.html index.php
</VirtualHost>
php5.ini

// index file
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Congratulations!</title>
</head>
<body>
    Coming final.QAQ
    <a href="./wordpress/index.php">wordpress</a>
    <a href="./typecho/index.php">typecho</a>
</body>
</html>
cgi.fix_pathinfo = 1
嗯,在重新启动我的apache并更改数据库中的一些静态链接之后,索引文件确实生效了。我还可以进入后端页面和文章页面,而无需wordpress重定向。 然而,当我试图输入这个链接
www.mydomain.com/typecho/
www.mydomain.com/typecho/install.php
时,我仍然得到“未指定输入文件” 我想这可能是由于丢失了
.htaccess
。所以我在
typecho
文件目录中创建了一个
.htaccess
文件,但仍然收到了相同的消息。 这是
.htaccess
的内容

<IfModule mod_rewrite.c>
DirectoryIndex index.php

RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|robots\.txt)
RewriteRule ^(.*)$ index.php?/$1 [L]

Options +ExecCGI
addhandler x-httpd-php5-cgi .php
Header set Set-Cookie "language=%{lang}e; path=/;" env=lang
</IfModule>
我在这个问题上花了一整天,但还是失败了。
谢谢你的帮助

我不确定
path\u info
部分是否通过了
ProxyPassMatch
。regexp不接受它。我在下面尝试了这些方法。更改'ProxyPassMatch^/(.\.php)$fcgi://127.0.0.1:10000/yjdata/www/$1`to`ProxyPassMatch^/(.\.php)$fcgi://127.0.0.1:10000/yjdata/www/wordpress/$1
,当我进入
www.myadmin.com
时,我进入了
www/wordpress/
。将其更改为
ProxyPassMatch^/(.\.php)$fcgi://127.0.0.1:10000/yjdata/www/typecho/$1`但我仍然没有指定输入文件。
尝试删除它,我得到了一个禁止的
403
。其中包括路径信息部分<代码>^/(.\.php(/.*)$
|-yjdata
      |-www(where I want my site to be direct to)
         |-index.html
         |-php5.ini
         |-php-fpm-5.5.conf
         |-wordpress(where my site is used to be direct to)
            |-index.php
            |-wp-admin
            |-... ...
         |-typecho
            |-.htaccess
            |-php5.ini
            |-index.php
            |-install.php
            |-... ...