#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.
#2
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.
#3
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
#4

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!
Hi lunaticthrasher,

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
#5
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
#6
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!
#7
Hi Tom,

Thanks for posting the batch file to launch PhpUp. I like it!

I'm curious, which part of my post ended up solving the problem for you? Was it the Windows update, the Controlled Folder Access suggestion, the project location, or something else?

Also, have you had a chance to try Balazs' getPhp yet? I'd be interested to hear how it compares with PhpUp.

Cheers,
Si
#8
Hey DaFa, I haven't gotten to the other one yet, I was getting everything redownloaded after the windows reload. I'll give it a try either tonight or tomorrow, work been kicking my butt as well. I almost got my computer back to what it was before the redo. At first with yours I tried the powershell but forgot to set it to admin, not good. Then with admin it worked perfectly but I just didn't like having to copy paste that's why I created the BAT file. Also I created the BAT file because I'm not coding everyday so I didn't want it just running on startup. I didn't have problems after windows redo with yours but xampp still gave me the problem. So I am really glad yours worked. I still don't get why my other computer doesn't do the file permission thing, I really can't remember any problems on old computer.

Have a good one, Tom
#9
Balazs,
I still can not get your PHP stack to download. It does get the header is what I'd call it but doesn't do anything after that. I'm using a BAT file like I did with DaFa's version and it loads up into Powershell Admin but like I said shows the banner part but does nothing else. This is the call I'm using from your website, ['irm https://raw.githubusercontent.com/DaFa66/phpup/HEAD/phpup.ps1 | iex']. I don't think I'm doing it wrong just it doesn't do anything after the initial download with the logo.

I'll keep trying, Tom