Httpd(apache)没有在fedora 23上启动

时间:2016-06-28 06:32:52

标签: apache server httpd.conf fedora-23

我非常想安装nginx,但它没有用。之后我尝试在我的Fedora23 dist上安装并配置apache(httpd)服务器。但我的服务器不希望启动,即它不起作用,它会返回一些错误,当我尝试启动它时: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <style> </style> </head> <body> <?php $user=$_POST['h']; ?> <canvas id="can" width=250 height=250 ></canvas> <script type="text/javascript"> //first canvas var c = document.getElementById('can'); c.setAttribute('crossOrigin','anonymous'); var ctx = c.getContext("2d",{preserveDrawingBuffer: true}); var img = new Image(); img.addEventListener("load", function() { ctx.drawImage(img, 0, 0); }, false); img.src = '<?php echo $user ?>'; ctx.globalCompositeOperation = "source-over"; ctx.fillStyle = "rgba(0,0,0,0.5)"; ctx.fillRect(0,0,c.width,c.height); var sent = convertToImg(c); document.body.appendChild(sent); console.log(sent); function convertToImg(imgc) { var img = new Image; img.src = imgc.toDataURL("image/png"); return img; } </script> </body> </html> httpd.service的作业失败,因为控制进程退出时出错码。有关详细信息,请参阅“systemctl status httpd.service”和“journalctl -xe”。 之后我看到sudo systemctl start httpd中的日志。它显示了这个:

journalctl -xe

我做了这样的所有步骤steps 任何人都可以解释我什么是错误以及如何解决

Virtual host file configuration

Httpd status

服务httpd状态

0 个答案:

没有答案