Remove index.php from url in permalinks over IIS server (web.config)

I have a WP installation in its own folder (my-domain.com/site) and I'm trying that site works over my-domain.com. I'm not moving the installation files, actually I'm just giving to WP its own directory. The WP installation is running over an IIS server. So I have a web.config file. I've already done the steps that Wordpress Codex says: Change the site address to my-domain.com. Copy (not move) the index.php and MOVE the web.config, both to root directory. In index.php (root directory) …
Category: Web

Wordpress database setup Windows 2016 IIS

We've been assigned by new company owner to get Wordpress running on a Windows 2016 server using IIS but we have NO experience using any of the elements, so we're dependent on instructions and help. We began with a clean install of Windows 2016, then installed Wordpress prerequisites: PHP 8.0, VS 2019, Python 3.10, MySQL 8.0. Microsoft guidance which is 6 years out of date says to use Web Platform Installer to install Wordpress. It failed after trying to install …
Category: Web

Unable to update plug-ins - Undefined index a:1:{s:3:"ssl";b:1;} in class-requests.php on line 213

After our hosting provider moved our site to a new Windows 2016 server I have been struggling with an intermittent error: PHP Notice: Undefined index: a:1:{s:3:"ssl";b:1;} in E:\WebContent\site-name\wp-includes\class-requests.php on line 213 We see this occasionally on the login screen. A refresh of the browser will usually fix it. The rest of the site seems to be running fine. This happens EVERY TIME when I try to update plug-ins or WordPress. Based on reading many posts, it seems to be an …
Category: Web

How to update Wordpress installed on IIS?

I have WordPress installs in my IIS localhost server on Win7 desktop done manually and with WebPI install.Both installs are under IIS default website. Either asks for FTP credentials when I try to auto update to the latest WP version. I have FTP server enabled on IIS (users IUSR and Richard). I have checked that read write permissions are enabled on the wordpress root & wp-content folders. I try putting in the credential values but keep getting no response or …
Category: Web

IIS Authorization Rules breaks WP REST-API and results in fail in Site Health

apperently it seems the wordpress rest-api cannot work with restricted authorizations. when i change the default Allow All Users / this: to a restricting ad group and remove the All Users (obviously): which creates this web.config: <system.webServer> <security> <authorization> <remove users="*" roles="" verbs="" /> <add accessType="Allow" roles="DOMAIN\Test-Group" /> </authorization> </security> </system.webServer> all seems fine at first glance, but if we go to WP Site Health it reveals this errors: so it seems the wp REST-Api cannot operate without anonymous / …
Category: Web

Permalinks on Windows IIS not working and web.config breaks site - does wordpress not support windows server now, if so how?

I have a large wordpress site that I migrated from AWS/Linux to a different host that is Windows Server 2016. I have been developing on wordpress for years but this is my first time back on Windows server in a while. I remember that when updating wordpress it would write a web.config file that would update the rewrite structure for that directory. Now rewrites are basically broken - in that you shouldn't have admin choices that break your site. Out …
Category: Web

WordPress CSS completely broken on IIS

I am not entirely certian what is causing the issue but CSS seems to be completely broken on my newly installed WordPress site, installing on IIS 10. Referenced page is jacob6223.net, haven't gotten SSL setup and HTTPS isn't binded so you'll likely encounter a security warning. Just doing this for a pre-production run. I checked MIME types to ensure CSS was in there and it is, so I'm not sure what the issue is here. Also, Port 80 is directly …
Category: Web

Import from Windows to Linux

The previous IIS server used to host this WP site. Now I have a Linux environment. The Db import went smoothly. Copying over the site files generates issues however. There are plugins that refuse to start. I understand the issues with paths. Those are fixed. My question: is there a import script/function that is the "proper" way to migrate from Windows IIS to Linux Apache? Edit: one of the offending plugins is stored in a dir named: ist-form-dresser I cant …
Category: Web

Wordpress in IIS 7.5 - "cannot create directory"

This is a common problem (so I've found out) but I cannot get WP to play nice with IIS 7.5 / PHP 5.6. Updating (WP + plugins) and installing (plugins) always return the error "Cannot create directory". I am not using (nor can I use) FTP. The folders, include the temp folder all have full read/write access for the application pool identity and IUSR / IIS_IUSRS. I have tried all combinations of permissions and app pool identities to the point …
Category: Web

404 for custom static link on IIS with URL Rewrite Module

I need to use IIS to develop the new WordPress site. After reading a lot of articles, I installed the URL Rewrite Module on IIS (https://www.iis.net/downloads/microsoft/url-rewrite). My site structure is: localhost/projectname/projectcms/ I set the WordPress URL on cms as: http://localhost/projectname/projectcms And the wordpress was installed inside the projectcms folder. The site URL as: http://localhost/projectname Also, I customize the permalink as: http://localhost/projectname/% category%/%year%/%postname%/ (no space between "%" and "c") However, those pages display 404 errors. What is the rewrite rule I …
Category: Web

Why are images not displaying?

Server: IIS 6 WordPress version 3.1.1 Multisite using SubFolders I'm able to upload images to the server, but thumbnails and full size images do not display. If I try to edit the image, the preview displays. The file exists in blogs.dir. I'm using ISAPI Rewrite to create a httpd.conf file, which contains the block of code listed under Subfolder Example on the Create a Network page in the Codex. WordPress says the file is here: http://blogs.nvcc.edu/test/files/2011/04/facebook6.jpg. Actual location is here: …
Category: Web

Wrong permissions when uploading a file through WordPress | IIS

I own an IIS server where I have hosted a simple WordPress website. I have made this website available to the internet over port 80. Almost everything is working fine, except the permissions that are set on files I upload to WordPress using the CMS itself. The IUSR, IIS_IUSRS and Network Service users have Full Control over the entire WordPress directory, however, when I upload new files, the permissions aren't inherited. Basically WordPress generates a thumbnail, which I can access. …
Category: Web

Wordpress multisite on IIS - can't open subpages

Our site developer built a new site for us on wpengine.com. They did a search and replace to fix the URL references before exporting the database and zipping it with the site files to send to us. I installed and configured everything I know to install (MySQL 5.7.33, URL Rewrite 2.1, PHP 7.4, Wordpress 5.6) and got that all working with a vanilla Wordpress site configured for multisite. I then copied over the new site files, imported the database, and …
Category: Web

Hardening uploads folder in IIS breaks images

My site loads a bunch of images from the uploads folder, using direct URLs, such as: http://www.example.com/wp-content/uploads/some.image.png I'm trying to figure out a remote script execution issue, and one of the things recommended on https://wordpress.org/support/article/hardening-wordpress/ is to prevent script execution in the uploads folder, using the .htaccess file: # Kill PHP Execution <Files ~ "\.ph(?:p[345]?|t|tml)$"> deny from all </Files> My site is running on IIS, so to acheive the same result, I removed the PHP handler for the uploads folder …
Category: Web

IIS 7 Rewrite with parent categories

I have seen quite a few questions on here asking around the same thing but either have been unanswered or slightly different! I have tested the following on a linux machine and all works fine, when I transfer it to windows to run under iis7 it breaks. So I know its setup right as far as the post type and taxonomy code goes. I create a product(my custom post type) and have the following as product categories(custom taxonomy): - test1 …
Category: Web

Graphics and Formatting Not Loading in WordPress on IIS

We have IIS 7.5 and we've installed WordPress (v3.3.1) through the Microsoft Web Platform installer (http://www.microsoft.com/web/wordpress). All works fine when we load WP locally (e.g. http://localhost/mywordpresssite), the graphics load fine. But when I enter the IP address or hostname accessing the site from a machine other than locally, none of the graphics or formatting appear. Is there some configuration I have to set to get this working? I've noticed that all the graphics etc. are hard-wired to 'localhost', which explains …
Category: Web

WordPress unable to create folders even though correct NTFS-rights are set

We are trying different NTFS-rights settings on a IIS-webserver, and we removed the Users-group from the folder containing all the sites. We then ran into the problem that a WordPress installation could no longer create folders for uploaded files. (The setting to organize uploaded files in folders according to year/month is in use). The files are stored on a different site, a mediasite. (Within the same IIS-server) If we manually create the folder it works just fine to upload files …
Category: Web

Site speed slows when user logged in

my wp site is hosted on an IIS windows server. Issue is, my ttfb when a user is logged in is a lot longer (2/3 seconds) then when no user is logged in (super fast). See this video for a demo: https://youtu.be/uMJs9v0LqPM I've tried many different permutations of cache plugins/settings (W3 TC and WP Super Cache) and iis settings, and I don't think it's down to that. Also, the amber warnings through Query Monitor are only a matter of miliseconds. …
Category: Web

removing index.php IIS 7.5 webconfig

I would like to remove index.php from my permalink. I am using Codeigniter website. I have passed the requirements to use pretty permalink: -PHP Version 5.4.27 Codeigniter -IIS 7.5 -URL Rewrite 2.0 -Server API: FAST CGI Before, I have removed index.php from codeigniter. I wonder if wordpress webconfig file has conflicted with codeigniter. Some help on determining the right webconfig would be greatly appreciated! website.com/en/user => codeigniter with the controller User website.com/blog /apps /system /blog web config to remove CI …
Category: Web

Multisite installation on IIS gives 404 trying to access the admin dashboard

There appears to be a bug on the web.config file generated by WordPress, up to version 4.7.2, where the rewrite rules do not work as needed to access the sites defined in the network. When using, for instance, sub-dir for the multisites configuration, trying to access mysite.com/subsite/wp-admin/ gives a 404 error.
Category: Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.