Browser Downloads wp-config file rather than directing to it (2 posts)

  1. trtksu
    Posted 3 years ago #

    I just loaded WordPress to a directory on my server, and when I visit DOMAIN.com/wp-config.php or any other file for that matter, the browser automatically downloads the file rather than loading it.

    I'm sure this is a simple fix, but I'm not advanced enough to know what it is. Thanks so much for your help.

  2. Mark Ratledge
    Forum Moderator
    Posted 3 years ago #

    That's a problem with the web host, or your own server, if you are the admin.

    Enable php in httpd.conf or try

    AddType application/x-httpd-php5 .php

    in .htaccess.

Topic Closed

This topic has been closed to new replies.

About this Topic