Solved

worspress error in IIS

Posted on 2007-12-04
8
571 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
Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

 
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
 
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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
What You Need to Know when Searching for a Webhost Provider
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

726 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