Title: WordPress on Apache
Last modified: February 23, 2022

---

# WordPress on Apache

 *  [angelo327](https://wordpress.org/support/users/angelo327/)
 * (@angelo327)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/wordpress-on-apache/)
 * 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)

 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/wordpress-on-apache/#post-15397414)
 * 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](https://httpd.apache.org/docs/2.4/mod/mod_dir.html)
    -  This reply was modified 4 years, 3 months ago by [threadi](https://wordpress.org/support/users/threadi/).

Viewing 1 replies (of 1 total)

The topic ‘WordPress on Apache’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [threadi](https://wordpress.org/support/users/threadi/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/wordpress-on-apache/#post-15397414)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
