Support » Localhost Installs » Blank page when I visit localhost

  • Hi,

    I installed multi-site via sub-directories on my Ubuntu localhost and I think there’s an issue with how I have Apache configured for my primary site.

    If I type localhost I get a blank white page (not the index.php), but I am able to view the posts for the primary site from Admin as well as view sites in other directories (i.e. localhost/project_name returns a main page for that project or from the Admin panel)

    The relevant part of my wp-config shows:

    define(‘DOMAIN_CURRENT_SITE’,’localhost’);
    define(‘PATH_CURRENT_SITE’,’/’);

    Apache rewrite module is enabled and I followed the .htaccess file instructions for multi-site.

    My index.html has no content.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Anything in Apache error logs?

    Anything when turn WP_DEBUG on?

    The site address under Sites->Edit Sites is :

    Site Address (URL) http://localhost/

    Shouldn’t it be a web-page like localhost/index.html or something?

    I have WP_DEBUG and WP_DEBUG_LOG set to true but I’m not seeing any log in the wp-content folder.

    For the error log after I type localhost in the browser:
    [Sat Nov 11 13:57:00.448789 2017] [mpm_prefork:notice] [pid 20054] AH00169: caught SIGTERM, shutting down
    [Sat Nov 11 13:57:01.577721 2017] [mpm_prefork:notice] [pid 20131] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.22 configured — resuming normal operations
    [Sat Nov 11 13:57:01.577858 2017] [core:notice] [pid 20131] AH00094: Command line: ‘/usr/sbin/apache2’

    From the access log:

    127.0.0.1 – – [11/Nov/2017:17:40:30 -0800] “GET / HTTP/1.1” 304 178 “-” “Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:56.0) Gecko/20100101 Firefox/56.0”

    Entering localhost/wordpress shows the default image for the site and navigation to the Admin panel at the top:

    127.0.0.1 – – [11/Nov/2017:17:40:50 -0800] “GET /wordpress HTTP/1.1” 404 59584 “-” “Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:56.0) Gecko/20100101 Firefox/56.0”
    (END)

    Delete the empty index.html. By default, it has higher priority than index.php, effectively blocking WordPress from view when you type localhost.

    Your webserver logs file is here: “/var/log/apache2/” in ubuntu

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.