运行 项目 "Error retrieving pid file" 时出现 Cloud9 错误

Cloud9 error when running project "Error retrieving pid file"

一直在玩弄基于Web的Cloud9IDE学习PHP
今天我去了 运行 我的项目,并收到了这个错误:

(20014)Internal error: AH00058: Error retrieving pid file /home/ubuntu/lib/apache2/run/apache2.pid                                                                                                                                     
AH00059: Remove it before continuing if it is corrupted.

我已经能够使用 XAMPP 迁移我的工作,但我想解决我的 Cloud9 问题。有谁知道在Cloud9环境下如何解决?

好吧,我觉得很蠢...通过使用 Cloud9 的终端导航到目录然后删除损坏的文件,我自己解决了这个问题。

我得到了如下相同类型的问题和解决方案。希望有人可以帮助

Problem:

Started apache2
(20014)Internal error: AH00058: Error retrieving pid file /home/ubuntu/lib/apache2/run/apache2.pid
AH00059: Remove it before continuing if it is corrupted.

解决方案:

sudo rm /home/ubuntu/lib/apache2/run/apache2.pid  then
sudo /home/ubuntu/lib/apache2/run/apache2.pid restart