This is the recommended steps for security on Apache:
Script to change the permissions recursively:
chown root.root demo.wmanager.org/ -R find ./ -type d -exec chmod 755 {} \; find ./ -type f -exec chmod 644 {} \; chown apache.apache ./application/config -R chown apache.apache ./application/logs -R chown apache.apache ./assets/uploads -R chown apache.apache ./application/modules -R chown apache.apache ./application/controllers/cron -R