Change ownership of everything to apache?

I got the message below in Piwik after upgrading to 3.0.0 (although unformatted with raw HTML tags). root actually owns most of the files and directories in my piwik folder. Is it safe to change the ownership of everything to apache?


Piwik couldn't write to some directories (running as user 'apache').

Try to Execute the following commands on your server, to allow Write access on these directories:

chown -R apache:apache /var/www/localhost/htdocs/piwik
chmod -R 0755 /var/www/localhost/htdocs/piwik/plugins

If this doesn't work, you can try to create the directories with your FTP software, and set the CHMOD to 0755 (or 0777 if 0755 is not enough). To do so with your FTP software, right click on the directories then click permissions.

After applying the modifications, you can refresh the page.

If you need more help, try