Alrighty to anyone using LocalWP, windows OS and PHP version 7/8,
There is an issue where your temp folder is set to C:/Windows/Temp by default.
This folder requires permissions that you usually wouldn’t grant.
The temp folder is essential for us to upload images and use Elementor.
So a simple fix is the following:
- Open your site folder
- Navigate to your PHP folder → conf → php
- Double-click php.ini.hbs
- Replace line 5 with this sys_temp_dir=“YOURDRIVE:\YOUR\PATH\TO\SITE\app\public\temp”
- My path looks like this sys_temp_dir=“B:\WordPress Sites\Stickurs\app\public\temp”
- Save the file
- Go back to the main directory for your site
- Navigate to your public folder → app → public
- Create a new folder called “temp”
- You’re Done!
Make sure to restart the site to update your site’s temp directory.