(可选)如果您对.htaccess,composer.json或robots.txt等文件进行了手动修改,请将它们复制到易于查找的位置。因为在安装了新的Drupal核心之后,您需要重新应用这些更改。例如,Acquia Dev Desktop将.htaccess文件放在顶级目录中,如果没有它,只有您网站上的主页可以使用。
mkdir drupal && cd drupal && curl -sSL https://www.drupal.org/download-latest/tar.gz | tar -xz --strip-components=1
php core/scripts/drupal quick-start demo_umami
安装可能需要一两分钟。成功安装将导致在浏览器中打开新站点并在终端中输出相关信息。
18/18[▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓]
Congratulations, you installed Drupal!
Username: admin
Password: PM_kRw1i1xtPGeoT
Drupal development server started:<http://127.0.0.1:8888>
This server is not meant for production use.
One time login url:<http://127.0.0.1:8888/user/reset/1/1536313723/49dSy9t55aC-zaOwP5DcQo8Sa_ZLnRkvXpd3K8ndHnU/login>
Press Ctrl-C to quit the Drupal development server.
Nothing to install or update (even though updates exist)
Installation request for drupal/drupal No version set (parsed as1.0.0)-> satisfiable by drupal/drupal[No version set (parsed as1.0.0)].
don't install drupal/core 8.x.x | remove drupal/drupal No version set (parsed as1.0.0)
Your requirements could not be resolved to an installable set of packages.
#Set group of the files folder to the webserver user
sudo chown -R vftp:www-data /var/www/sites/new_html/web/sites/default/files
#Allow the webserver user group to edit and access folders in the files directory
sudo find /var/www/sites/new_html/web/sites/default/files -type d -exec chmod u=rwx,g=rwx,o='{}' \;#Allow the webserver user group to edit all files in the files directory.
sudo find /var/www/sites/new_html/web/sites/default/files -type f -exec chmod u=rw,g=rw,o='{}' \;
评论