0
Answered

File permissions

n lavopa 2 weeks ago updated 2 days ago 4

Ciao

I'm a new user, I installed filerun on my linux server on aruba.it, in the root / my-files folder and I created

root / home / admin

root / home / user_a

root / home / user_b.

I connected the db and everything seems to work.

I logged in as superuser and created the 2 users.

In cpanel- admin- premissions- home folder,

only accept / home other paths or under path / home / user_a invalid folder exits! The folder "/ home / admin" does not exist or it is not accessible by PHP. I also tried setting the folder attributes to 777 for testing, but nothing. If I try to create a folder it comes out: Failed to create folder. (mkdir (): Permission denied)

I tried to settle for the / home folder and

as a test I set / home as folder and clicking on check path: the result is the path is valid. I have saved and tried to transfer a small file, I see the transfer bar go to 100% and then an error comes out: A problem has been encountered! move_uploaded_file (): unable to move '7tmp / php2iYvP1' to '/home/file_name.xlsx'.

Can you give me some advice, please?

Answer

Answer
Answered

I am guessing it's a shared hosting service, which means you are not alone on the server, which means you will not be able to access and create anything inside "/" or "/home", but most probably you have a designated folder something like "/home/12324123123/" and that is the root of where you can actually create folders.

You should ask your hosting service tech support about the path where you can create a folder with PHP.

Answer
Answered

I am guessing it's a shared hosting service, which means you are not alone on the server, which means you will not be able to access and create anything inside "/" or "/home", but most probably you have a designated folder something like "/home/12324123123/" and that is the root of where you can actually create folders.

You should ask your hosting service tech support about the path where you can create a folder with PHP.

hi, thanks for the answer, I contacted my provider and he replied:

The absolute path of the Domain is:

/web/htdocs/www.yourdomain.ext/home/

For example, if you insert a file named filename.ext in the root of the domain, the absolute path is:

/web/htdocs/www.yourdomain.ext/home/name_file.ext

Do I need to change anything in the filerun configuration?

A FileRun user account's home folder path in this case needs to start with "/web/htdocs/www.yourdomain.ext/home/" and you need to make sure that that folder has proper permissions in order for PHP to be able to write to it. (What those permissions are you also need to ask your hosting service.)

I found how to do it!
the correct path is:
/web/htdocs/www.mysite.it/home/home