欢迎来到湖口家园

hahah

Drupal is a CMS (Content Management System) open-source written in PHP.

drupalconsole 安装

admin 提交于 周一, 09/11/2017 - 15:50

一、系统级别安装console

1) Download the latest project version

curl https://drupalconsole.com/installer -L -o drupal.phar

2) Test the downloaded file is working properly

php drupal.phar

3) Move to a globally accessing path on your system and apply it executable permissions

mv drupal.phar /usr/local/bin/drupal
chmod +x /usr/local/bin/drupal

4) Copy the provided configuration files to user home directory.

标签

常用数据库操作

admin 提交于 周一, 09/11/2017 - 13:52

1.drush数据库操作

# Export the DB to a backup file
$ drush cc
$ drush sql-dump > dump.sql

# Delete all data in your database (MAKE SURE YOU TRUST YOUR BACKUP!)
$ drush sql-drop

# Import the DB from a backup file
$ drush sql-cli < dump.sql

2.mysql dump

mysqldump -uroot -p --databases 8jpocket_town3 > test.sql

3.创建数据库

标签

Mac 搭建AMP环境

admin 提交于 周六, 09/09/2017 - 21:12

1.php

mac默认安装php

2.apache,系统也默认安装,但需要自行启动

查看Apache版本

sudo apachectl -v

开启Apache

sudo apachectl start

开启后,可以通过浏览器访问:http://localhost,页面显示“It works” 表示已经成功。

关闭Apache

sudo apachectl stop

重启Apache

sudo apachectl restart

3.配置PHP

  • 编辑Apache的配置文件,终端输入:

标签

Contenta CMS

admin 提交于 周四, 09/07/2017 - 14:12

安装

1.bash脚本安装,取消installer.sh开头的git clone,并修改script/development/build-contenta_jsonapi.sh 里面的数据库配置

脚本在conposer.json中定义

"install-contenta": "scripts/development/build-contenta_jsonapi.sh",

修改该文件

标签