Link to home
Start Free TrialLog in
Avatar of Daniel Lowes
Daniel Lowes

asked on

PHP web dev editing files in folder the proper way?

I managed to run docker and install wordpress on ubuntu linux but can't seem to get the handle how I can edit the files within the dock as I get permission issues.
I think I am looking at it the wrong way about,
Could somone get me thinking the right way because  I love the performance for local development :).
(PHP ,Wordpress,MYSQL on NGINX).
Avatar of David Favor
David Favor
Flag of United States of America image

Just shell into your container using root ssh.

This should provide you with full edit access to every file.
Or maybe you're trying to edit using WordPress file editing features (no recommended, as this can get you in world of trouble).

If this is the problem, then to edit files will require correct file ownership (or setfacl) + permissions.

Maybe best to clarify your exact editing approach along with an example error you see.
I would do that with some console text processor, like vi or nano etc.
Avatar of Daniel Lowes
Daniel Lowes

ASKER

I usually use an IDE like PHPstorm ,VSCODE etc.why am I restricted to the console.
Maybe ftp?ftp container?
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.