无法启动Apache服务器

我将我的服务器操作系统从Ubuntu 12.04升级到了Ubuntu 14.04。 但是现在我无法启动我的apache服务器。

我的命令:

solutionglobe:/home/solutionglobe/public_html# service apache2 restart sh: 0: getcwd() failed: No such file or directory * Restarting web server apache2 AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using solutionglobe.com. Set the 'ServerName' directive globally to suppress this message ...fail! * The apache2 instance did not start within 20 seconds. Please read the log files to discover problems 

Apache错误日志:

 [Fri Oct 24 07:52:48.256697 2014] [suexec:notice] [pid 24541] AH01232: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec) [Fri Oct 24 07:52:48.272414 2014] [fcgid:emerg] [pid 24542] (2)No such file or directory: mod_fcgid: Can't create shared memory for size 1200712 bytes 

我正在使用Virtualmin

任何想法是什么错误?

看来FCGID的临时目录在你的系统中是缺失的,因此它不能创build一个进程表文件。

检查fcgid.conf文件。 大概是在这里/etc/httpd/conf.d/fcgid.conf看看FcgidIPCDir值。 在我的情况下:

 FcgidIPCDir /var/run/mod_fcgid FcgidProcessTableFile /var/run/mod_fcgid/fcgid_shm 

然后validation/var/run/mod_fcgid文件夹是否存在。 如果没有创build它。