这是尝试启动apache2的日志:
* Starting web server apache2
/usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted)
(13)Permission denied: make_sock: could not bind to address [::]:80
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
Run Code Online (Sandbox Code Playgroud)
我是新手来运行我自己的Apache.知道是什么导致了这次失败吗?
我为我网站的虚拟主机设置了文件/etc/apache2/sites-available.我创建了一个名为mysite.com的文件,里面有:
<VirtualHost *:80>
ServerAdmin email@mail.com
ServerName mysite.com
ServerAlias mysite.com
DocumentRoot /srv/www/mysite.com/public_html/
ErrorLog /srv/www/mysite.com/logs/error.log
CustomLog /srv/www/mysite.com/logs/access.log combined
</VirtualHost>
Run Code Online (Sandbox Code Playgroud)
然而,当我使用Web浏览器访问实际域时,它似乎正在服务/var/www/index.html.我的DNS正在将帧重定向到我的服务器IP地址.我还需要做些什么呢?
我是新来主办我自己的网站.