0

I am try to make a file readable and writable by apache web server. I have use the following command:

sudo chgrp apache /var/www/html/itdb/data/itdb.db

When I try to run the php application I get the message:

var/www/html/itdb is not writeable by apache
make /var/www/html/itdb/data/files/ writeable by the user running the web server
in unix:

chown www-data /var/www/html/itdb/data/files/; chmod u+w /var/www/html/itdb/data/files/
A.B.
  • 92,125

1 Answers1

0

in your attempt:

sudo chgrp apache /var/www/html/itdb/data/itdb.db

you're setting group "apache" as owner of this resource

/var/www/html/itdb/data/itdb.db

and script is complaining:

var/www/html/itdb is not writeable by apache

and even giving you solution:

chown www-data /var/www/html/itdb/data/files/; chmod u+w /var/www/html/itdb/data/files/

(probably you might want to run those with sudo to ensure success)

Good luck

A.B.
  • 92,125