A
A
aricents2015-03-04 22:45:16
linux
aricents, 2015-03-04 22:45:16

On apache, scripts are launched only from the root folder, what should I do?

from here test/prg1.php runs
from here no test/learn/prg1.php
os:linux

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
aricents, 2015-03-04
@aricents

Solved, set permissions to the root directory: sudo chmod -R 777 /.../

V
Vladimir Balin, 2015-03-05
@krocos

from the directory where test is:
sudo setfacl -Rm u:www-data:rwx test
sudo setfacl -Rm u:your_user_name:rwx test
sudo setfacl -Rm d:u:www-data:rwx test
sudo setfacl -Rm d:your_user_name :rwx test
sudo setfacl -Rm m::rwx test
sudo setfacl -Rm d:m::rwx test
and lastly:
sudo chown -R root:root test
and then you can never touch the rights at all )))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question