乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      Magento中文件與文件夾權限設置方法

       ldjsld 2015-11-20

      如:安裝插件,批量導入,后臺配置,等等讓人頭痛?,F(xiàn)在提供兩種方式處理該權限問題

      SSH方式(適用于獨立服務器或VPS)

       

      代碼如下:
      find . -type f -exec chmod 644 {} ;
      find . -type d -exec chmod 755 {} ;
      chmod o+w var var/.htaccess app/etc
      chmod 550 mage
      chmod -R o+w media
      If that is not working, try setting all directories to 777 by doing this:
      find . -type f -exec chmod 644 {} ;
      find . -type d -exec chmod 777 {} ;
      chmod o+w var/.htaccess
      chmod 550 mage


      magento中操作

      比如二級菜單不可用,Magento Connect 不可用,圖片不顯示等等,大部分原因都是文件權限沒設置或者設置不當引起的。下面是基本的文件及文件夾設置。

      755權限

       

      代碼如下:
      magento/app/etc
      magento/media
      magento/app
      magento/skin
      magento/var
      magento/var/.htaccess
      magento/js
      magento/downloader
      644權限
      magento/index.php
      magento/downloader/index.php

      php修改權限


      代碼如下:
      <?php
      ## 設置文件644,目錄755
      function AllDirChmod( $dir = "./", $dirModes = 0755, $fileModes = 0644 ){
      $d = new RecursiveDirectoryIterator( $dir );
      foreach( new RecursiveIteratorIterator( $d, 1 ) as $path ){
      if( $path->isDir() ) chmod( $path, $dirModes );
      else if( is_file( $path ) ) chmod( $path, $fileModes );
      }
      }
      ?>

        本站是提供個人知識管理的網(wǎng)絡存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點。請注意甄別內(nèi)容中的聯(lián)系方式、誘導購買等信息,謹防詐騙。如發(fā)現(xiàn)有害或侵權內(nèi)容,請點擊一鍵舉報。
        轉藏 分享 獻花(0

        0條評論

        發(fā)表

        請遵守用戶 評論公約

        類似文章 更多