It says there are no such files/configurations or packages?

I’m currently trying these commands:
chown -R root:www-data files/
chown -R root:www-data config/
chown -R root:www-data packages/

From This tutorial here on DO. I believe i’ve done all previous steps correctly and I’ve set up my php, apache and mysql correctly.

I get told
“chown: cannot access ‘file/’: no such file or directory”

Can anyone help with what I’m doing wrong?

edited by AHA

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

“chown: cannot access ‘file/’: no such file or directory”

In your commands above you are chown'ing files/ not file.

I would also recommend chown -Rf www-data:www-data /var/www and set your web root and it’s contents to be owned by the apache user.

Submit an Answer