Anyone have any advice on this maddening issue that complicates my development server?
I am using WAMP on Windows 11 with SSL for Joomla 5.0.3 development. WAMP is running Apache 2.4.58 with PHP 8.1.26
Everything works fine except I cannot install extension updates or Joomla updates.
I have determined that in the file Filesystem\Folder.php, each installation is proceeding just fine until it reaches an .htaccess file and then it fails with a permissions error. The thing is, I have done everything with windows permission possible on this, and there is no specific permission associated with the .htaccess file in question, so it seems like PHP/Apache must just be deciding that it does not have permission to manipulate dot-files.
The error is occurring in Filesystem\Folder.php at line 147-148.
if (!@copy($sfid, $dfid)) {
throw new \RuntimeException('Copy file failed', -1);
}
I can watch all the files successfully copy until an .htaccess file comes up and then it throws the exception. This does not happen on my Ubuntu development server nor on my cPanel/CentOS7.9 server.
Anyone have an idea why this might be happening in the windows/WAMP environment or how I can correct it?
From: joomla-de...@googlegroups.com <joomla-de...@googlegroups.com>
On Behalf Of shumisha
Sent: Sunday, April 21, 2024 03:57
To: Joomla! General Development <joomla-de...@googlegroups.com>
Subject: [jgen] Re: WAMP and dotfiles
Hi
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
joomla-dev-gene...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/joomla-dev-general/11534874-c0a6-43f7-8716-d2a427093c19n%40googlegroups.com.
I’ll try to dig into it again. I made the parent folders owned by “Everyone” in an effort to resolve it. I am using Norton, and I could give that a try.
Since no other files are affected, and no unix-like permissions are carried forward in the zip file to windows, Your anti-virus theory, or something else that is triggered by the dotfile name seems the most likely culprit.
My web space is not inside of the WAMP folder (c:\mywebsites and c:\wamp64), but everything else works and this is how I have been configured many times before, including updating extensions, without any issue. I did try other php/apache version, no change.
To view this discussion on the web, visit https://groups.google.com/d/msgid/joomla-dev-general/177bd3ef-ae2a-443e-8a88-ea04603d7e49n%40googlegroups.com.
No change disabling both Norton AV and Firewall.
To view this discussion on the web, visit https://groups.google.com/d/msgid/joomla-dev-general/SA1PR22MB4181820C4695A3027DF48CA7CB122%40SA1PR22MB4181.namprd22.prod.outlook.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/joomla-dev-general/SA1PR22MB4181728FFABE57C5388B1551CB122%40SA1PR22MB4181.namprd22.prod.outlook.com.
Steven,
I'm not into Joomla dev any more since a long time, but have you
tried with a different WAMP stack? For my needs I'm very happy
with the Wamp.NET stack (https://wamp.net/).
Cheers,
Sergio
To view this discussion on the web, visit https://groups.google.com/d/msgid/joomla-dev-general/SJ2PR22MB4167C30968898946FE743788CB112%40SJ2PR22MB4167.namprd22.prod.outlook.com.