Category Archives: Windows

fopen filename can not be empty error (or not readable exception)

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.


Notes to install PHP 7.2 and Laravel on windows server 2008 (SQL Server)

cd inetpub/laravel

comment “;extension=php_mysql.dll” in php.ini

Install url-rewrite module for IIS

Import rewrite rules:


install failed request tracing


Change laravel structure:

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”

SQL Server related:

Download sql drivers and copy “php_pdo_sqlsrv_72_ts_x64.dll” to php extension folder

Add this line in php.ini:


Change database configs in .env:

  • Change DB port to 1433

Install Apache + PHP + MySQL Manually on Windows Server 2008

  1. Install Visual C++ Redistributable 2012
    VC version is very very very important! VC 2012 = VC11, Apache and PHP must be the same version VC11
  2. Install Apache: (win64)
  3. Edit httpd.conf
  4. Install service:
    httpd -k install -n “Apache 2.4”
  5. Install PHP
    If using laravel which require openssl_encrypt function, you must choose threat safe version:
  6. Edit php.ini
  7. Enable .htaccess in Apache:
    1. Set AllowOverride All for document directory.
    2. Enable rewrite module:
      LoadModule rewrite_module modules/


Create OpenSSL certificate

Most of this article is correct:


  1. Need to create both index.txt and index.txt.attr
  2. If keep getting “Invalid type in ‘policy’ configuration”, replace “policy = policy_match” with “policy = policy_anything”

Important commands: