apigen-错误:服务器遇到内部错误,无法完成您的请求


apigen - ERROR: the server encountered an internal error and was unable to complete your request

我刚刚安装了apigen 2.7.0,并尝试生成一些文档。我试着从NetBeans内部以及使用--debug参数的命令行运行apigen,但我总是得到相同的错误输出:

ERROR: the server encountered an internal error and was unable to complete your request.
For more information turn on the debug mode using the --debug option.

我还尝试了github的最新版本的apigen,但仍然得到了相同的输出。

php.ini中设置默认时区。这个问题将很早在2.7.1中得到解决。

我假设您使用的是Linux。您是否按照前面所说的那样使用--debug选项运行它?的输出是什么

$ apigen --version --debug

此外,请检查IDE的日志文件。尽管如此,这很可能是Netbeans权限的问题。将其作为sudo运行应该可以解决问题:

sudo netbeans

如果您不想以特权用户的身份运行它,请检查日志并更改每个被拒绝的写入操作的权限(实际上有很多)。

总而言之,您可能还想检查phpdocumentor。或者python:)