Solved

Can't Get WordPress to Work on Windows IIS in Site Subdirectory

Posted on 2011-09-16
4
4,866 Views
Last Modified: 2012-05-12
Hi, we are trying to get WordPress 3.0 to install and work under an existing IIS website so that it comes up under a subdirectory when browsing the site like:  http://www.site.com/blog

We are using the Microsoft Web Platform Installer and have tried two different installs of WordPres.  The first time through, when trying to intstall to an existing site, the platform installer doesn't let us put in a path to choose the subdirectory, so it won't proceed.  So we choose 'new site' and then changed the path to be in a new subdirectory called /blog/ under the websites root directory.  This install won't work at all - nothing in WordPress will load - we can't get the config page to come up after install - all "page not found" errors in IIS even navigating directly to http://192.168.4.34/blog/index.php or http://192.168.4.34/blog/wp-admin/admin.php - pages cannot be found.  It's like IIS cannot find or run any wordpress/php pages in this site.

So we ran the Platform Installer again, chose another new site, and this time chose 'default site' (wasn't being used in IIS) and let it install to localhost in inetpub.  After the install, WordPress will come up and we can configure it, and browse and use wordpress in localhost.

So now our problem is how do we get http://site.com/blog to point to that working install?  I tried creating a virtual directory in IIS for the correct site, point it to the wordpress install on localhost, set default document to index.php, but same problem as above, when browsing to site.com/blog (the virtual directory) - the pages cannot be found.

We need to figure out best way to install and get WordPress working in subdirectory of an IIS site - the main website uses aspx and .net, and I know WordPress is running on PHP.  Wondering if this is causing a conflict in the IIS settings for the one site.

Thanks for any help on getting this working quickly and with best practices so the two can live together seamlessly and the blog can be accessed within the main site easily in a subdirectory.
0
Comment
Question by:masterbeat
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 28

Expert Comment

by:strickdd
ID: 36549181
From my experience, WordPress - and most other CMS sites - have to be installed at the root level. This means, you cannot have mysite.com/blogs, it HAS to reside at mysite.com/.

So... what this means to you? Simply make a subdomain of blogs.mysite.com/ and make that your WP site.
0
 

Author Comment

by:masterbeat
ID: 36549198
Sorry, but this isn't correct - many people have it working, and there are various posts about using IIS virtual directories or redirect/rewrites to get it to work on one server, under a subdirectory, yet all of the posts are just a bit out of our grasp of understanding and we need a bit more help with it.  A subdomain is not desired, we need a subdirectory for our configuration.  It IS possible, we're just missing something.
0
 

Accepted Solution

by:
masterbeat earned 0 total points
ID: 36549244
It appears we have solved the problem - it was simple after all, PHP wasn't added as an extension/script in IIS for the old website, hence 'file not found' for all PHP extensions.   Once adding .php to executables in application, WordPress is co-existing happily in the subdirectory using PHP while the root site is using aspx.

Thanks!
0
 

Author Closing Comment

by:masterbeat
ID: 36572259
We figured out the issue was .php extension.
0

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
The purpose of this video is to demonstrate how to make a WordPress Site faster and smaller in size by cleaning up the database. This will be demonstrated using a Windows 8 PC. Plugin WP Optimize will be used. Go to your WordPress login page. T…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.
Suggested Courses

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question