Wordpress Stackscript Error Mesage
-
In your Wordpress Stackscript, the following line:
sudo mv -R /home/public_html/servinghomeserver /home/public_html/servinghomeserver_BACKUPIs bringing up an "R" is an invalid option error message?
Posted 2 years ago # -
Changing it to
sudo cp - Rshould work.Posted 2 years ago # -
cheers chaps .. aye, shilly mishtake, changed:-
sudo mv /home/public_...
Posted 2 years ago # -
i have a question on user permission
the wp stackscript did this first
chown -R $USER:webmasters /home/public_htmllater it chown it to www-data:www-data
chown -R www-data:www-data /home/public_html/$DOMAIN/public
why ??? if the file permission is www-data:www-data the user cannot edit it ..
Posted 1 year ago # -
hey Matthew .. your web files have to be accessible to the web server, hence www-data:www-data .. but you're right you have to:-
sudo chown you:www-data somefile
.. to edit a file, then back to www/www:-
sudo chown www-data:www-data somefile
pain huh! .. I'll add a tut about modifying groups so you won't have to do this ..
Posted 1 year ago # -
i just wonder shall i add my user account to www-data group and chown all the file into knight:www-data
Posted 1 year ago # -
is this for scp/ftp'ing uploads to a dir, say?
if so usermod into the group as you say and, just for that place, chown with 760, maybe 764 depending on what it's for.
.. that's the best route for many CMSes, for example, when you need to be able both to upload via ssh and let nginx access for updates and so on.
Posted 1 year ago #
Reply
You must log in to post.
Want HTML?
a blockquote code em strong ul ol liPlace code between backticks `codeHere`
You've got it.
