Problem with permission

3 posts / 0 new
Last post
#1 Tue, 07/30/2019 - 11:13
webgear

Problem with permission

Hello,

I changed the permissions with this code (to fix another problem).

chown -R root /var/www

Except now I can no longer install wordpress, I can no longer change php version etc.

Here is for example the error message when I want to install wordpress:

cp: impossible to create the standard file "/home/atsrenovation/public_html/index.php": Permission not granted
cp: impossible to create the standard file "/home/atsrenovation/public_html/license.txt": Permission not granted
cp: impossible to create the standard file "/home/atsrenovation/public_html/readme.html": Permission not granted
cp: impossible to create the standard file "/home/atsrenovation/public_html/wp-activate.php": Permission not granted
.... (with other similar lines)

When I want to switch from php 7.1 to 7.3 I have this message :

Failed to save PHP versions : Failed to open /home/atsrenovation/fcgi-bin/php5.fcgi.webmintmp.54199 : Permission denied

I try this code :

chown -R www-data /var/www

But it didn't change anything.

Can you help me, please? Thanks in advance.

Wed, 08/14/2019 - 12:58
tpnsolutions
tpnsolutions's picture

Hi,

Go into Virtualmin, and give this a try:

  1. Limits and Validation
  2. Validate Virtual Servers
  3. Fix Permissions
  4. Choose "All servers" and set "Also fix sub-servers" to "Yes", then click "Fix Permissions Now".

Let me know if that addresses your problem.

Best Regards,
Peter Knowles | TPN Solutions
Email: pknowles@tpnsolutions.com | Skype: tpnassist
Thu, 11/28/2019 - 05:03 (Reply to #2)
jicao

Thx a lot for this tip !

Topic locked