安装apache
sudo apt-get install apache2


安装目录 /etc/apache2
配置文件 /etc/apache2/apache2.conf
默认网站根目录 /var/www/html
更改在/etc/apache2/sites-availale 000-default.conf

出现无法访问的html的问题
将html目录拥有者改为www-data
chown www-data:www-data /path/to/program/image/
更改权限
sudo chmod -R 777 /var/www/html

相关文章:

  • 2021-11-14
  • 2021-06-27
  • 2021-09-04
  • 2021-07-27
  • 2021-10-14
  • 2021-07-31
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-04
  • 2021-11-21
  • 2021-10-17
  • 2021-11-21
  • 2021-09-04
相关资源
相似解决方案