# Web admin page won't show up, index.php error

**URL:** <https://discourse.pi-hole.net/t/web-admin-page-wont-show-up-index-php-error/40011>\
**Category:** Community Help\
**Created:** [October 31, 2020, 3:03pm UTC](https://discourse.pi-hole.net/t/web-admin-page-wont-show-up-index-php-error/40011 "2020-10-31T15:03:36Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![ShowyJarl](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/s/8797f3/32.png) [@ShowyJarl](https://discourse.pi-hole.net/u/ShowyJarl)\
**Post date:** [November 1, 2020, 5:03am UTC](https://discourse.pi-hole.net/t/web-admin-page-wont-show-up-index-php-error/40011/45 "2020-11-01T05:03:45Z")

</div>

there is only one line in there:  
alias.url += ("/javascript" =\> "/usr/share/javascript")

---

<div class="post-metadata">

**Author:** ![DanSchaper](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/danschaper/32/91_2.png) [@DanSchaper](https://discourse.pi-hole.net/u/DanSchaper)\
**Post date:** [November 1, 2020, 5:04am UTC](https://discourse.pi-hole.net/t/web-admin-page-wont-show-up-index-php-error/40011/46 "2020-11-01T05:04:46Z")

</div>

This is a default:

```plaintext
dan@raspberrypi:/etc/lighttpd/conf-enabled $ ls -la
total 8
drwxr-xr-x 2 root root 4096 Oct 19 00:31 .
drwxr-xr-x 4 root root 4096 Oct 19 00:31 ..
lrwxrwxrwx 1 root root 33 Oct 19 00:31 10-fastcgi.conf -> ../conf-available/10-fastcgi.conf
lrwxrwxrwx 1 root root 37 Oct 19 00:31 15-fastcgi-php.conf -> ../conf-available/15-fastcgi-php.conf
lrwxrwxrwx 1 root root 38 Oct 19 00:30 99-unconfigured.conf -> ../conf-available/99-unconfigured.conf

```

```plaintext
dan@raspberrypi:/etc/lighttpd/conf-enabled $ cat *
--10-fastcgi.conf
# /usr/share/doc/lighttpd/fastcgi.txt.gz
# http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ConfigurationOptions#mod_fastcgi-fastcgi

server.modules += ( "mod_fastcgi" )

--15-fastcgi-php.conf
# -*- depends: fastcgi -*-
# /usr/share/doc/lighttpd/fastcgi.txt.gz
# http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ConfigurationOptions#mod_fastcgi-fastcgi

## Start an FastCGI server for php (needs the php5-cgi package)
fastcgi.server += ( ".php" =>
        ((
                "bin-path" => "/usr/bin/php-cgi",
                "socket" => "/var/run/lighttpd/php.socket",
                "max-procs" => 1,
                "bin-environment" => (
                        "PHP_FCGI_CHILDREN" => "4",
                        "PHP_FCGI_MAX_REQUESTS" => "10000"
                ),
                "bin-copy-environment" => (
                        "PATH", "SHELL", "USER"
                ),
                "broken-scriptfilename" => "enable"
        ))
)

--99-unconfigured.conf
# override prior index-file.name directive
# to fall back to default index.lighttpd.html
index-file.names := ( "index.php", "index.html", "index.lighttpd.html" )

```

---

<div class="post-metadata">

**Author:** ![ShowyJarl](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/s/8797f3/32.png) [@ShowyJarl](https://discourse.pi-hole.net/u/ShowyJarl)\
**Post date:** [November 1, 2020, 5:08am UTC](https://discourse.pi-hole.net/t/web-admin-page-wont-show-up-index-php-error/40011/47 "2020-11-01T05:08:51Z")

</div>

> [@DanSchaper](#):
>
> `99-unconfigured.conf`

should I ln that file here?

I checked the other two files. They are the same as your output.

---

<div class="post-metadata">

**Author:** ![DanSchaper](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/danschaper/32/91_2.png) [@DanSchaper](https://discourse.pi-hole.net/u/DanSchaper)\
**Post date:** [November 1, 2020, 5:10am UTC](https://discourse.pi-hole.net/t/web-admin-page-wont-show-up-index-php-error/40011/48 "2020-11-01T05:10:28Z")

</div>

First find out what put that extra config in, I don't have a javascript redirect in `/etc/lighttpd/conf-available` so it's not in the stock Raspbian setup.

---

<div class="post-metadata">

**Author:** ![DanSchaper](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/danschaper/32/91_2.png) [@DanSchaper](https://discourse.pi-hole.net/u/DanSchaper)\
**Post date:** [November 1, 2020, 5:13am UTC](https://discourse.pi-hole.net/t/web-admin-page-wont-show-up-index-php-error/40011/49 "2020-11-01T05:13:02Z")

</div>

> [@ShowyJarl](#):
>
> alias.url += ("/javascript" =\> "/usr/share/javascript")

That's malformed anyways.

Edit:  
Run

```plaintext
lighttpd -p -f /etc/lighttpd/lighttpd.conf

```

and post up the output.

---

<div class="post-metadata">

**Author:** ![ShowyJarl](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/s/8797f3/32.png) [@ShowyJarl](https://discourse.pi-hole.net/u/ShowyJarl)\
**Post date:** [November 1, 2020, 5:16am UTC](https://discourse.pi-hole.net/t/web-admin-page-wont-show-up-index-php-error/40011/50 "2020-11-01T05:16:42Z")

</div>

> [@DanSchaper](#):
>
> Run
> 
> ```auto
> lighttpd -p -f /etc/lighttpd/lighttpd.conf
> 
> ```
> 
> and post up the output.

Here it is:

```plaintext
config {
    var.PID = 10206
    var.CWD = "/home/pi"
    mimetype.assign = (
        ".ico" => "image/x-icon",
        ".jpeg" => "image/jpeg",
        ".jpg" => "image/jpeg",
        ".png" => "image/png",
        ".svg" => "image/svg+xml",
        # 5
        ".css" => "text/css; charset=utf-8",
        ".html" => "text/html; charset=utf-8",
        ".js" => "text/javascript; charset=utf-8",
        ".json" => "application/json; charset=utf-8",
        ".map" => "application/json; charset=utf-8",
        # 10
        ".txt" => "text/plain; charset=utf-8",
        ".eot" => "application/vnd.ms-fontobject",
        ".otf" => "font/otf",
        ".ttc" => "font/collection",
        ".ttf" => "font/ttf",
        # 15
        ".woff" => "font/woff",
        ".woff2" => "font/woff2",
        # 17
    )
    server.document-root = "/var/www/html"
    server.error-handler-404 = "/pihole/index.php"
    server.upload-dirs = ("/var/cache/lighttpd/uploads")
    server.errorlog = "/var/log/lighttpd/error.log"
    server.pid-file = "/run/lighttpd.pid"
    server.username = "www-data"
    server.groupname = "www-data"
    server.port = 80
    accesslog.filename = "/var/log/lighttpd/access.log"
    accesslog.format = "%{%s}t|%V|%r|%s|%b"
    index-file.names = ("index.php", "index.html", "index.lighttpd.html")
    url.access-deny = ("~", ".inc", ".md", ".yml", ".ini")
    static-file.exclude-extensions = (".php", ".pl", ".fcgi")
    compress.cache-dir = "/var/cache/lighttpd/compress/"
    compress.filetype = (
        "application/json",
        "application/vnd.ms-fontobject",
        "application/xml",
        "font/eot",
        "font/opentype",
        "font/otf",
        "font/ttf",
        "image/bmp",
        "image/svg+xml",
        "image/vnd.microsoft.icon",
        "image/x-icon",
        "text/css",
        "text/html",
        "text/javascript",
        "text/plain",
        "text/xml",
        # 16
    )
    server.modules = (
        "mod_access",
        "mod_accesslog",
        "mod_auth",
        "mod_expire",
        "mod_compress",
        "mod_redirect",
        "mod_setenv",
        "mod_rewrite",
        "mod_fastcgi",
        # 9
    )
    alias.url = (
        "/javascript" => "/usr/share/javascript",
    )
    fastcgi.server = (
        ".php" => (
            (
                "bin-path" => "/usr/bin/php-cgi",
                "socket" => "/var/run/lighttpd/php.socket",
                "max-procs" => 1,
                "bin-environment" => (
                    "PHP_FCGI_CHILDREN" => "4",
                    "PHP_FCGI_MAX_REQUESTS" => "10000",
                    # 2
                ),
                "bin-copy-environment" => ("PATH", "SHELL", "USER"),
                # 5
                "broken-scriptfilename" => "enable",
                # 6
            ),
        ),
    )
    expire.url = (
        "" => "access plus 0 seconds",
    )

    $SERVER["socket"] == "[::]:80" {
        # block 1

    } # end of $SERVER["socket"] == "[::]:80"

    $HTTP["url"] =~ "^/admin/" {
        # block 2
        setenv.add-response-header = (
            "X-Pi-hole" => "The Pi-hole Web interface is working!",
            "X-Frame-Options" => "DENY",
            # 2
        )

        $HTTP["url"] =~ "\.(eot|otf|tt[cf]|woff2?)$" {
            # block 3
            setenv.add-response-header = (
                "Access-Control-Allow-Origin" => "*",
            )

        } # end of $HTTP["url"] =~ "\.(eot|otf|tt[cf]|woff2?)$"
    } # end of $HTTP["url"] =~ "^/admin/"

    $HTTP["url"] =~ "^/admin/\.(.*)" {
        # block 4
        url.access-deny = ("")

    } # end of $HTTP["url"] =~ "^/admin/\.(.*)"
}

```

---

<div class="post-metadata">

**Author:** ![DanSchaper](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/danschaper/32/91_2.png) [@DanSchaper](https://discourse.pi-hole.net/u/DanSchaper)\
**Post date:** [November 1, 2020, 5:19am UTC](https://discourse.pi-hole.net/t/web-admin-page-wont-show-up-index-php-error/40011/51 "2020-11-01T05:19:59Z")

</div>

Okay, and does

```auto
curl http://127.0.0.1/admin/

```

run all the way to `</html>`?

---

<div class="post-metadata">

**Author:** ![ShowyJarl](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/s/8797f3/32.png) [@ShowyJarl](https://discourse.pi-hole.net/u/ShowyJarl)\
**Post date:** [November 1, 2020, 5:21am UTC](https://discourse.pi-hole.net/t/web-admin-page-wont-show-up-index-php-error/40011/52 "2020-11-01T05:21:28Z")

</div>

> [@DanSchaper](#):
>
> Okay, and does
> 
> ```auto
> curl http://127.0.0.1/admin/
> 
> ```
> 
> run all the way to `</html>` ?

Nothing comes out from running this.....

---

<div class="post-metadata">

**Author:** ![DanSchaper](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/danschaper/32/91_2.png) [@DanSchaper](https://discourse.pi-hole.net/u/DanSchaper)\
**Post date:** [November 1, 2020, 5:22am UTC](https://discourse.pi-hole.net/t/web-admin-page-wont-show-up-index-php-error/40011/53 "2020-11-01T05:22:04Z")

</div>

Okay,

```auto
curl -I http://127.0.0.1/admin/

```

---

<div class="post-metadata">

**Author:** ![ShowyJarl](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/s/8797f3/32.png) [@ShowyJarl](https://discourse.pi-hole.net/u/ShowyJarl)\
**Post date:** [November 1, 2020, 5:22am UTC](https://discourse.pi-hole.net/t/web-admin-page-wont-show-up-index-php-error/40011/54 "2020-11-01T05:22:50Z")

</div>

here it is:  
HTTP/1.1 500 Internal Server Error  
Content-type: text/html; charset=UTF-8  
X-Pi-hole: The Pi-hole Web interface is working!  
X-Frame-Options: DENY  
Date: Sun, 01 Nov 2020 05:22:17 GMT  
Server: lighttpd/1.4.53

---

<div class="post-metadata">

**Author:** ![DanSchaper](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/danschaper/32/91_2.png) [@DanSchaper](https://discourse.pi-hole.net/u/DanSchaper)\
**Post date:** [November 1, 2020, 5:23am UTC](https://discourse.pi-hole.net/t/web-admin-page-wont-show-up-index-php-error/40011/55 "2020-11-01T05:23:26Z")

</div>

Remove that `90-javascript` file.

---

<div class="post-metadata">

**Author:** ![ShowyJarl](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/s/8797f3/32.png) [@ShowyJarl](https://discourse.pi-hole.net/u/ShowyJarl)\
**Post date:** [November 1, 2020, 5:25am UTC](https://discourse.pi-hole.net/t/web-admin-page-wont-show-up-index-php-error/40011/56 "2020-11-01T05:25:22Z")

</div>

rm 90-javascript-alias.conf  
from conf-enabled?

---

<div class="post-metadata">

**Author:** ![DanSchaper](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/danschaper/32/91_2.png) [@DanSchaper](https://discourse.pi-hole.net/u/DanSchaper)\
**Post date:** [November 1, 2020, 5:25am UTC](https://discourse.pi-hole.net/t/web-admin-page-wont-show-up-index-php-error/40011/57 "2020-11-01T05:25:37Z")

</div>

> [@ShowyJarl](#):
>
> 90-javascript-alias

`sudo lighty-disable-mod 90-javascript-alias`

---

<div class="post-metadata">

**Author:** ![ShowyJarl](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/s/8797f3/32.png) [@ShowyJarl](https://discourse.pi-hole.net/u/ShowyJarl)\
**Post date:** [November 1, 2020, 5:29am UTC](https://discourse.pi-hole.net/t/web-admin-page-wont-show-up-index-php-error/40011/58 "2020-11-01T05:29:01Z")

</div>

> [@DanSchaper](#):
>
> sudo lighty-disable-mod 90-javascript-alias

Ignoring unknown module: 90-javascript-alias  
Run "service lighttpd force-reload" to enable changes

pi@raspberrypi:~ $ service lighttpd force-reload  
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===  
Authentication is required to reload 'lighttpd.service'.  
Multiple identities can be used for authentication:

1. ,,, (pi)
2. root  
Choose identity to authenticate as (1-2): 1  
Password:  
==== AUTHENTICATION COMPLETE ===

---

<div class="post-metadata">

**Author:** ![DanSchaper](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/danschaper/32/91_2.png) [@DanSchaper](https://discourse.pi-hole.net/u/DanSchaper)\
**Post date:** [November 1, 2020, 5:30am UTC](https://discourse.pi-hole.net/t/web-admin-page-wont-show-up-index-php-error/40011/59 "2020-11-01T05:30:00Z")

</div>

> [@ShowyJarl](#):
>
> Ignoring unknown module: 90-javascript-alias

That file then is unknown and something put it there without `lighttpd`'s knowledge.

`sudo rm` that file and then `sudo systemctl restart lighttpd` after the file is gone.

---

<div class="post-metadata">

**Author:** ![ShowyJarl](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/s/8797f3/32.png) [@ShowyJarl](https://discourse.pi-hole.net/u/ShowyJarl)\
**Post date:** [November 1, 2020, 5:31am UTC](https://discourse.pi-hole.net/t/web-admin-page-wont-show-up-index-php-error/40011/60 "2020-11-01T05:31:57Z")

</div>

> [@DanSchaper](#):
>
> `sudo rm` that file and then `sudo systemctl restart lighttpd` after the file is gone.

pi@raspberrypi:/etc/lighttpd/conf-enabled $ sudo rm 90-javascript-alias.conf  
pi@raspberrypi:/etc/lighttpd/conf-enabled $ sudo systemctl restart lighttpd

---

<div class="post-metadata">

**Author:** ![DanSchaper](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/danschaper/32/91_2.png) [@DanSchaper](https://discourse.pi-hole.net/u/DanSchaper)\
**Post date:** [November 1, 2020, 5:32am UTC](https://discourse.pi-hole.net/t/web-admin-page-wont-show-up-index-php-error/40011/61 "2020-11-01T05:32:31Z")

</div>

Is it working now?

---

<div class="post-metadata">

**Author:** ![ShowyJarl](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/s/8797f3/32.png) [@ShowyJarl](https://discourse.pi-hole.net/u/ShowyJarl)\
**Post date:** [November 1, 2020, 5:32am UTC](https://discourse.pi-hole.net/t/web-admin-page-wont-show-up-index-php-error/40011/62 "2020-11-01T05:32:56Z")

</div>

pi@raspberrypi:~ $ curl -i [http://127.0.0.1/admin/](http://127.0.0.1/admin/)  
HTTP/1.1 500 Internal Server Error  
Content-type: text/html; charset=UTF-8  
X-Pi-hole: The Pi-hole Web interface is working!  
X-Frame-Options: DENY  
Content-Length: 0  
Date: Sun, 01 Nov 2020 05:32:39 GMT  
Server: lighttpd/1.4.53

---

<div class="post-metadata">

**Author:** ![DanSchaper](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/danschaper/32/91_2.png) [@DanSchaper](https://discourse.pi-hole.net/u/DanSchaper)\
**Post date:** [November 1, 2020, 5:37am UTC](https://discourse.pi-hole.net/t/web-admin-page-wont-show-up-index-php-error/40011/63 "2020-11-01T05:37:19Z")

</div>

That's all I can think of, this is just a stock Raspbian?

`cat /etc/os-release`

and check `apt update` to see if there are any updates to come in.

I don't know what/why that extra config file was installed.

Edit: How did you install Plex?

---

<div class="post-metadata">

**Author:** ![ShowyJarl](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/s/8797f3/32.png) [@ShowyJarl](https://discourse.pi-hole.net/u/ShowyJarl)\
**Post date:** [November 1, 2020, 5:38am UTC](https://discourse.pi-hole.net/t/web-admin-page-wont-show-up-index-php-error/40011/64 "2020-11-01T05:38:19Z")

</div>

> [@DanSchaper](#):
>
> cat /etc/os-release

PRETTY\_NAME="Raspbian GNU/Linux 10 (buster)"  
NAME="Raspbian GNU/Linux"  
VERSION\_ID="10"  
VERSION="10 (buster)"  
VERSION\_CODENAME=buster  
ID=raspbian  
ID\_LIKE=debian  
HOME\_URL="[http://www.raspbian.org/](http://www.raspbian.org/)"  
SUPPORT\_URL="[http://www.raspbian.org/RaspbianForums](http://www.raspbian.org/RaspbianForums)"  
BUG\_REPORT\_URL="[http://www.raspbian.org/RaspbianBugs](http://www.raspbian.org/RaspbianBugs)"

[Previous page](https://discourse.pi-hole.net/t/web-admin-page-wont-show-up-index-php-error/40011.md?page=2)

[Next page](https://discourse.pi-hole.net/t/web-admin-page-wont-show-up-index-php-error/40011.md?page=4)
