R
R
Ruslan2022-02-18 12:48:56
Apache HTTP Server
Ruslan, 2022-02-18 12:48:56

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

1 answer(s)
D
Drno, 2022-02-18
@Drno

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 question

Ask a Question

731 491 924 answers to any question