insufficient file permissions
18 days ago
18 days ago
#1
Well I think I read about this somewhere here but can not remember where. I am getting this when creating new module in V2 'Module could not be created because of insufficient file permissions.'. Also the button to 'learn more about this error' is not working. I just downloaded the new release version github, and also downloaded a newer version of xampp for 8.2 PHP windows. I think it has to do with Windows File Protection but am not 100% on that. Any ideas? Any help would be appreciated.
18 days ago
#2
Hello lunaticthrasher,
In his latest video DC used the following command to set file permissions:
To see it in action, here is the relevant part of his video (at 1:12): https://www.youtube.com/watch?v=vN_F1lHn6TE&t=72s
I know he is on macOS and you are on Windows. On Windows you can open a Command Prompt as an Administrator and run:
If that doesn't work, here is an alternative solution: open PowerShell (Admin) and run:
(Note: before you run it you have to cd into the correct directory.)
I hope that helps.
By the way, XAMPP is very outdated and basically abandoned.
To get the latest version of PHP (8.5) on your Windows machine, please take a look at this getPHP video: https://youtu.be/HD2J9tNN6EY
In his latest video DC used the following command to set file permissions:
To see it in action, here is the relevant part of his video (at 1:12): https://www.youtube.com/watch?v=vN_F1lHn6TE&t=72s
I know he is on macOS and you are on Windows. On Windows you can open a Command Prompt as an Administrator and run:
If that doesn't work, here is an alternative solution: open PowerShell (Admin) and run:
(Note: before you run it you have to cd into the correct directory.)
I hope that helps.
By the way, XAMPP is very outdated and basically abandoned.
To get the latest version of PHP (8.5) on your Windows machine, please take a look at this getPHP video: https://youtu.be/HD2J9tNN6EY
17 days ago
#3
Thanks for the reply Balazs, I'll try it either tonight or tomorrow work is hectic but I'll let you know if it fixed it. Also appreciate your insight on the PHP.
17 days ago
#4
No problem lunaticthrasher.
By the way, here's a third (more visual) way to set permissions: right-click on the folder (your Trongate project) then "Show more options" » "Properties" » "Security" » "Edit". You might give that a try as well.
Let me know how it goes.
By the way, here's a third (more visual) way to set permissions: right-click on the folder (your Trongate project) then "Show more options" » "Properties" » "Security" » "Edit". You might give that a try as well.
Let me know how it goes.
16 days ago
#5
Here's an update Balazs, None of the powershell things worked, for some reason I can't get any file to release the read-only tag. I think my windows setup up is bugged, might have to reinstall. The phpget.org gets flagged by Norton Security because of IDP.HELU.PSS25 and stops the progress of the command. I tried on both my computers and same thing. Side note, My other computer actually does run Trongate V2 without any of the error problems, so yeah I really think it is my windows on this new computer. Thanks for the help
16 days ago
#6
★ Winning Post! ★
The thread creator has indicated that this post solved the problem or provided the best insight.
Members who post winning responses earn points for our leaderboard.
Points mean prizes!
Before reinstalling Windows, I'd check a few things:
• Windows Controlled Folder Access (Settings > Privacy & Security > Windows Security > Virus & threat protection > Ransomware protection). If it's enabled, it can silently block PHP from creating folders and files. If so, add `php.exe` and your web server (`httpd.exe` or `apache.exe`) to the allowed applications.
• If Apache is running as a Windows service under a restricted account, it may not have permission to write to your project folder. Try running it from the XAMPP Control Panel instead as `Administrator` (right click and run as admin).
• Project location. If your project is under C:\Program Files, C:\Users\<username>\Documents, or inside a OneDrive synchronised folder, Windows can apply additional protection. Try moving it to C:\xampp.
• Test whether PHP can actually write files. Create a file called test.php containing:If that outputs `Failed`, you've confirmed it's a Windows/Apache permissions issue rather than `FLO` the module generator itself. Also, don't worry too much about the Read-only checkbox on folders. On Windows, that's mostly used by Explorer and is rarely the cause of applications being unable to write files.
Regarding Norton flagging `getPHP` with `IDP.HELU.PSS25`, that sounds like a heuristic (behaviour-based) detection rather than a confirmed malware signature. Those do occasionally produce false positives. If it's only Norton detecting it, it may be worth submitting it to them for analysis.
BTW - please do stop using Xampp and give `getPHP` a try - it is well worth the upgrade to run more current versions of PHP. Also to note, there is an issue with the Apache manifest file right now when installing via Winget on x64 machines (ARM-based Windows on Apple silicon seems fine). To get around it for now, you can use my version:Cheers,
Si
16 days ago
#7
There was a bug with the code generator that was live for about 24 hours. What it was doing is it was erroneously deleting a (directory named) 'factory' after the first module was generated. It's possible that you've been unlucky and this is what has caused the issue.
I would recommend making sure you are on the very latest version of the framework. If that's not possible, just make sure you're using the very latest version of the 'trongate_control' module.
I would recommend making sure you are on the very latest version of the framework. If that's not possible, just make sure you're using the very latest version of the 'trongate_control' module.
15 days ago
#8
Hello lunaticthrasher and DaFa,
The getPHP installer now works both on x64 and ARM chipsets on Windows. 👍🏻 (In addition to Ubuntu- and Debian based Linux distros and macOS running on M1 chips and upward.)
Regarding the Norton Antivirus flag, I have reported the false positive to Norton and hopefully the command will be white-listed soon.
Thanks for the feedback from both of you and please let me know if anything else comes up.
The getPHP installer now works both on x64 and ARM chipsets on Windows. 👍🏻 (In addition to Ubuntu- and Debian based Linux distros and macOS running on M1 chips and upward.)
Regarding the Norton Antivirus flag, I have reported the false positive to Norton and hopefully the command will be white-listed soon.
Thanks for the feedback from both of you and please let me know if anything else comes up.
15 days ago
#9
Update, I appreciate you all very much.
I actually had to update my windows because it was bugged somehow from the new install from the beginning of when I built it, just didn't have time to fix yet. So with fresh install, I was able to use DaFa's fix and got PHPUP to work with no problems except the learning curve lol. Also the little PHP script worked as well with a positive success for creating the file. Also used Trongate V2 and works like a charm!
Thank you all for the help and the new knowledge of the PHP stack. I never heard of it before but so far seems to work way better then Xampp.
Mucho respect to you all, Tom
I actually had to update my windows because it was bugged somehow from the new install from the beginning of when I built it, just didn't have time to fix yet. So with fresh install, I was able to use DaFa's fix and got PHPUP to work with no problems except the learning curve lol. Also the little PHP script worked as well with a positive success for creating the file. Also used Trongate V2 and works like a charm!
Thank you all for the help and the new knowledge of the PHP stack. I never heard of it before but so far seems to work way better then Xampp.
Mucho respect to you all, Tom
14 days ago
#10
If anyone wants to create a bat file you can copy paste this in it, I would suggest keeping the .bat file in your phpup file . Mine is C:\phpup\PHPUP Admin.bat then create a shortcut file and then you dont have to keep running powershell in admin and pasting. You can just Double click the short cut.
[@echo off
powershell -Command "Start-Process PowerShell -Verb RunAs -ArgumentList '-NoExit','-ExecutionPolicy','Bypass','-Command','irm https://raw.githubusercontent.com/DaFa66/phpup/HEAD/phpup.ps1 | iex'"]
DO NOT USE THE BRACKETS!
Have a Blast with the PHPUP stacks, I'm loving it!
[@echo off
powershell -Command "Start-Process PowerShell -Verb RunAs -ArgumentList '-NoExit','-ExecutionPolicy','Bypass','-Command','irm https://raw.githubusercontent.com/DaFa66/phpup/HEAD/phpup.ps1 | iex'"]
DO NOT USE THE BRACKETS!
Have a Blast with the PHPUP stacks, I'm loving it!