05-25-2020, 10:33 PM
(05-20-2020, 02:02 AM)remkonoteboom Wrote: The logs should give some more information. From what I see, that you have looks correct. Note that this is the apache direct that you do want to use: <Directory "/home/apache/tactic" >
It may also be file permissions. The user www-data is not usually a user you can log in to, but you can temporarily change that in the /etc/passwd file:
For example (for an apache user):
apache:x:48:48:Apache:/usr/share/httpd:/sbin/nologin
you can switch it to:
apache:x:48:48:Apache:/usr/share/httpd:/bin/bash
This will allow you to su from root user:
# su apache
(in your case, it would be www-data).
Then try to navigate to the context folder and see if the user is permitted.
Thank you again.
I login as "www-data" like this (after initially logging in as the AWS initial user):
$ sudo su -s /bin/bash www-data
I think that comes from TACTIC documentation. Using the shell, I am able to navigate to the context folder as www-data:
$ sudo su -s /bin/bash www-data
www-data@x.x:/home/ubuntu$ cd /home/apache/tactic
www-data@x.x:/home/apache/tactic$ ls
3rd_party LICENSE README.md VERSION doc epl-v10.html src
www-data@x.x:/home/apache/tactic$ whoami
www-data
www-data@x.x:/home/apache/tactic$ cd src
www-data@x.x:/home/apache/tactic/src$ ls
__init__.py client context install pyasm test
asset_security.py config contrib java tactic
bin config2 deprecated plugins tactic_sites
www-data@x.x:/home/apache/tactic/src $ cd context
www-data@x.x:/home/apache/tactic/src/context$ ls
VERSION client icons javascript style test utility
VERSION_API favicon.ico images spt_js tactic_logo.png themes2
www-data@x.x:/home/apache/tactic/src/context$ ls -l
total 56
-rw-rw-r-- 1 www-data root 9 Dec 5 18:47 VERSION
-rw-rw-r-- 1 www-data root 9 Dec 5 18:47 VERSION_API
drwxrwxr-x 4 www-data root 4096 Dec 5 18:47 client
-rw-rw-r-- 1 www-data root 894 Dec 5 18:47 favicon.ico
drwxrwxr-x 14 www-data root 4096 Dec 5 18:47 icons
drwxrwxr-x 2 www-data root 4096 Dec 5 18:47 images
drwxrwxr-x 2 www-data root 4096 Dec 5 18:47 javascript
drwxrwxr-x 14 www-data root 4096 Dec 5 18:47 spt_js
drwxrwxr-x 2 www-data root 4096 Dec 5 18:47 style
-rw-rw-r-- 1 www-data root 5132 Dec 5 18:47 tactic_logo.png
drwxrwxr-x 2 www-data root 4096 Dec 5 18:47 test
drwxrwxr-x 4 www-data root 4096 Dec 5 18:47 themes2
drwxrwxr-x 3 www-data root 4096 Dec 5 18:47 utility
www-data@x.x:/home/apache/tactic/src/context$
Does all this look like it should to you?