Pi-Hole loads, along with web interface, but doesn't work

I've installed Pi-hole on my Raspberry Pi 2, using the shell script provided on the official site, and everything went fine, i can even load the web interface, except for the fact that it doesn't actually work as a DNS server, even if my raspbian has a static IP, that i chose to use while installing Pi-Hole, and i've assigned as the first and only DNS server on my other machines, every time i load the web interface the status has an orange dot saying "Unknown";
It's responsive to Enable/Disable, but as soon as i reload the page it's Unknown again, and my other devices can't actually load pages using it as a DNS server, failing every time, and the web interface says my pi-hole has received 0 queries.

How can i solve?

Can you run pihole -d and get us the debug token so we can take a look at the internal processes on the Pi-hole?

I just tried to run pihole -d and even just pihole and it says that pihole command wasn't found, maybe the installation process stopped after installing the web interface but before installing the actual software?

Try running sudo git status from the /etc/.pihole directory. And see if pihole is in the /usr/local/bin directory.

$ sudo git status
Sul branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean

but there's no pihole in /usr/local/bin

Run cat /etc/pihole/install.log

as far as i can tell, /etc/pihole is an empty folder even though i've run the installation process multiple times, both with curl and by downloading and running the bash script

Which operating system do you use? Raspberry Jessie (lite) or something different?

/etc/pihole should not be an empty folder if the installer went through as it has to store some configuration files among other things there.
Are you sure it succeeded? Maybe it exited due to an error and there was no error message shown to you.

I'm currently on Raspberry Jessie, i've tried once again the installation process and here's the bash output:

sudo bash basic-install.sh
:::
::: You are root.
::: Verifying free disk space...
:::
::: Updating local cache of available packages... done!
:::
::: Checking apt-get for upgraded packages.... done!
:::
::: Your system is up to date! Continuing with Pi-hole installation...
::: Checking for apt-utils... installed!
::: Checking for debconf... installed!
::: Checking for dhcpcd5... installed!
::: Checking for git... installed!
::: Checking for whiptail... installed!
:::
::: Checking for existing repository...
::: Updating repo in /etc/.pihole... done!
:::
::: Checking for existing repository...
::: Updating repo in /var/www/html/admin... done!
:::
::: Stopping dnsmasq service... done.
:::
::: Stopping lighttpd service... done.
::: Using Google DNS servers.
::: Static IP already configured
::: IPv4 address: 192.168.1.193/24
::: IPv6 address:
::: Logging On.
::: Checking for bc... added to install list!
::: Checking for cron... installed!
::: Checking for curl... installed!
::: Checking for dnsmasq... added to install list!
::: Checking for dnsutils... installed!
::: Checking for iproute2... installed!
::: Checking for iputils-ping... installed!
::: Checking for lighttpd... added to install list!
::: Checking for lsof... installed!
::: Checking for netcat... added to install list!
::: Checking for php5-common... installed!
::: Checking for php5-cgi... added to install list!
::: Checking for sudo... installed!
::: Checking for unzip... installed!
::: Checking for wget... installed!

The install is failing at the secondary installation step with the project dependencies. You should get a dialog box stating that it is installing 15 (or so) packages and then proceed. Can you run curl -sSL https://install.pi-hole.net | sudo bash -x and install in verbose mode so we can see the steps where it is failing? This will produce a lot of output, but we are interested in the last bit right before you are returned to the shell prompt.

This is the last part of the installation run in verbose mode

  • LogChooseOptions=("On (Recommended)" "" on Off "" off)
    "${LogToggleCommand[@]}" "${LogChooseOptions[@]}" 2>&1 >/dev/tty
    ++ whiptail --separate-output --radiolist 'Do you want to log queries?\n (Disabling will render graphs on the Admin page useless):' 20 70 6 'On (Recommended)' '' on Off '' off
  • LogChoices='On (Recommended)'
  • case ${LogChoices} in
  • echo '::: Logging On.'
    ::: Logging On.
  • QUERY_LOGGING=true
  • install_dependent_packages 'PIHOLE_DEPS[@]'
  • argArray1=("${!1}")
  • declare -a argArray1
  • declare -a installArray
  • command -v debconf-apt-progress
  • for i in '"${argArray1[@]}"'
  • echo -n '::: Checking for bc...'
    ::: Checking for bc...+ dpkg-query -W '-f=${Status}' bc
  • grep 'ok installed'
  • echo ' added to install list!'
    added to install list!
  • installArray+=("${i}")
  • for i in '"${argArray1[@]}"'
  • echo -n '::: Checking for cron...'
    ::: Checking for cron...+ dpkg-query -W '-f=${Status}' cron
  • grep 'ok installed'
  • echo ' installed!'
    installed!
  • for i in '"${argArray1[@]}"'
  • echo -n '::: Checking for curl...'
    ::: Checking for curl...+ dpkg-query -W '-f=${Status}' curl
  • grep 'ok installed'
  • echo ' installed!'
    installed!
  • for i in '"${argArray1[@]}"'
  • echo -n '::: Checking for dnsmasq...'
    ::: Checking for dnsmasq...+ dpkg-query -W '-f=${Status}' dnsmasq
  • grep 'ok installed'
  • echo ' added to install list!'
    added to install list!
  • installArray+=("${i}")
  • for i in '"${argArray1[@]}"'
  • echo -n '::: Checking for dnsutils...'
    ::: Checking for dnsutils...+ dpkg-query -W '-f=${Status}' dnsutils
  • grep 'ok installed'
  • echo ' installed!'
    installed!
  • for i in '"${argArray1[@]}"'
  • echo -n '::: Checking for iproute2...'
    ::: Checking for iproute2...+ dpkg-query -W '-f=${Status}' iproute2
  • grep 'ok installed'
  • echo ' installed!'
    installed!
  • for i in '"${argArray1[@]}"'
  • echo -n '::: Checking for iputils-ping...'
    ::: Checking for iputils-ping...+ dpkg-query -W '-f=${Status}' iputils-ping
  • grep 'ok installed'
  • echo ' installed!'
    installed!
  • for i in '"${argArray1[@]}"'
  • echo -n '::: Checking for lighttpd...'
    ::: Checking for lighttpd...+ dpkg-query -W '-f=${Status}' lighttpd
  • grep 'ok installed'
  • echo ' added to install list!'
    added to install list!
  • installArray+=("${i}")
  • for i in '"${argArray1[@]}"'
  • echo -n '::: Checking for lsof...'
    ::: Checking for lsof...+ dpkg-query -W '-f=${Status}' lsof
  • grep 'ok installed'
  • echo ' installed!'
    installed!
  • for i in '"${argArray1[@]}"'
  • echo -n '::: Checking for netcat...'
    ::: Checking for netcat...+ dpkg-query -W '-f=${Status}' netcat
  • grep 'ok installed'
  • echo ' added to install list!'
    added to install list!
  • installArray+=("${i}")
  • for i in '"${argArray1[@]}"'
  • echo -n '::: Checking for php5-common...'
    ::: Checking for php5-common...+ dpkg-query -W '-f=${Status}' php5-common
  • grep 'ok installed'
  • echo ' installed!'
    installed!
  • for i in '"${argArray1[@]}"'
  • echo -n '::: Checking for php5-cgi...'
    ::: Checking for php5-cgi...+ dpkg-query -W '-f=${Status}' php5-cgi
  • grep 'ok installed'
  • echo ' added to install list!'
    added to install list!
  • installArray+=("${i}")
  • for i in '"${argArray1[@]}"'
  • echo -n '::: Checking for sudo...'
    ::: Checking for sudo...+ dpkg-query -W '-f=${Status}' sudo
  • grep 'ok installed'
  • echo ' installed!'
    installed!
  • for i in '"${argArray1[@]}"'
  • echo -n '::: Checking for unzip...'
    ::: Checking for unzip...+ dpkg-query -W '-f=${Status}' unzip
  • grep 'ok installed'
  • echo ' installed!'
    installed!
  • for i in '"${argArray1[@]}"'
  • echo -n '::: Checking for wget...'
    ::: Checking for wget...+ dpkg-query -W '-f=${Status}' wget
  • grep 'ok installed'
  • echo ' installed!'
    installed!
  • [[ 5 -gt 0 ]]
  • debconf-apt-progress -- apt-get --yes --no-install-recommends install bc dnsmasq lighttpd netcat php5-cgi

i believe the error is because of php5-cgi, because it says;

I seguenti pacchetti hanno dipendenze non soddisfatte:
php5-cgi : Dipende: php5-common (= 5.4.45-0+deb7u6) ma la versione 5.6.29+dfsg-0+deb8u1 sta per essere installata
E: Impossibile correggere i problemi, ci sono pacchetti danneggiati bloccati.

(From Italian: Following packages have not-fulfilled dependencies:
php5-cgi depends from: php5-common (= 5.4.45-0+deb7u6) but the version 5.6.29+dfsg-0+deb8u1 is going to be installed.
E: Impossible to fix the problems, there are locked damaged packages)