Permissions for LAMP on localhost

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
johnnya23
Level 1
Level 1
Posts: 48
Joined: Fri Mar 09, 2018 10:06 am

Permissions for LAMP on localhost

Post by johnnya23 »

I have installed LAMP and have a Wordpress site up and running on localhost/sitename. All I am planning to do is develop sites locally. I have file/folder permission issues. When I try to save a file within the install (using ATOM editor) I get a permission denied message. When I try to update plugins through the WordPress dashboard I get prompted for ftp info. I would also like to increase the upload file max beyond 2M (php.ini edit).
thanks,
John
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
kukamuumuka

Re: Permissions for LAMP on localhost

Post by kukamuumuka »

viewtopic.php?f=47&t=265925

For privileges:

Code: Select all

sudo usermod -a -G www-data your_username_here
sudo chgrp -R www-data /var/www/html
sudo chmod -R g+w /var/www/html
johnnya23
Level 1
Level 1
Posts: 48
Joined: Fri Mar 09, 2018 10:06 am

Re: Permissions for LAMP on localhost

Post by johnnya23 »

Thanks for the reply.
root is the only user it will take and that has no effect.
John
kukamuumuka

Re: Permissions for LAMP on localhost

Post by kukamuumuka »

johnnya23 wrote: Wed Mar 21, 2018 3:55 pm Thanks for the reply.
root is the only user it will take and that has no effect.
John
OMG. :shock: ... You should make a normal user and use computer the safe way.
johnnya23
Level 1
Level 1
Posts: 48
Joined: Fri Mar 09, 2018 10:06 am

Re: Permissions for LAMP on localhost

Post by johnnya23 »

I was trying to use mysql users. Used my login user and applied the 3 lines of code.. still no change.
Locked

Return to “Beginner Questions”