• On a raspberry pi 400 I installed Apache2 and it is working correctly.
    I installed WordPress on the Apache2 in folder
    /var/www/html
    under /var/www/html are
    …/phpmyadmin
    …/wp-admin
    …/wp-content
    …/wp-includes

    My problem is the index.html in /var/www/html folder is the Apache2 Debian Default Page. I can only open the WordPress site by typing
    localhost\wp-admin\index.php at the server. If I access the server from another computer on the LAN I can only open the index.html which is the Apache2 default page.

    When I open http:\\localhost I get the Apache2 default web page.
    So I’m new at this and totally confused. The solution eludes me and I’ve searched and tried many suggestions but everything I do has no effect.
    I’m more than willing to read and learn but can’t find the guidance needed.

Viewing 1 replies (of 1 total)
  • The easiest solution would be if you delete the index.html. It has no functional meaning, not even for the Apache service.

    Alternatively, you can also change the DirectoryIndex specification on Apache. You can do this in the vhost or also in the .htaccess file used by WordPress. Add the following line at any place:

    DirectoryIndex index.php

    Details can be found in the Apache manual: https://httpd.apache.org/docs/2.4/mod/mod_dir.html

    • This reply was modified 2 years, 9 months ago by threadi.
Viewing 1 replies (of 1 total)
  • The topic ‘WordPress on Apache’ is closed to new replies.