Answer the question
In order to leave comments, you need to log in
How to go to another directory outside /var/www/html on the VPS server?
The site is in the /var/www/html directory. I need to upload files to the site, which are located in the /home/telegram_bot directory. /var and /home are on the same level.
I do this src="../../../home/telegram_bot/<?php echo $item['filePath']; ?>" , does not open. An absolute path like /home/telegram_bot/ doesn't work either. What am I doing wrong?
VPS Server, Debian 10 OS
Answer the question
In order to leave comments, you need to log in
nothing is clear ...
go to the directory - cd command
to upload files to the site, for these sites the web server must have permission ... perhaps you need to do the right chmod on the /home/telegram folder
What is this command, where did it come from, where is it performed?
I do this src="../../../home/telegram_bot/<?php echo $item['filePath']; ?>"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question