<div dir="auto"><div>What is the group of the Apache process? I think that group needs to be there like</div><div dir="auto"><br></div><div dir="auto">chown lamp:www-data test_file.txt</div><div dir="auto">chmod 775 test_file.txt</div><div dir="auto"><br></div><div dir="auto">Its working when you set 777 because that's making it writable to everyone.</div><div><br></div><div data-smartmail="gmail_signature">---<br>Thanks,<br>Alexander<br><br>Sent from my Google Pixel 7 Pro</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Dec 5, 2024, 09:46 Keith Smith via PLUG-discuss <<a href="mailto:plug-discuss@lists.phxlinux.org">plug-discuss@lists.phxlinux.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello;<br>
<br>
I have a private net that runs non-rountable domain names of .internal. <br>
I use the hosts files for DNS.<br>
<br>
This is for PHP development and testing.<br>
<br>
Desktop is Kubuntu. Have installed Virtual Studio Code (VSC).<br>
<br>
I have a Win10 laptop running VirtualBox and multiple VMs of which only <br>
one runs at a time. As I complete a configuration I clone the last <br>
successful VM to take it to the next level.<br>
<br>
The Goal is to be able to remote edit using VSC.<br>
<br>
My config<br>
<br>
Ubuntu 24.04lts<br>
Apache2<br>
PHP 8.3<br>
MySQL<br>
PHP-FPM<br>
<br>
I think I have a complete PHP-FPM config, user is lamp, group is lamp.<br>
<br>
PHP Info shows Server API FPM/FastCGI which I understand the config is <br>
correct.<br>
<br>
I can access the server using VSC and am able to add/edit/delete/save <br>
code files.<br>
<br>
My permissions and ownership is:<br>
<br>
- sudo chown -R lamp:lamp /var/www/lamp.internal<br>
– sudo find /var/www/lamp.internal -type d -exec chmod 755 {} \;<br>
– sudo find /var/www/lamp.internal -type f -exec chmod 644 {} \;<br>
<br>
When I run : <a href="http://lamp.internal/php-write-edit-delete.php" rel="noreferrer noreferrer" target="_blank">http://lamp.internal/php-write-edit-delete.php</a> it reports:<br>
<br>
The file does not exist. It will be created shortly.<br>
<br>
Error writing to the file.<br>
<br>
Error appending to the file.<br>
<br>
Error deleting the file.<br>
<br>
---<br>
<br>
When I change permissions : sudo find /var/www/lamp.internal -type d <br>
-exec chmod 777 {} \;<br>
<br>
The script reports:<br>
<br>
The file does not exist. It will be created shortly.<br>
<br>
Successfully written to the file: 'test_file.txt'<br>
<br>
Successfully appended content to the file: 'test_file.txt'<br>
File Content (After Modifying):<br>
<br>
This is the initial content of the file.<br>
Appended content: 2024-12-05 16:37:21<br>
<br>
Successfully deleted the file: 'test_file.txt'<br>
<br>
---<br>
<br>
Interestingly I can edit files using VSC however I have difficulty <br>
running a script from a browser.<br>
<br>
Any help much appreciated!!<br>
<br>
Thanks!!<br>
<br>
Keith<br>
<br>
---------------------------------------------------<br>
PLUG-discuss mailing list: <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank" rel="noreferrer">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="https://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer noreferrer" target="_blank">https://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br>
</blockquote></div>