Tag: IIS
Simple PHP large file upload test script
I’ve created simple script to test large file uploads using PHP powered servers. Fell free to check it at Gist.
How to force https on IIS webiste?
Edit web.config file in your website directory and carefully add this lines (remember to change domain name):
Parse logs for Matomo (Piwik) on Windows [using Powershell]
Automatic log parsing on Windows machines fot Matomo (Piwik). Once again, thanks to: Adrian Ligiewicz (aka the Master of Powershell)
Brutal fix for “Incorrect string value:” error in Matomo (Piwik)
If you’re using Matomo (previously Piwik) on MS IIS and MariaDBÂ and you’re getting a lot of these: [06-Jun-2018 11:56:36 UTC] Error in Matomo (tracker): Error query: SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect string value: ‘\xC3_\xC6\x92\xC3\x82…’ for column ‘name’ at row 1 In query: INSERT INTO matomo_log_action (name, hash, type, url_prefix) VALUES (?,CRC32(?),?,?) Parameters: array […]
How to setup your IIS to handle very long PHP execution?
This might be useful when serving file downloads or uploads using PHP.
PHP reading problem with files larger than 2 GB
If you’ll ever have problem with opening (fopen) and reading (fread) files larger than 2 GB in your PHP script. Check your version of scripting engine. In my case switching to 64 bit solved the problem. Please mind that this error is very hard to debug because PHP does not log anything (same as MS […]
How to pack directory using 7-zip in PHP on Windows?
This one was little bit tricky. If you want to pack files on your IISÂ webserver follow my guide.
How to remove unwanted HTTP Response Headers in IIS 7.5
Hiding server software is one of ways to protect your services from hackers. It’s quite easy to obscure IIS identity. In few steps I’ll show you how to accomplish this task on WIMP stack.