Mailing List Archive

MediaWiki on Windows IIS 6 "[pear_error: message="failed to open stream: Permission denied" code=0 mode=return level=notice prefix="" info=""] "
Any help you can provide would be appreciated:



Setup:

MediaWiki 1.3.8

PHP 4.3.9 (cgi mode)

MySQL 4.0.22

Installed on Windows 2003 (IIS 6)



With anonymous web logins disabled - If any user other than
Administrator tries to access the site the following error comes up:



[.pear_error: message="failed to open stream: Permission denied" code=0
mode=return level=notice prefix="" info=""]



When administrator credentials are used, MediaWiki functions properly
(proving proper setup of PHP, MySQL etc).



I've tried assigning rights of every kind to other users without success
- even adding users to Domain Admin group etc.



Any ideas?





P.S. Please don't suggest running MediaWiki on Apache - I must use IIS
for the AD authentication support and for a few other ASP applications
running on the server.
Re: MediaWiki on Windows IIS 6 "[pear_error: message="failed to open stream: Permission denied" code=0 mode=return level=notice prefix="" info=""] " [ In reply to ]
On Nov 17, 2004, at 7:21 PM, Jeremy Vignaux wrote:
> Any help you can provide would be appreciated:
> Setup:
> MediaWiki 1.3.8
> PHP 4.3.9 (cgi mode)
> MySQL 4.0.22
> Installed on Windows 2003 (IIS 6)
>
> With anonymous web logins disabled - If any user other than
> Administrator tries to access the site the following error comes up:

Could you clarify this? Is the Administrator users a MediaWiki user
account, or HTTP authentication, or the user the web server runs
scripts as, or something else? Exactly how do you log in? Do you see
the errors when not logged in?

> [.pear_error: message="failed to open stream: Permission denied" code=0
> mode=return level=notice prefix="" info=""]

This generally means the PHPTAL template engine couldn't open or write
out the compiled template file. Check that a proper, writable temporary
directory is being used (it tries the directory in the TMP environment
variable, then C:\Windows\Temp, then the images subdirectory).

In the worst case you can disable it by setting $wgUsePHPTal = false;
in LocalSettings.php; this will revert to the old default appearance
which doesn't use the PHPTAL library.

> P.S. Please don't suggest running MediaWiki on Apache - I must use IIS
> for the AD authentication support and for a few other ASP applications
> running on the server.

You can run Apache on another port. I'm sure IIS has a proxying option
for making this transparent if you wanted to try it.

-- brion vibber (brion @ pobox.com)
Re: MediaWiki on Windows IIS 6 "[pear_error: message="failed to open stream: Permission denied" code=0 mode=return level=notice prefix="" info=""] " [ In reply to ]
If the directories identified by Brion are not the culprits, check the
Windows Security Event Log for the details of the permission denial
(if auditing is enabled).

-- Zigger


On Wed, 17 Nov 2004 22:12:35 -0800, Brion Vibber <brion@pobox.com> wrote:
> On Nov 17, 2004, at 7:21 PM, Jeremy Vignaux wrote:
>
>
> > Any help you can provide would be appreciated:
> > Setup:
> > MediaWiki 1.3.8
> > PHP 4.3.9 (cgi mode)
> > MySQL 4.0.22
> > Installed on Windows 2003 (IIS 6)
> >
> > With anonymous web logins disabled - If any user other than
> > Administrator tries to access the site the following error comes up:
>
> Could you clarify this? Is the Administrator users a MediaWiki user
> account, or HTTP authentication, or the user the web server runs
> scripts as, or something else? Exactly how do you log in? Do you see
> the errors when not logged in?
>
> > [.pear_error: message="failed to open stream: Permission denied" code=0
> > mode=return level=notice prefix="" info=""]
>
> This generally means the PHPTAL template engine couldn't open or write
> out the compiled template file. Check that a proper, writable temporary
> directory is being used (it tries the directory in the TMP environment
> variable, then C:\Windows\Temp, then the images subdirectory).
>
> In the worst case you can disable it by setting $wgUsePHPTal = false;
> in LocalSettings.php; this will revert to the old default appearance
> which doesn't use the PHPTAL library.
>
> > P.S. Please don't suggest running MediaWiki on Apache - I must use IIS
> > for the AD authentication support and for a few other ASP applications
> > running on the server.
>
> You can run Apache on another port. I'm sure IIS has a proxying option
> for making this transparent if you wanted to try it.
>
> -- brion vibber (brion @ pobox.com)
>
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l@Wikimedia.org
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
>
>
>
>
Re: MediaWiki on Windows IIS 6 "[pear_error: message="failed to open stream: Permission denied" code=0 mode=return level=notice prefix="" info=""] " [ In reply to ]
If the directories identified by Brion are not the culprits, check the
Windows Security Event Log for the details of the permission denial
(if auditing is enabled).

-- Zigger

On Wed, 17 Nov 2004 22:12:35 -0800, Brion Vibber wrote:
> On Nov 17, 2004, at 7:21 PM, Jeremy Vignaux wrote:
> ...
> > Installed on Windows 2003 (IIS 6)
> >
> > With anonymous web logins disabled - If any user other than
> > Administrator tries to access the site the following error comes up:
>
> Could you clarify this? Is the Administrator users a MediaWiki user
> account, or HTTP authentication, or the user the web server runs
> scripts as, or something else? Exactly how do you log in? Do you see
> the errors when not logged in?
>
> > [.pear_error: message="failed to open stream: Permission denied" code=0
> > mode=return level=notice prefix="" info=""]
>
> This generally means the PHPTAL template engine couldn't open or write
> out the compiled template file. Check that a proper, writable temporary
> directory is being used (it tries the directory in the TMP environment
> variable, then C:\Windows\Temp, then the images subdirectory).
> ...