下載 MySQL instraller ,點選並執行它。安裝過程參考附圖。過程中要注意的事項如下:
- 由於是要同主機多版本並存使用,所以 installer 的第一個頁面要選擇 Cancel後,再點選 Add 按鈕 (圖二)。
- port 衝突的問題,記得預設 port 號要更改。
- Authentication Method 更動,主要是考量到版本相容性而已。
相關參考:
https://www.exchangecore.com/blog/using-ldap-active-directory-authentication-php
https://github.com/anthony-b/simple-php-LDAP-Authentication/blob/master/ldap.php
https://www.php.net/manual/en/ref.ldap.php
https://icodding.blogspot.com/2015/10/php-php-ad-server.html?m=0
https://www.php.net/manual/en/function.ldap-get-option.php
PHP 7.1 added support for configuring the LDAP CA/Cert environment directly
ldap_set_option(NULL, LDAP_OPT_X_TLS_CERTFILE, "/path/file.crt");
ldap_set_option(NULL, LDAP_OPT_X_TLS_KEYFILE, "/path/file.key");
https://bojack.pixnet.net/blog/post/23832296-%E3%80%90%E7%A8%8B%E5%BC%8F%E3%80%91%E5%88%A9%E7%94%A8-php-%E6%90%9C%E5%B0%8B-ldap---ad-%E8%B3%87%E8%A8%8A
https://ithelp.ithome.com.tw/questions/10167400
https://shuohsuanli-bear.blogspot.com/2016/11/phpactive-directory.html
https://segmentfault.com/a/1190000014683418
https://blog.tomy168.com/2019/07/centos76-openldap.html
https://blog.xuite.net/tolarku/blog/151029105-LDAP+%E5%9F%BA%E7%A4%8E%E8%AA%AA%E6%98%8E
https://itman.pixnet.net/blog/post/26817279
https://codertw.com/%E7%A8%8B%E5%BC%8F%E8%AA%9E%E8%A8%80/77626/
https://www.forumsys.com/tutorials/integration-how-to/ldap/online-ldap-test-server/
https://www.youtube.com/watch?v=AEjGhzZpGlg
Apache Directory Studio.
phpLDAPadmin
LDAP Admin
The Difference Between Active Directory and LDAP
使用 find 來執行 chmod:
find Apache2/ -type d -exec chmod 770 {} \; <= /www 內所有目錄
find Apache2/ -type f -exec chmod 750 {} \; <= /www 內所有檔案
find 的 -type 參數可以指定檔案的類型,常用的選項有:
d:目錄。
p:具名的 pipe(FIFO)。
f:一般的檔案。
l:連結檔,如果與 -L 或 -follow 參數同時使用時,就只會搜尋到有問題的連結檔,如果想要與 -L 同時使用,請改用 -xtype。
s:socket 檔案。
//找出當下目錄權限為 777 的所有檔案
find . -type f -perm 0770
//找出當下目錄權限不是 777 的所有檔案
find . -type f ! -perm 0770雜記