Forums

[NSFW] Login launches a php file request (3 posts)

  1. zenpop
    Member
    Posted 1 year ago #

    We are having the weirdest thing happen when trying to login to the dashboard. This only happens in Firefox. When we go to the url

    http://www.nightcharm.com/wp-login.php

    which we've been using for years to log in, suddenly Firefox launches a prompt asking if we want to download and save a 'php' file? WTF?

    What is the work around for this?

    Thanks

    ZP

  2. MichaelH
    Volunteer
    Posted 1 year ago #

    Make sure your host hasn't changed anything.

    Make sure you host has httpd.conf correct

    May need to add:
    AddType application/x-httpd-php .php

    to your httpd.conf file.

    Also make sure you have enough memory allocated to PHP:
    Methods for increasing the amount of memory a PHP script may consume.

    1. Use the memory bump plugin from http://wordpress.org/extend/plugins/memory-bump/

    2. If you have access to your PHP.ini file, change the line in PHP.ini
    If your line shows 32M try 64M:
    memory_limit = 64M ; Maximum amount of memory a script may consume (64MB)

    3. If you don't have access to PHP.ini try adding this to an .htaccess file:
    php_value memory_limit 64M

    4. Try adding this line to your wp-config.php file:
    define('WP_MEMORY_LIMIT', '64M');

    5. Talk to your host.

  3. zenpop
    Member
    Posted 1 year ago #

    Thank you MichaelH. Great feedback! Appreciate it.

Topic Closed

This topic has been closed to new replies.

About this Topic