sixem / ivfi-php

IVFi is a directory indexer that aims to make it easy to browse and explore web-accessible directories.
https://git.five.sh/ivfi/
Other
103 stars 18 forks source link

Invalid path. path does not exist #19

Closed prtst33 closed 3 years ago

prtst33 commented 3 years ago

How can I solve this? Thanks

Error:

Exception: invalid path. path does not exist. in /var/www/html/xxx/indexer.php:276 Stack trace: #0 /var/www/html/xxx/indexer.php(726): Indexer->__construct('/xxx/indexer....', Array) #1 {main} (4)

Fatal error - Exiting.

sixem commented 3 years ago

Hmm, is the .php file placed in the www root or in a subdirectory below that? It looks like it is in a subdirectory to me, but I could be wrong. Is /var/www/html/xxx/ the root directory in this case, or is it /var/www/html/?

prtst33 commented 3 years ago

/var/www/html/ is the root directory

sixem commented 3 years ago

Ok, but the .php file is placed here /var/www/html/xxx/indexer.php? If so, that's the problem, it has to be in the root directory.

prtst33 commented 3 years ago

It works. Thanks. Is it hard to modify to make it work in a subdirectory?

sixem commented 3 years ago

Did you follow the setup here for your web server by setting the default indexes? By doing that, you should be able to browse all the directories within your www root, like /var/www/html/xxx/ and so on while having the file in your root directory.

If you really need to place the .php file somewhere else, then you can see this link (under advanced -> server), it'll show you how to pass the root path to the script directly so that the indexer can work from somewhere else, but using that method really shouldn't be necessary in most cases.

prtst33 commented 3 years ago

Perfect. Thanks.

sixem commented 3 years ago

Sounds like you solved it then 😄

Don't be afraid to ask if you have any other questions or problems.