Closed prtst33 closed 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/
?
/var/www/html/ is the root directory
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.
It works. Thanks. Is it hard to modify to make it work in a subdirectory?
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.
Perfect. Thanks.
Sounds like you solved it then 😄
Don't be afraid to ask if you have any other questions or problems.
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.