百度云主机安装drupal8之旅

12shuadmin 提交于 周六, 2017/06/17 - 15:11

假设网站为liuzongyuan.com  目录为liuzongyuan ,安装https访问。

1,选centos 7.2的镜像

2,挂载cds磁盘到home目录
命令行挂载mount /dev/vdb1 /home
设自动挂载  echo '/dev/vdb1 /home ext4 defaults 0 0' >> /etc/fstab
3,安装环境,用lnmp1.4
 yum install screen
 screen -S lnmp
 wget -c http://soft.vpser.net/lnmp/lnmp1.4.tar.gz && tar zxf lnmp1.4.tar.gz && cd lnmp1.4

nano lnmp.conf
修改mysql数据目录
MySQL_Data_Dir='/home/mysql/'


./install.sh lnmp

4装ftp
./pureftpd.sh
/usr/local/pureftpd/bin/pure-pw useradd ftpuser -u 522 -g 522 -d /home/wwwroot/
设密码
/usr/local/pureftpd/bin/pure-pw mkdb
cd /home/wwwroot
chmod 777 default

5 安装opcache

./addons.sh install opcache

6,修改php.ini

cp /usr/local/php/etc/php.ini /usr/local/php/etc/php0.ini
nano /usr/local/php/etc/php.ini

把disable_functions = passthru,exec,system,chroot,scandir,chgrp,chown,shell_exec,$
中的exec,system,sancdir,proc_open,proc_get_status删除重启lamp

7,安装 drush

8,添加域名,

lnmp vhost add

irtualhost infomation:
Your domain: www.liuzongyuan.com
Home Directory: /home/wwwroot/liuzongyuan
Rewrite: drupal
Enable log: yes
Database username: database
Database userpassword: *****
Database Name:*****
FTP account name:*****
FTP account password: *****
Enable SSL: yes
  =>Let's Encrypt
 User name: admin  User password: d6cQ3khjhe 

http证书直接安装成功。

9,设置文件夹权限

chown -R www:www sites

10,正常安装drupal

 

 

Comments

先下载drush

下载文件drupal.phar

 wget https://s3.amazonaws.com/files.drush.org/drush.phar  或  

wget https://s3.amazonaws.com/files.drush.org/drush-unstable.phar   或

 wget http://s3.amazonaws.com/files.drush.org/drush.phar

php -r "readfile('drush.phar');" > drush

php drush core-status

chmod +x drush

       移动到 /usr/local/bin/目录

sudo mv drush /usr/local/bin

drush init


添加新评论

基本的 HTML

  • 允许的HTML标签:<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <p> <br> <span> <img src alt height width data-entity-type data-entity-uuid data-align data-caption> <td> <table> <tr>
  • You can align images (data-align="center"), but also videos, blockquotes, and so on.
  • You can caption images (data-caption="Text"), but also videos, blockquotes, and so on.
  • Only images hosted on this site may be used in <img> tags.