Before you start, please have a look to the System requirements.
This is the recommended steps for security on Apache:
Script to change the permissions recursively:
chown root.root demo.wmanager.org/ -R
find ./demo.wmanager.org -type d -exec chmod 755 {} \;
find ./demo.wmanager.org -type f -exec chmod 644 {} \;