我检查了所有相关事项(据我所知),请给我一些建议这个问题该如何修复?我已经被封了一个星期了。重新安装后只有 phpmyadmin 显示正常<注意:包括 info.php 在内的所有代码都带有长标签
<?php ... ?><br/>
**found in /etc/apache2/apache.conf**<br/>
on line 34: AddType application/x-httpd-php .php<br/>
on line 35: include /etc/phpmyadmin/apache.conf<br/>
<br/>
**found in `/etc/phpmyadmin/apache.conf`**<br/>
on line 5,6,7:<br/>
<Directory /usr/share/phpmyadmin><br/>
Options SymLinksIfOwnerMatch<br/>
DirectoryIndex index.php<br/>
<br/>
**found in: `/etc/apache2/mods-enabled/dir.conf`**<br/>
<IfModule mod_dir.c><br/>
DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm<br/>
</IfModule><br/>
**输出 php -v:
PHP 7.2.5-0ubuntu0.18.04.1 (cli) (built: May 9 2018 17:21:02) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.5-0ubuntu0.18.04.1, Copyright (c) 1999-2018, by Zend Technologies
输出 php -m
:
[PHP Modules]
- bz2
- calendar
- Core
- ctype
- curl
- date
- dom
- exif
- fileinfo
- filter
- ftp
- gd
- gettext
- hash
- iconv
- json
- libxml
- mbstring
- mysqli
- mysqlnd
- openssl
- pcntl
- pcre
- PDO
- pdo_mysql
- Phar
- posix
- readline
- Reflection
- session
- shmop
- SimpleXML
- sockets
- sodium
- SPL**
- standard
- sysvmsg
- sysvsem
- sysvshm
- tokenizer
- wddx
- xml
- xmlreader
- xmlrpc
- xmlwriter
- xsl
- Zend
- OPcache
- zip
- zlib
- [Zend Modules]
- Zend
- OPcache
答案1
我试图解释的问题已经以一种简单的方式解决了,如下所示:
我必须打开更新后关闭的显示错误
位于:/etc/php/7.2/apache2/php.ini
display_errors = On
display_startup_errors = On
然后浏览器会显示一个错误,因为子程序中缺少一个较长的 php 打开标记