herrDeng網內搜尋
 
  
    自訂搜尋
  
Ads
2019年11月15日 星期五
ubuntu linux上下載解壓縮Joomla操作phpMyAdmin加root密碼
一般而言,如果完全不考慮資安,當然是把 joomla-root-dir的owner設為www-data,甚至不怕死怕麻煩的權限就設777,安裝法跟windows上差異不大,
如此只要MSQL, php 或是Joomla有任何漏洞,就很危險。
https://serverfault.com/questions/597494/correct-file-system-permissions-for-joomla-installation-on-linux
的討論串,有人建議,將joomla-root-dir保留owner為root或是其他user,其他只要將 joomla-root-dir(我們這種安裝是 /opt/lampp/htdocs/)下的資料夾用chmod設為755,檔案設為644,cache如有用時,才用chown將owner設為www-data
註: r=4, w=2, x=1=> 7=rwx, 5=r-x, 6=rw- 4=r--
cd /whatever-your-joomla-root-dir-is
find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
chown -R www-data .
2019年11月14日 星期四
訂閱:
意見 (Atom)
熱門文章
- 
url="https://www.twse.com.tw/exchangeReport/STOCK_DAY?response=json&date=20220330&stockNo=2330"
- 
連續複利
- 
請用Random產生20個0~99的奇數(可重複),然後排序
- 
py3 cpp Line sweep解Leetcode 3346 Maximum Frequency of an Element After Performing Operations I 使用 line sweep不用排序,可得線性解 [Py3解請進]
- 
C++ Py3 計數排序與partial sum解Leetcode 2300 Successful Pairs of Spells and Potions Portions的極大值小於等於10萬是可進行記數排序的關鍵,既然可以採用記數排序,後面的二元搜尋也可以透過part...
- 
Py3 C++ C 2pointer速解Leetcode 11Container With Most Water [Py3 code請進]
- 
Py3 C++計數bitmask與2 pointers速解Leetcode2273 Find Resultant Array After Removing Anagrams 字串長度最長也只有10,四個bits一組,用bitmask解題 ----- The maximum le...
- 
輸入公元n年,輸出"平年" "閏年"
 
 
