Setting Folder Access Rights

At this step you need to grant write access to the folder where your app will run. These rights are required so your app can create cache folders, cache files, etc.

Under Ubuntu, Apache runs under the user group www-data.

1

1. Go to your application folder

In a terminal, change to the location where your application folder resides. Example:

/home/linux_user/PAServer/scratch-dir/elite-Ubuntu64/

2

2. Change the group and permissions for the application folder

Run the following commands in that folder (replace uniApache with your application folder name if different):

Terminal
sudo chgrp www-data uniApache
sudo chmod 775 uniApache
  • The first command changes the group of the uniApache folder to www-data.

  • The second command grants read/write/execute permissions to the owner and group, and read/execute to others (i.e., group read/write access).

3

3. Verify the permissions

You can verify the change by checking the folder properties or listing details in the terminal, for example:

Terminal
ls -ld uniApache

This will show the owner, group, and permission bits for the folder.

You can also confirm visually (example screenshot):