panelarrow

For Myself.

2015年8月6日 星期四

20150806_Linux_RedHat_L4

安裝資料庫 MariaDB
圖形化:軟體
搜尋 "MariaDB"並安裝下列軟體:
-> The MariaDB server and related files
-> The test suite distrbuted with MariaD
-> A commity developed branch of MySQL
-> MariaDB benchmark scripts and data
-> Files for development of MariaDB/MySQL applications

-----------------------------
開啟 Terminal
# systemctl enable mariadb.service
# systemctl start maiadb.service
# mysql -u root -p
-> 沒有密碼直接按Enter
-----------------------------
到網路上下載 "phpMyAdmin",下載 tar.gz 檔
-----------------------------
php
可參考這個網址:
http://www.phpini.com/linux/redhat-centos-7-setup-apache-mariadb-php
圖形化:軟體
搜尋 "php"
-> php scripting
-> command-line
-> A module for PHP
->  Standard PHP module
-> A module for PHP
-> A database ...

-----------------------------
httpd
# systemctl restart httpd.service
# cd /var/www/html
-> 把 phpAdmin.....tar.gz 放到 /var/www/html
     資料夾名稱改為 phpAdmin
-> 開啟瀏覽器搜尋“localhost/phpAdmin”
-----------------------------
php-mbstring
瀏覽器搜尋
php mbstring centos 7 rpm
網址:
http://rpm.pbone.net/index.php3/stat/4/idpl/26646085/dir/centos_7/com/php-mbstring-5.4.16-21.el7.x86_64.rpm.html
軟體下載網址:
ftp://bo.mirror.garr.it/pub/1/slc/centos/7.0.1406/os/x86_64/Packages/php-mbstring-5.4.16-21.el7.x86_64.rpm
安裝完畢重啟服務
# systemctl restart httpd.service
-----------------------------
接下來
# cd /var/www/html/phpAdmin
-> # mv config.sample.inc.php config.inc.php
-> # vim config.inc.php
    ->搜尋“blowfish-secret" -> 'blowfish-secret' = 'abcde'
    ->搜尋“AllowNoPassword" -> 'AllowPassword' = 'true'
-----------------------------
改完後到 phpAdmin網頁,並登入
ID :  root
PW:空白

登入後

修改密碼 -> 改自己的密碼 -> 執行
使用者 -> 打勾“任意”X3 -> 刪除 -> 執行
密碼為"否" -> 編輯 -> 修改密碼 (會有三個)

-----------------------------
瀏覽器搜尋"drupal"
下載 "Drupal 7.3.6" & "中文化 7.3.6" (兩個版本要一樣,皆下載7.3.6)
網址:
Drupal 7.3.6 :
  http://ftp.drupal.org/files/projects/drupal-7.38.tar.gz

中文化 7.3.6 :
  http://ftp.drupal.org/files/translations/7.x/drupal/drupal-7.38.zh-hant.po
下載完後
# cp drupal-7.38.tar.gz drupal-7.38.zh-hant.po /var/www/html
# tar avxf drupal-7.38.tar.gz
# cd drupal-7.38
# cp -r * ../
# cp ../drupal-7.38.zh-hant.po ../profiles/standard/translations/

# restorecon -R /var/www/html
-----------------------------
瀏覽器搜尋"localhost"
-> 重新整理
-> Save and Continue
-> 選擇“中文”-> Save and Continue

安裝缺乏的檔案
# yum search dom
# yum install php-theseer-fDOMDocument.noarch -y
# mkdir /var/www/html/sites/default/files
# chown apache.apache /var/www/html/sites/default/files
# cd /var/www/html/sites/default/
# cp default.settings.php settings.php
# chown apache.apache settings.php

# restorecon -R /var/www/html
# systemctl restart httpd
瀏覽器重新整理,到 phpAdmin 網頁
-> 資料庫 -> 新增 -> drupal, utf-8 -> 建立
-> 使用者 -> 新增使用者 -> drupal -> 本機, localhost -> passwd -> 執行 -> 使用者 -> drupal 編輯權限 -> 全選 -> 執行

回到 drupal 網頁
-> 名稱:drupla -> 資料庫:drupal -> passwd -> 網站名稱(自行)-> e-mail(亂取: test@gmail.com)-> 使用者:admin -> 國家:Taiwan -> Save and Continue







0 意見:

張貼留言

Pages

技術提供:Blogger.

Copyright © Joshua's Linux | Powered by Blogger
Design by AnarielDesign | Blogger Theme by NewBloggerThemes.com