mobilecat on Windows?

17 views
Skip to first unread message

randyn

unread,
Nov 2, 2010, 12:19:35 PM11/2/10
to mobilecat
Has anyone succeeded in installing mobilecat and its prerequisites on
a Windows platform? I've got it running and mostly working on an
Ubuntu VM on my Mac (I had to use the Subversion working copy so that
it would get the bibid, which is needed to view the "full" record).
However, most of our server infrastructure is Windows, so I need to be
able to justify the platform choice either way..

thanks
Randy Norwood
Texas Tech Univ Law School

anna headley

unread,
Nov 2, 2010, 12:41:34 PM11/2/10
to mobi...@googlegroups.com
Hi Randy,

I haven't heard of anyone trying, although perhaps someone will speak up and prove me wrong. 

Since you mention the subversion repository, I'll just add that I'm planning to package a  new download soon; just need to iron out a few things.  Dave Hansen has been implementing a lot of new stuff, including scoping, and viewing holds and fines.

Best,
Anna Headley
TriCollege Libraries

Amy Deschenes

unread,
Nov 2, 2010, 12:44:59 PM11/2/10
to mobi...@googlegroups.com
Hi All- 

Our version of MobileCat is currently running on Windows Server 2003 without any problems.  The only thing we can't quite get working is the login functionality, but I don't think that has anything to do with our server environment.

Thanks
Amy
--
Amy Deschenes
Library Technology Specialist
Simmons College Library
Boston, MA 02115



Dave Hansen

unread,
Nov 2, 2010, 1:36:22 PM11/2/10
to mobi...@googlegroups.com
Amy, this is great news. I think you mentioned it before, but it didn't click. Were there any unexpected hoops that you needed to jump through in getting it work? Perhaps this would help us write some Windows installation instructions.

Dave
-- 
Dave Hansen
Electronic Resources Manager
dm...@stmarys-ca.edu
Saint Mary’s College of California
1928 Saint Mary’s Road
Moraga, CA 94575-4290
(925) 631-4253 x4253

alan

unread,
Nov 8, 2010, 9:57:21 AM11/8/10
to mobilecat
Hi,

My test environment is my windows xp machine. The most difficult thing
was to get the pecl http extension, as I do not have the full build
environment on my computer. There is a choice pre-built binaries here
http://downloads.php.net/pierre/ depending upon your php installation.

chad....@ttu.edu

unread,
Nov 17, 2010, 10:49:22 AM11/17/10
to mobilecat
Thanks to this thread and others, we were able to get things set up.
For anyone needing to do this in the future, here's what we had to do:

1. We had thread-safe PHP 5.2.13 installed on IIS 6
2. We then installed Smarty, these 2 URLs show how to do it:
http://www.smarty.net/docs/en/installing.smarty.basic.tpl
http://news.php.net/php.smarty.dev/2703

3. Next was the php_http extension, which is part of the PECL
project. This one is kind of tricky, mainly because your PHP install
may not have the dll files you need and that takes some digging.

4. To get the PECL extensions, which will include the php_http.dll, go
here and download the version that corresponds to your PHP build:
http://museum.php.net/php5/

5. Then copy the PECL extensions into your /php/ext directory
6. Then add these lines to your php.ini file, in the Dynamic
Extensions area:

[PHP_CURL]
extension=php_curl.dll
[PHP_HTTP]
extension=php_http.dll

7. As one of the comments notes on this page:
http://us.php.net/manual/en/http.install.php
You may need to get the php_curl.dll from one of the Win32.zip
packages here http://museum.php.net/php5/.
8. You'll also likely need to copy the libeay32.dll and ssleay32.dll
files into the C:\Windows\System32 directory. So, once you have those
4 dll files on your system, and the 2 modules 'enabled' by being
listed in the php.ini file, you should be set.

This site also useful:
http://curl.haxx.se/libcurl/php/iis.html

Dave Hansen

unread,
Nov 17, 2010, 11:38:43 AM11/17/10
to mobi...@googlegroups.com
Chad,

Thanks so much! We'll certainly get to publishing this with the
documentation for the next release.

Dave

--
Dave Hansen
Electronic Resources Manager
dm...@stmarys-ca.edu

Saint Mary�s College of California
1928 Saint Mary�s Road

ChristineR

unread,
Nov 17, 2010, 3:01:03 PM11/17/10
to mobilecat
Thanks for the clear instructions. They are so helpful.

I did run into a problem, however. When I installed the libeay32.dll
and ssleay32.dll files into Windows\System32, my Apache server would
not restart (error). When I took them back out of there, Apache
restarted fine. I'm not sure why.

Christine

On Nov 17, 10:49 am, "chad.co...@ttu.edu" <chad.co...@ttu.edu> wrote:
> Thanks to this thread and others, we were able to get things set up.
> For anyone needing to do this in the future, here's what we had to do:
>
> 1. We had thread-safe PHP 5.2.13 installed on IIS 6
> 2. We then installed Smarty, these 2 URLs show how to do it:http://www.smarty.net/docs/en/installing.smarty.basic.tplhttp://news.php.net/php.smarty.dev/2703
>
> 3. Next was the php_http extension, which is part of the PECL
> project.  This one is kind of tricky, mainly because your PHP install
> may not have the dll files you need and that takes some digging.
>
> 4. To get the PECL extensions, which will include the php_http.dll, go
> here and download the version that corresponds to your PHP build:http://museum.php.net/php5/
>
> 5. Then copy the PECL extensions into your /php/ext directory
> 6. Then add these lines to your php.ini file, in the Dynamic
> Extensions area:
>
> [PHP_CURL]
> extension=php_curl.dll
> [PHP_HTTP]
> extension=php_http.dll
>
> 7. As one of the comments notes on this page:http://us.php.net/manual/en/http.install.php
> You may need to get the php_curl.dll from one of the Win32.zip
> packages herehttp://museum.php.net/php5/.

chad....@ttu.edu

unread,
Nov 17, 2010, 5:10:57 PM11/17/10
to mobilecat
Ok, we are not totally out of the woods, we were getting this error:

[17-Nov-2010 14:06:23] PHP Warning: require_once(d:/SITES/MobileOasis/
mobilecat/Smarty/Smarty.class.php): failed to open stream: No such
file or directory in D:\SITES\MobileOasis\mobilecat\util.php on line 7

Which we resolved by installing PEAR and putting PEAR in the include
path, but now the index.php file for mobilecat just runs with no
output or errors, so we are not sure what we missed?

Thank you,

Chad

Dave Hansen

unread,
Nov 17, 2010, 6:03:12 PM11/17/10
to mobi...@googlegroups.com
I receive this error when I forget to make the templates_c directory
fully writable and executable. Try that.

Also, make sure you have simple_html_dom.php in your mobilecat root
directory. To get extra debug messages put 'error_reporting(E_ALL)' in
util.php below the require() statements.

Dave

--

Message has been deleted

chad....@ttu.edu

unread,
Nov 23, 2010, 10:58:58 AM11/23/10
to mobilecat
We are having a bit of trouble on the URL rewrite on IIS6, did anyone
encounter this?

Ensure that this location has AllowOverride all in the Apache
configuration, so that MobileCat's .htaccess file can be processed

Thank you,

Chad

On Nov 17, 5:03 pm, Dave Hansen <d...@stmarys-ca.edu> wrote:
> I receive this error when I forget to make the templates_c directory
> fully writable and executable. Try that.
>
> Also, make sure you have simple_html_dom.php in your mobilecat root
> directory. To get extra debug messages put 'error_reporting(E_ALL)' in
> util.php below the require() statements.
>
> Dave
>
> On 11/17/2010 2:10 PM, chad.co...@ttu.edu wrote:
>
> > Ok, we are not totally out of the woods, we were getting this error:
>
> > [17-Nov-2010 14:06:23] PHP Warning:  require_once(d:/SITES/MobileOasis/
> > mobilecat/Smarty/Smarty.class.php): failed to open stream: No such
> > file or directory in D:\SITES\MobileOasis\mobilecat\util.php on line 7
>
> > Which we resolved by installing PEAR and putting PEAR in the include
> > path, but now the index.php file for mobilecat just runs with no
> > output or errors, so we are not sure what we missed?
>
> > Thank you,
>
> > Chad
>
> --
> Dave Hansen
> Electronic Resources Manager
> d...@stmarys-ca.edu
> Saint Mary s College of California
> 1928 Saint Mary s Road

chad....@ttu.edu

unread,
Nov 23, 2010, 11:48:38 AM11/23/10
to mobilecat
URL Rewrite issue:

Ok, we figured it out, here are the helpful URLs:

http://www.helicontech.com/isapi_rewrite/doc/examples.htm
http://codex.wordpress.org/Using_Permalinks
http://www.kylecaulfield.com/permalink-for-wordpress-iis-6-mod_rewrite-fixed-free

Basically, download their free isapi_rewrite tool and install.
Then, put this in the C:\Program Files\Helicon
\ISAPI_Rewrite3\httpd.conf file:


#this will allow mobilecat to display pages without the .php
extenstions
RewriteEngine on
RewriteBase /MobileOasis/mobilecat
#Redirect extension requests to avoid duplicate content
RewriteRule ^([^?]+)\.php$ $1 [NC,R=301,L]

#Internally add extensions to request
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule (.*) $1.php

Note, for "RewriteBase" you'll want to subsitute the IIS path to your
mobilecat web folder/web files.

Dave Hansen

unread,
Nov 23, 2010, 11:50:53 AM11/23/10
to mobi...@googlegroups.com
Congrats Chad. Is it all up and running for you now?

We had some setup issues with mod_rewrite on Apache a few months ago as
well. I'll take a look back at that.

Dave

--
Dave Hansen
Electronic Resources Manager

dm...@stmarys-ca.edu
Saint Mary�s College of California
1928 Saint Mary�s Road

chad....@ttu.edu

unread,
Nov 23, 2010, 11:53:32 AM11/23/10
to mobilecat
Actually, this should work as well:


RewriteBase /

based on this
"Note! All rules in these examples are intended for httpd.conf file.
In ISAPI_Rewrite as well as in Apache mod_rewrite base path for rules
is different depending on a directory where you put .htaccess file.
Initial leading slash only exist if you put rules in httpd.conf, while
in .htaccess files virtual path to these files is truncated. Rules
that rely on a root path are preceded with RewriteBase / directive to
allow them to work in any location within httpd.conf and directory
level .htaccess files."

but, if you run into any issues with other websites, you may want to
use RewriteBase /pathtoyourmobilecatsite

chad....@ttu.edu

unread,
Nov 23, 2010, 11:56:00 AM11/23/10
to mobilecat
Dave:

Thank you, yah, there might be some minor tweaks, but I think we got
over the major hurdles. I'll continue to post what we do so that
others have a record of the tasks needed to get it all working.

Regards,

Chad

chad....@ttu.edu

unread,
Nov 29, 2010, 11:33:51 AM11/29/10
to mobilecat
Ah, one more thing, on the templates_c directory, set it so that IUSR
has RWX, Modify permissions.
Reply all
Reply to author
Forward
0 new messages