Put the service file back the way it was. It's best if you can identify which directories Joomla needs write access to limit exposure. For Wordpress it's /path/to/wordpress/DocumentRoot/wp-content/{plugins,themes,upgrade,uploads} so: rw_dirs="plugins themes upgrade uploads" if you can't identify them, you have to open up the whole tree: rw_dirs="." Now do this: cd /path/to/joomla/DocumentRoot chmod -R apache:apache $rw_dirs find $rw_dirs -type d -exec chmod 2770 {} \; find $rw_dirs -type f -exec chmod 660 {} \; There's more to do if you're running selinux. But try the above and report back. Hope this helps, Bill On 9/6/2016 4:11 PM, Alex wrote:
Hi, I've set up a virtual host for a joomla website and having some permissions problems. I've seen numerous configurations online about how to set umask for the apache user, but none have worked, including creating a systemd file (/etc/systemd/system/multi-user.target.wants/httpd.service) with the following: [Unit] Description=The Apache HTTP Server After=network.target remote-fs.target nss-lookup.target [Service] Type=notify Environment=LANG=C Umask=0006 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND ExecReload=/usr/sbin/httpd $OPTIONS -k graceful # Send SIGWINCH for graceful stop KillSignal=SIGWINCH KillMode=mixed PrivateTmp=true [Install] WantedBy=multi-user.target The problem is that the files are owned by the joomla user, but also need to have access (both read and write) to be able to modify some files within the document root. Does anyone have any suggestions on how to set umask for the apache user? I'm also interested in recommended permissions settings for the joomla document root. Thanks, Alex -- users mailing list users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe or change subscription options: https://lists.fedoraproject.org/admin/lists/users@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org |
-- users mailing list users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe or change subscription options: https://lists.fedoraproject.org/admin/lists/users@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org