我将yii_folder放入/ var / www / html / yii_basic,然后我将其访问到 localhost / yii_basic / web,遗憾的是它查看了一个空白页面。
我不知道, 检查.htaccess在yii_basic / web文件夹中没问题, 也启用mod_rewrite。
然后我尝试通过作曲家检查它,
它给了我:
Problem 1
- codemix/yii2-excelexport 1.0.1 requires phpoffice/phpexcel 1.* -> satisfiable by phpoffice/phpexcel[1.8.1, 1.7.9, 1.8.0].
- codemix/yii2-excelexport 1.0.0 requires phpoffice/phpexcel 1.* -> satisfiable by phpoffice/phpexcel[1.8.1, 1.7.9, 1.8.0].
- codemix/yii2-excelexport 1.0.1 requires phpoffice/phpexcel 1.* -> satisfiable by phpoffice/phpexcel[1.8.1, 1.7.9, 1.8.0].
- phpoffice/phpexcel 1.7.9 requires ext-xml * -> the requested PHP extension xml is missing from your system.
- phpoffice/phpexcel 1.8.1 requires ext-xml * -> the requested PHP extension xml is missing from your system.
- phpoffice/phpexcel 1.8.0 requires ext-xml * -> the requested PHP extension xml is missing from your system.
- phpoffice/phpexcel 1.8.1 requires ext-xml * -> the requested PHP extension xml is missing from your system.
- Installation request for codemix/yii2-excelexport * -> satisfiable by codemix/yii2-excelexport[1.0.0, 1.0.1].
To enable extensions, verify that they are enabled in those .ini files:
- /etc/php/5.6/cli/php.ini
- /etc/php/5.6/cli/conf.d/10-mysqlnd.ini
- /etc/php/5.6/cli/conf.d/10-opcache.ini
- /etc/php/5.6/cli/conf.d/10-pdo.ini
- /etc/php/5.6/cli/conf.d/20-calendar.ini
- /etc/php/5.6/cli/conf.d/20-ctype.ini
- /etc/php/5.6/cli/conf.d/20-exif.ini
- /etc/php/5.6/cli/conf.d/20-fileinfo.ini
- /etc/php/5.6/cli/conf.d/20-ftp.ini
- /etc/php/5.6/cli/conf.d/20-gettext.ini
- /etc/php/5.6/cli/conf.d/20-iconv.ini
- /etc/php/5.6/cli/conf.d/20-json.ini
- /etc/php/5.6/cli/conf.d/20-mbstring.ini
- /etc/php/5.6/cli/conf.d/20-mysql.ini
- /etc/php/5.6/cli/conf.d/20-mysqli.ini
- /etc/php/5.6/cli/conf.d/20-pdo_mysql.ini
- /etc/php/5.6/cli/conf.d/20-phar.ini
- /etc/php/5.6/cli/conf.d/20-posix.ini
- /etc/php/5.6/cli/conf.d/20-readline.ini
- /etc/php/5.6/cli/conf.d/20-shmop.ini
- /etc/php/5.6/cli/conf.d/20-sockets.ini
- /etc/php/5.6/cli/conf.d/20-sysvmsg.ini
- /etc/php/5.6/cli/conf.d/20-sysvsem.ini
- /etc/php/5.6/cli/conf.d/20-sysvshm.ini
- /etc/php/5.6/cli/conf.d/20-tokenizer.ini
- /etc/php/5.6/cli/conf.d/20-xdebug.ini
请告知我应该做什么。
答案 0 :(得分:3)
显然安装缺少的PHP扩展。
sudo apt-get install php5.6-xml
答案 1 :(得分:3)
尝试使用index.php
中的此代码进行调试ini_set('error_reporting', E_ERROR);
register_shutdown_function("fatal_handler");
function fatal_handler() {
$error = error_get_last();
echo("<pre>");
print_r($error);
}
您的php扩展程序未安装或配置。