Notes:
- 如果要設定虛擬目錄,從FTP根目錄指到別的資料夾,虛擬目錄的名稱要和實際資料夾的名稱一模一樣
- 所有目錄都要設定權限給FTP user
When uploading a file with Voyager, following errors happen:
Add IUSR to the folder which “upload_tmp_dir” points to. Normally “C:\Windows\Temp” in windows.
Reference:
https://laravel-news.com/subfolder-install
cd inetpub/laravel
comment “;extension=php_mysql.dll” in php.ini
https://www.iis.net/downloads/microsoft/url-rewrite
Change path in public/index.php
require __DIR__.’/../../../../laravel/vendor/autoload.php’;
$app = require_once __DIR__.’/../../../../laravel/bootstrap/app.php’;
Add mofify permission for user “IUSR” to “D:\Inetpub\laravel\storage\framework\sessions”
https://support.microsoft.com/en-gb/help/2977003/the-latest-supported-visual-c-downloads
extension=php_pdo_sqlsrv_72_ts_x64.dll
Change database configs in .env:
If upload fails all the time (file not found exception), try create a folder for PHP to upload temp files. e.g. C:\phptmp
Revise php.ini as well:
1 2 3 |
extension_dir = "C:\php7\ext\" error_log = "C:\Windows\Temp\php-7.2.5_errors.log" upload_tmp_dir = "C:\phptmp\" |
Pattern:
(pcc/promotion/login2)(.*)
Rewrite URL:
/{R:1}/index.php{R:2}