在 Debian 上部署 Drupal 网站需要以下基本环境配置:
以下是在 Debian 上安装 Apache 服务器的步骤:
sudo apt-get update
sudo apt-get install apache2
sudo systemctl status apache2
http://localhost
或 http://your-server-ip
即可看到 Apache 默认页面。安装 Drupal 的步骤如下:
sudo apt-get install php libapache2-mod-php mysql-server
cd /var/www/html
sudo wget https://ftp.drupal.org/files/projects/drupal-9.3.7.tar.gz
sudo tar -xzf drupal-9.3.7.tar.gz
sudo mv drupal-9.3.7 drupal
http://localhost/drupal
或 http://your-server-ip/drupal
并按照向导完成 Drupal 的安装。