Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

changing php write permissions in XAMPP on Windows 7

I'm trying to install a file-based blog engine in XAMPP, but all of these projects require write permissions to be changed. I'm assuming they are not talking the Windows setting that can be accessed through 'properties'. Any idea where/how to change this? seems like an easy question but i'm coming up short. Thank you.

like image 888
expiredninja Avatar asked Feb 19 '12 13:02

expiredninja


People also ask

How do I give permission to Xampp from Windows?

You can set permissions for the XAMPP folder by right clicking on it and click on Get Info. From there expand Sharing and Permissions at the bottom if it already isn't. Depending on where the folder is you may need to click the lock icon at the bottom right to allow you to make changes.

What should php file permissions be?

Set php files to 640. For maximum security you should set minimum permissions, which is 640.


2 Answers

Windows is generally less restrictive about read/write-permissions. If you did not install XAMPP into C:\ProgramFiles chances are good, that setting file-permissions does not apply to your installation. In the unlikely case, that your PHP-log shows warnings/errors regarding file permissions, then changing them like you described (with settings > permissions) is the way to go. You just have to find out, under which user name apache is running (via Administrative Tools, Services) and add read/write permissions for that user in the appropriate folder.

In short, you can ignore the sections on setting file permissions on Windows.

like image 118
dbrumann Avatar answered Sep 28 '22 15:09

dbrumann


Basically, the user that Apache runs as needs to able to write to the files.

So firstly, check process list to determine which user that is. Then simply give that user write permission to those files/folders.

(I'm not a XAMPP or Win 7 user so can't give exact directions but I'm sure you'll work it out.)

like image 25
James Avatar answered Sep 28 '22 13:09

James