There are situations where we must locate the Server Webroot to point to the directory where we have uploaded a given file containing PHP code in order to evaluate its content through the LFI
Since we do not know if the webroot path is /var/www/html or /var/www/html/domain.com or another, first we will have to discover the directory in question
If we were not able to identify the server webroot through the previous fuzzing, we should try to read the web server configuration file since there is a directive within it called root ( Nginx ) or DocumentRoot ( Apache ) which points to the web application root
To do so, we may use the LFI-Jhaddix.txt wordlist, as it contains many of the server logs we are looking for
If we want a more precise scan, we can use the following wordlists