This turned out to be a permissions issue. It seems that in order for ‘./your_filename.php’ to work, the user PHP is running as needs to have ‘List folder contents’ permissions on the folder – even though the file is directly specified.
In the end, the full solution involved turning Fast CGI impersonation off, getting PHP to run as the Application Pool identity and giving that more access to the wordpress folder.
There was some information on this in a question on SO – I can’t seem to find it now but will link to it in my answer if I come across it again.
Related Posts:
- Migrating WordPress from Windows Server 2008 R2 (IIS v7.5) to CentOS
- Internal Server Error after restoring MySQL databases
- Verify return code: 20 when testing OpenSSL
- Heroku giving 500 error with little information + Internal Server Error
- Minecraft Server closes immediately after running?
- WAMP vs XAMPP pros/cons – for running a local testing server [closed]
- WordPress local development environment [closed]
- Can you host WordPress using Amazon Web Services such as EC2, RDS, EBS etc?
- Is it safe to use $_SERVER[‘REQUEST_URI’]?
- Character encoding issue after changing servers
- WordPress .htaccess subdirectory problem
- Implement ssl to a WP docker container [closed]
- Apache/Linux configuration changes to make automatic upgrade more straightforward
- Testing local server with MAMP/wordpress on mobile device? [closed]
- Arabic Characters in URL returns 404 Error
- moving server can not login
- All links in my site start with localhost?
- Connect to server with SFTP instead of FTP/FTPS within WordPress Backup
- WordPress hangs when I publish or update a post [closed]
- Force Cron to run only on one server
- Gutenberg: unable to save attributes with ServerRender
- WordPress incorrectly redirects to local IP address?
- Handling the response sent from a ruby on rails application in wordpress
- How might I setup a development server (local) and a test/production server (remote)
- Why does WordPress get posts from MySQL from a virtual hostname but not the direct hostname?
- cURL error 60: SSL certificate problem: unable to get local issuer certificate
- Can you have multiple wordpress sites under the same domain?
- Can’t delete unwanted favicon
- How to Better Control WordPress Cron Jobs?
- Changing the server path
- Editing post and page responding 503 Service Unavailable
- Two live WP websites – how to sync?
- what are the chmod rights recommended to give for every folders of wordpress projects
- WordPress installation site folder move to the final site destination
- WordPress hosting optimized servers – Is this just a sales gimmick? [closed]
- External cron job firing too many times
- Does WP read itself?
- SSH Upgrade Problem
- Archived Server for Reference – Unable to Navigate Passed Homepage
- dev site running on subdomain is redirecting to the main domain
- copy wordpress site files on new server
- How to Fix “Are You Sure You Want to Do This”, while uploading my theme?
- Lamp stack not supporting phpmyadmin? [closed]
- HTTP Error on media upload, only httpd restart helps
- Configure Php server with ISAP
- Moving wordpress to an unknown outlet
- White screen on front page only
- Log Author Actions
- WordPress hosting moved from windows server to linux server
- WordPress backup(on another server)leading to old server addy and WP
- cURL error for cron
- Permalinks on Windows IIS not working and web.config breaks site – does wordpress not support windows server now, if so how?
- HTTP ERROR 500 after installing child-theme [WordPress] [closed]
- WordPress sub-directory on other server running on nginx?
- strange behaviour with “rin” in brand new installation of 4.6.1 [closed]
- Newbie: Multiple WP sites on Windwos 2012 IIS
- Server specification [closed]
- How to change settings so I can upload images in WordPress posts?
- WordPress FTP via admin panel slow
- Scripts external to WordPress cause 404 errors
- Internal Server Error only on frontend and certain admin pages
- WordPress database setup Windows 2016 IIS
- WordPress PHP version/info not being picked from cPanel PHP Version values
- How to queue API requests with PHP in WordPress?
- WordPress CSS completely broken on IIS
- Changing domain name causes some strange problem in my browser
- Sequence of finding a website when they are running WordPress
- i have a problem with my domain getting rederected to another one
- How to optimize wp_delete_post() function, or why it is so slow
- Adding a “code checker” for my e-learning wordpress site
- localhost/wordpress(or other application), how does it work?
- WordPress vps memory allocation
- Getting past the Synology default web site when creating a web server
- Apache using full RAM problem
- Best WordPress Cloud Hosting Provider that allows installation of ffmpeg 4.0
- Server (VPS) is going down when editing a bigger wordpress article! (?)
- URL problem in my site
- Setting up WordPress client and server
- Formatting wordpress debug messages
- Multi-server environment is causing problems in WordPress
- Best practices for configuring a server?
- Does WordPress perform better with curl installed?
- Remove index.php from WP 8.0 install migrated to IIS from Apache (still detecting Apache server)?
- WordPress or plugin need tomcat?
- Trouble getting wordpress working after moving servers
- Apache extensions for WordPress’ working without troubles
- WordPress keeps crashing my server
- WordPress not working locally
- Would Amazon AWS Services be a good alternative to my current hosting provider?
- WordPress site causing lots of server IO
- What level of permissions should the plugins folder be set to?
- Download a zip folder of selected files
- Saving Permalinks Results in 403 MAMP (Windows)
- Moving a WordPress website from one server to another
- Test for IP in Array Always Fails on First IP
- Where can I find web hosting reviews? [closed]
- Check WordPress size on disk
- Will denying all ip address except my own create a problem?
- Reduce initial server response time wordpress
- How can I tell what version of IIS is installed?