我的Apache 2安装显示错误。 但是,默认的php文件在我的浏览器上的localhost上显示正常。 怎么了?

  • Usage: /etc/init.d/apache2 {start|stop|graceful-stop|restart|reload|force-reload|start-htcacheclean|stop-htcacheclean|status} root@computer:~# sudo service apache2 stop
    • Stopping web server apache2
    • The apache2 configtest failed, so we are trying to kill it manually. This is almost certainly suboptimal, so please make sure your system is working as you'd expect now! ... waiting [ OK ] root@computer:~# sudo service apache2 restart apache2: Syntax error on line 237 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/sites-enabled/wordpress: No such file or directory Action 'configtest' failed. The Apache error log may have more information. ...fail! root@computer:~#

P.S. Wordpress is in the said directory.