Title: 404 admin-ajax.php
Last modified: September 1, 2016

---

# 404 admin-ajax.php

 *  Resolved [6ruff](https://wordpress.org/support/users/6ruff/)
 * (@6ruff)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/404-admin-ajaxphp/)
 * The URL /wp-admin/admin-ajax.php is returning a 404 in the admin screens, for
   example in Appearance->Themes->Add New->Featured.
 * I have checked file permissions and that the file is present and readable, however
   I get the following response from ajax calls in the admin screen:
 *     ```
       HTTP/1.1 404 Not Found
       X-Powered-By: PHP/7.0.7
       Access-Control-Allow-Origin: http://dhlvm
       Access-Control-Allow-Credentials: true
       X-Robots-Tag: noindex
       X-Content-Type-Options: nosniff
       Expires: Wed, 11 Jan 1984 05:00:00 GMT
       Cache-Control: no-cache, must-revalidate, max-age=0
       Pragma: no-cache
       X-Frame-Options: SAMEORIGIN
       Content-Type: application/json; charset=UTF-8
       Transfer-Encoding: chunked
       Date: Fri, 15 Jul 2016 19:46:05 GMT
       Server: lighttpd/1.4.39
       ```
   
 * The response body looks healthy, which is strange considering the 404 status:
 * `{"wp-auth-check":true,"server_time":1468611965}`
 * I have no plugins enabled, just a plain WP installation on a local VM running
   under lighttpd.
    I did have to set define(‘CONCATENATE_SCRIPTS’, false); in wp-
   config to fix another issue, so I wonder if this is related (CONCATENATE_SCRIPTS
   =true makes the admin screens practically unusable for some reason).
 * Any ideas as to why I’m getting the 404 errors ?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [6ruff](https://wordpress.org/support/users/6ruff/)
 * (@6ruff)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/404-admin-ajaxphp/#post-7576104)
 * Same error appears with Chrome and Safari browser.
 *  Thread Starter [6ruff](https://wordpress.org/support/users/6ruff/)
 * (@6ruff)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/404-admin-ajaxphp/#post-7576120)
 * After looking into this a bit more I can see that the 404 responses are being
   returned for multiple ajax actions posted to admin-ajax.php, for example actions“
   theme-install” and “heartbeat”.
 * The actions all seem to return valid response bodies, but a 404 status.
    For 
   example the response body for “theme-install” starts with:
 * > {“success”:true,”data”:{“info”:{“page”:1,”pages”:1,”results”:15},”themes”:[{“
   > name”:”…..
 *  Thread Starter [6ruff](https://wordpress.org/support/users/6ruff/)
 * (@6ruff)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/404-admin-ajaxphp/#post-7576397)
 * Fixed!
    It was a problem in the lighttpd config – the docroot in the fastcgi 
   config was incorrect. Strange how the majority of WordPress worked and that only
   ajax requests were affected by this issue.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘404 admin-ajax.php’ is closed to new replies.

## Tags

 * [admin-ajax.php](https://wordpress.org/support/topic-tag/admin-ajax-php/)
 * [lighttpd](https://wordpress.org/support/topic-tag/lighttpd/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 1 participant
 * Last reply from: [6ruff](https://wordpress.org/support/users/6ruff/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/404-admin-ajaxphp/#post-7576397)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
