How to set your temp directory for Windows OS, PHP version 7/8

[ad_1]

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:

1. Open your site folder
2. Navigate to your PHP folder -> **conf** \-> **php**
3. Double-click **php.ini.hbs**
4. 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”
5. Save the file
6. Go back to the main directory for your site
7. Navigate to your public folder -> **app** \-> **public**
8. Create a new folder called **”temp”**
9. You’re Done! 🙂

Make sure to restart the site to update your site’s temp directory.

[ad_2]
1 Comment

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer