我已经在同一个服务器上安装了几个 wordpress 和 centos、apache,它们都运行良好。但不知何故,这个 wordpress 出现了问题,当我进入时,domain.com
它只显示
Index of /
Name Last modified Size Description
cgi-bin/ 2020-07-20 12:53 -
我谷歌了一下,但每个人的答案都是因为意外安装了子目录,但事实并非如此。而且这不是通过 cpanel 安装的。
这是我的 wordpress 根目录的样子
drwxr-xr-x. 5 apache apache 4096 Sep 28 02:58 .
drwxr-xr-x. 17 apache apache 4096 Sep 27 20:25 ..
-rwxr-xr-x. 1 apache apache 19 Sep 14 2018 3f361b82411a33ef76.txt
-rwxr-xr-x. 1 apache apache 16 Sep 14 2018 1D3AE47DEBA.html
-rwxr-xr-x. 1 apache apache 418 Sep 14 2018 index.php
-rwxr-xr-x. 1 apache apache 19935 Sep 14 2018 license.txt
-rwxr-xr-x. 1 apache apache 7415 Jun 11 00:34 readme.html
-rwxr-xr-x. 1 apache apache 6878 Apr 30 00:34 wp-activate.php
drwxrwxrwx. 9 apache apache 4096 Sep 14 2018 wp-admin
-rwxr-xr-x. 1 apache apache 364 Sep 14 2018 wp-blog-header.php
-rwxr-xr-x. 1 apache apache 1889 Sep 14 2018 wp-comments-post.php
-rwxr-xr-x. 1 apache apache 3312 Sep 14 2018 wp-config.php
-rwxr-xr-x. 1 apache apache 2853 Sep 14 2018 wp-config-sample.php
drwxrwxrwx. 7 apache apache 4096 Sep 28 02:57 wp-content
-rwxr-xr-x. 1 apache apache 3669 Sep 14 2018 wp-cron.php
drwxrwxrwx. 18 apache apache 12288 Sep 14 2018 wp-includes
-rwxr-xr-x. 1 apache apache 2422 Sep 14 2018 wp-links-opml.php
-rwxr-xr-x. 1 apache apache 3306 Sep 14 2018 wp-load.php
-rwxr-xr-x. 1 apache apache 37804 Apr 30 00:34 wp-login.php
-rwxr-xr-x. 1 apache apache 8048 Sep 14 2018 wp-mail.php
-rwxr-xr-x. 1 apache apache 16246 Sep 14 2018 wp-settings.php
-rwxr-xr-x. 1 apache apache 30091 Sep 14 2018 wp-signup.php
-rwxr-xr-x. 1 apache apache 4620 Sep 14 2018 wp-trackback.php
-rwxr-xr-x. 1 apache apache 3065 Sep 14 2018 xmlrpc.php
我甚至看到过关于更改httpd.conf
文件的帖子
<IfModule dir_module>
DirectoryIndex index.php index.html
</IfModule>
实际上上面的内容已经存在了。
这是我的虚拟主机的样子,它是从其他工作的 wordpress 复制然后修改的目录和服务器名称
<VirtualHost *:80>
ServerName www.domain.com
ServerAlias domain.com
DocumentRoot /var/www/lci
<Directory "/var/www/lci">
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
AllowOverride All
</Directory>
</VirtualHost>
我可能忘记了哪些设置?
如果我点击cgi-bin
“赞”,就会出现 403 禁止访问的情况。
提前感谢任何建议和意见