[WINDOWS] short_open_tag issue installing v3.0.2 on IIS 5.2

senachie

Joined: 2011-10-01
Posts: 1
Posted: Sat, 2011-10-01 12:32

This post is to report a solved problem on installation to Windows for what it may be worth.

I installed Gallery version 3.0.2 on a linux host and a windows host at the same time (both shared hosting services).

The linux install ran perfectly.

The windows refused to install because short_open_tag was Off.
PHP version was 5.2.12, so compliant.

A support ticket revealed the system used fastcgi and had a system to read .htaccess files for configuring php. They suggested setting the flag with an unconditional command in the web root.
I pointed out there was a .htaccess file in the Gallery3 install which appeared to set the flag on, but it remained stubbornly off. (G3 was installed in a folder below the web root).

Support renamed the .htaccess file in Gallery3 and the flag then obeyed the directive in the web root and turned On. They claimed the syntax in the .htaccess file was wrong.

I guess the local (G3) .htaccess was masking the one in the web root, because there is nothing in it that would turn short_open_tag Off if the system was processing both files.

I am also guessing that the conditional syntax in the G3 .htaccess is not parsed properly by IIS 5 so it need sto be replaced by something a bit more primitive for IIS5.

The .htaccess in the root (which worked) had only one line:
php_flag short_open_tag On

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2011-10-01 15:49

Cheers,
Added a link to this tread from http://codex.gallery2.org/Gallery3:Installation_on_Windows_Server_2008_and_IIS7#FAQ

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Ranger187
Ranger187's picture

Joined: 2005-12-02
Posts: 204
Posted: Sat, 2011-12-24 05:28

# short_open_tag must be On. See php.ini directives. <-----

Kinda lost as why that was added when all you need to do is add it to the php.ini as specified in the requirements. Across the 30-50 sites on windows I host I never had to do anything other than edit the php.ini. ;)

Quote:
short_open_tag = On

<---- Fix for php as this has been known since Gallery was created. ;)

My how-to is ONLY for Windows Server 2008/2008 R2 and IIS 7 as IIS 5 can't handle MANY features. Including Mod_Rewrite etc. PLEASE READ THE INSTALL INSTRUCTIONS I CREATED. ;)

Quote:
Running Gallery 3 on Windows environment is not officially supported by the Gallery Team.

This install WILL work provided you are running Windows Server 2008, have local admin and IIS 7/7.5 (co-hosted boxes are not supported)

Anything below Windows Server 2008 is NOT SUPPORTED.

Just a FYI you might be interested in: Gallery3:Installation_on_Windows_and_Apache

SIDE NOTE: If you use Microsoft's Web Platform Installer, technically, it will install all but mod_rewrite on XP/Vista/7 and this is NOT written for anything below IIS7/Windows 2008

I'll do some more updating now that I'm back from Iraq. Cheers!

Floridave: Please have them make a separate INSTALL/HOW-TO for anything below Windows 2008 as it's buggy and I won't support it. If that's not an issue. Thanks!
=======================================

*I provide ONLY Windows support* ;)

Provide OS, Service Pack, 32 or 64bit.
IIS Version
Mysql (32/64bit)
PHP version

Rang3r187 = AIM
Rang3r_187= yahoo