问题记录

Q:

An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://cli-assets.heroku.com/apt ./ InRelease: The following sig
natures couldn’t be verified because the public key is not available: NO_PUBKEY 5DC22404A6F9F1CA

A:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 5DC22404A6F9F1CA

Q:

Invalid command ‘RewriteEngine’, perhaps misspelled or defined by a module not included in the server configuration.

A:

RewriteEngine命令需要rewrite mod的支持,
$>cd /etc/apache2/mods-enabled 切换到apache下的mods-enabled目录
$>sudo ln -s ../mods-available/rewrite.load rewrite.load 启用rewrite mod
$>sudo /etc/init.d/apache2 restart 重启apache服务器。
或者在apache的配置文件httpd.conf中将#LoadModule rewrite_module modules/mod_rewrite.so前的#去掉,再重启服务器。

Visits: 539

发表评论

邮箱地址不会被公开。 必填项已用*标注