<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                ## 1.本地測試正常,上傳到服務器提示找不到模塊? 請確認服務器是否開啟PATH_INFO,如果未開啟,請先開啟。 如果您的服務器不支持PATH_INFO,那請使用兼容模式訪問。如: ?s=/模塊/控制器/操作/[參數名/參數值...] 詳細請查閱[ThinkPHP文檔](http://www.hmoore.net/manual/thinkphp5/118012) ## 2.后臺默認賬號密碼? 安裝完后,后臺登錄地址為: http://你的網址/admin.php/admin 1.0.0正式版之后,可以直接訪問 http://你的網址/admin.php 或 http://你的網址/index.php/admin 默認賬號:admin 默認密碼:admin >[danger]請及時修改管理員密碼,以免被不懷好意的人利用。 ## 3.本地開發,mysql沒有密碼如何安裝? 框架的安裝程序默認會檢查是否填寫mysql密碼,如果您本地開發時,mysql沒有設置密碼,那么安裝前,請打開文件: `application\install\controller\Index.php` 大概126行,將下圖紅框的那行代碼注釋掉,然后再安裝。 ![](https://box.kancloud.cn/b3b42c9e174ead7e7b8bfa8c314768d7_450x198.png) >[danger]提示:從1.0.2版本開始,已經默認不檢查是否設置了mysql密碼 ## 4.開發模塊的時候,好多菜單節點需要添加,好累啊,咋辦? 溫馨提示:在模塊開發階段,無需手動編寫menu.php文件,需要什么節點直接在“節點管理”添加即可。等模塊開發好了,在“模塊管理”導出對應模塊,系統會自動生成菜單文件,就是這么簡單粗暴。 ## 5.圖片、文件上傳失敗,怎么辦? 首先,先檢查PHP是否安裝了fileinfo擴展,此功能需要fileinfo擴展支持才能用。 其次,檢查public\uploads目錄是否有相應權限。 再次,請檢測php.ini的`post_max_size`和`upload_max_filesize`是否設置得足夠大。 最后,查看該用戶角色是否分配了“文件上傳”權限 ![](https://box.kancloud.cn/f882996a0a7e79eb41f3f96acc6c7000_333x335.png) ## 6.在lnmp環境下,首頁顯示空白? 請查看`php.ini`中的`disable_functions`是否禁用了`scandir`函數。如果是,請刪除`scandir`,然后重啟php服務。 檢查目錄是否可寫,擴展是否安裝。 ## 7.如何開啟fileinfo擴展? 不同的服務器套件有不同的開啟方法,下面介紹幾種: **1.phpstudy** 如果在Windows下用`phpstudy`套件,那么開啟fileinfo很簡單。 ![](https://box.kancloud.cn/52fffc8f536db58508f06a536a36091b_830x661.png) **2.自己安裝的lnmp環境** 進入php源碼中的fileinfo目錄,不同的版本,路徑會有所不同,請根據實際情況,找到對應的目錄。 ~~~ cd /home/ming/lnmp1.3-full/src/php-7.0.7/ext/fileinfo/ ~~~ 執行`phpize`命令 >[danger]注意,該命令一定要在上面說到的fileinfo目錄下執行 ~~~ /usr/local/php/bin/phpize ~~~ 如果執行成功,會有類似下面的信息 ~~~ Configuring for: PHP Api Version: 20151012 Zend Module Api No: 20151012 Zend Extension Api No: 320151012 ~~~ 配置php-config路徑,以自己服務器的實際路徑為準 ~~~ ./configure --with-php-config=/usr/local/php/bin/php-config ~~~ 編譯安裝 ~~~ make && make install ~~~ 如果安裝成功,會有類似下面的信息 ~~~ Installing shared extensions: /usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/ ~~~ 修改`php.ini`,在后面加入 ~~~ extension = fileinfo.so; ~~~ 最后重啟php服務即可。 ## 8.如何開啟pathinfo支持? 本框架需要服務器支持pathinfo,所以如果沒有開啟pathinfo,需要自行開啟。 **[Apache]** 如果是在Windows下用phpstudy架設的,設置很簡單,只需啟用rewrite模塊即可。 ![](https://box.kancloud.cn/a03e0b276e84a963698976274dfb91e7_886x546.png) 如果還是訪問出錯,可以嘗試以下操作。 打開`.htaccess` 將規則改為如下: ~~~ <IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?s=/$1 [QSA,PT,L] </IfModule> ~~~ **[Nginx]** 在Nginx.conf配置中,添加 ~~~ location ~ [^/]\.php(/|$) { fastcgi_pass unix:/tmp/php-cgi.sock; fastcgi_index index.php; fastcgi_split_path_info ^(.+\.php)(.*)$; fastcgi_param PATH_INFO $fastcgi_path_info; include fastcgi.conf; include pathinfo.conf; } ~~~ 在Nginx低版本中,是不支持PATHINFO的,但是可以通過在Nginx.conf中配置轉發規則實現。 ~~~ location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=/$1 last; break; } } ~~~ 一個完整示例,請根據自己服務器加以修改 ~~~ server { listen 80; server_name www.dolphinphp.com *.dolphinphp.com; root "/home/www/wwwroot/dolphinphp"; location / { index index.html index.htm index.php; #主要是這一段一定要確保存在 if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=$1 last; break; } #結束 #autoindex on; } location ~ \.php(.*)$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_split_path_info ^(.+\.php)(.*)$; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; include fastcgi_params; } } ~~~ 以下是網友分享的一段參考配置 ~~~ server { listen 80; server_name admin5.cn; location / { root d:/wamp64/www/git/admin5; index index.html index.htm index.php; try_files $uri @rewrite; location ~ \.php$ { try_files $uri =404; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } } location ~ /.svn/ { deny all; } # 重寫規則 location @rewrite { #如果有admin.php 文件,重寫 rewrite ^/admin.php(.*)$ /admin.php?s=$1 last; #如果有 index.php 文件 ,重寫 rewrite ^/index.php(.*)$ /index.php?s=$1 last; #重寫到 index.php rewrite . /index.php?s=$uri last; } #error_page 404 /404.html; # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } location ~ /\.(svn|git) { deny all; } } ~~~ 如果使用了寶塔面板,在站點管理-設置中,偽靜態選擇“thinkphp”即可 ![](https://box.kancloud.cn/86a9381d87dd1cafbddb833f51295393_360x469.png) ## 9.后臺頁面響應時間過長? 全新安裝框架,打開后臺,頁面響應過長,要好幾秒才能完全加載頁面? 如果遇到這樣的問題,請嘗試將數據庫配置文件:`\application\database.php`中的 ~~~ 'hostname' => 'localhost' ~~~ 改為 ~~~ 'hostname' => '127.0.0.1' ~~~ ## 10.ueditor編輯器無法插入通用代碼 有時候需要在編輯器中插入視頻通用代碼,比如騰訊視屏的通用代碼。一般是以“iframe”標簽的方式插入的。 百度編輯器本身是禁止插入“iframe”的,因為有可能造成xss攻擊。 如果您已經足夠了解什么是xss攻擊,以及確定要使用“iframe”標簽,那么可以按以下方式解決。 打開`\public\static\libs\ueditor\ueditor.config.js`,搜索“whitList”,在“whitList”內添加以下代碼。 ~~~ iframe: ['frameborder', 'src', 'width', 'height'], ~~~ ![](https://box.kancloud.cn/7b2c12b1f4eea2f28cd0de667b444aae_672x239.png)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看