Solved

worspress error in IIS

Posted on 2007-12-04
8
568 Views
Last Modified: 2013-12-13
I have followed instructions fro iis.net for setting up wordpress with PHP on IIS but I'm getting errors. Here is the one that is holding me up now:
The page cannot be displayed

You have attempted to execute a CGI, ISAPI, or other executable program from a directory that does not allow programs to be executed.
--------------------------------------------------------------------------------

Please try the following:

Contact the Web site administrator if you believe this directory should allow execute access.
HTTP Error 403.1 - Forbidden: Execute access is denied.
Internet Information Services (IIS)

In the vsite under default sites for the wordpress site on the home directory tab I have scripts and executables for excute permissions and on the local path I have checked script source access, read, log visits, and index this resource. I'm also getting prompted to username and password for this site as well and I don't have integrated windown auth checked and anon access enabled with the local iusr account selected............................. any ideas?
0
Comment
Question by:cebrooks03
  • 4
  • 3
8 Comments
 
LVL 3

Expert Comment

by:yjwong
ID: 20404462
Are you using PHP-CGI? If you are using PHP-CGI, you need to allow execute permissions on the interpreter (called php-cgi.exe on PHP 5, and php.exe on PHP 4). Also propagate the execute permissions of the PHP directory to the child directories.
0
 
LVL 1

Author Comment

by:cebrooks03
ID: 20406103
Yes, I'm using PHP-CGI. Can you elaborate a little on how to do this: "you need to allow execute permissions on the interpreter"
0
 
LVL 3

Accepted Solution

by:
yjwong earned 500 total points
ID: 20408230
You need right click your PHP directory, hit the "Security" tab, and see whether a user named "IUSR_MachineName" is in the last. If it isn't, then you have to click on "Add", type in "IUSR_MachineName", and check all the boxes (read, write, execute, ... ).

* MachineName is the name of your computer.
0
 
LVL 1

Author Comment

by:cebrooks03
ID: 20408695
ok, that is what I have done. I still get prompted for username/password and if I enter my admin un/pw I get the same error. The iusr_computer account has the permissions as you have specified on both the php directory and the wordpress directory. I know something has a lock on this but for the life of me I can't find it.
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 34

Expert Comment

by:Dave_Dietz
ID: 20409115
Open the IIS manager.

Open the properties of the directory where you are receiving the error.

Go to the Virtual Directory tab and you should see a drop-down menu with options of "None", "Scripts only" and "Scripts and executables".

Select the "Scripts and executables" option.

This should fix it.

Dave Dietz
0
 
LVL 1

Author Comment

by:cebrooks03
ID: 20410368
That is already set to Scripts and executables.I did try checking "script source access" but I'm still getting ptompted for a username and password when I try to view the page.
0
 
LVL 3

Expert Comment

by:yjwong
ID: 20410678
Microsoft's MSDN might have more information on how IIS authentication works: http://msdn2.microsoft.com/en-us/library/ms955939.aspx

I might have run out of ideas, but maybe you can check your log files to see why IIS is refusing to use the Anonymous Internet User to authenticate.
0
 
LVL 1

Author Comment

by:cebrooks03
ID: 20482592
ok, I got the auth issue worked out. Turns out I was directing my browser to the wrong file..... woops. Thanks for all the help. I'm having another issue with php/mysql but I will start another thread for that.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
Lync server 2013 Backup Service Error ID 4049 – After File Share Migration
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

707 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now