Mombu the Programming Forum sponsored links

Go Back   Mombu the Programming Forum > Programming > FreeM begginner needs help with system set up
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 22nd January 15:12
john k mitchell
External User
 
Posts: 1
Default FreeM begginner needs help with system set up



Having worked with M for many years I've just put a copy of FreeM onto a
Linux server (a Cobalt Raq that is based on an old version of RedHat)
and have compiled it so that I can run via the command line in a shell
account.

What I need to be able to do is call a M routine from a web browser but
can't seem to get this working. Hopefully I will be able to do this
from several domains once i get the thing up and running.

The do***entation seems to be lacking at this point and I wondered if
anyone had any ideas?

Do I need to change the Apache config file or something?

All suggestions gratefully received.

Cheers

John
--
John K Mitchell
Forest Software Ltd
Web sites for the smaller business and charity.
  Reply With Quote


  sponsored links


2 22nd January 15:13
axel trocha
External User
 
Posts: 1
Default FreeM begginner needs help with system set up



Hello John,

* For a start to just get things going, I suggest you put the 'mumps'
binary into the default cgi-bin directory. (alternatively you could
create a symbolic link to /usr/bin/mumps)

* Just to make sure lets check the httpd.conf settings: We need to
take care of three things.


HTTPD.CONF:
a) make sure that your chosen cgi directory has ExecCGI permission.
('cgi-bin' in your case). You find those in the <directory>directives. For instance:
<Directory /home/httpd/cg-bin>
Options Indexes FollowSymLinks ExecCGI AllowOverride all
</Directory>

b) set the ScriptAlias (the mapper from URL to local directory)
for instance:

ScriptAlias /cgi-bin/ "/home/httpd/cgi-bin/"

c) check out under which user apache runs: Either it is built-in or
set in httpd.conf (User and group directives).


PERMISSIONS:
* Now take care that the apache user/group has permission to execute
the mumps binary. (e.g. chmod a+rx /usr/bin/mumps).

* Also make sure that apache has at least execute (+x) permission to
the cgi-bin directory (e.g. chmod a+rx /home/httpd/cgi-bin)

* ,And lastly it also needs permission to read the mumps files. (chmod
a+r /home/httpd/cgi-bin/*.m)


TEST-ROUTINE:
* Incase you got no mumps routines yet, lets create a demo routine.
('test.m') Save something like below to '/home/httpd/cgi-bin/test.m': test ;
<html>
<pre> w
</pre>
</html>
h

(don't forget to set the permissions


PUSHING-******:
* ok, lets try it: If you did changes to the httpd.conf - restart
apache (apachectl graceful). Open your browser and call:

http://127.0.0.1/cgi-bin/mumps?rou=test

Actually it should work now. Good luck

regard,
Axel
  Reply With Quote
3 22nd January 15:13
john k mitchell
External User
 
Posts: 1
Default FreeM begginner needs help with system set up


In message <b7p1qv0d1vu90tp3qcjj8jqi294sbbjjrc@4ax.com>, Axel Trocha
<axel@trocha.com> writes

Thanks Axel, I'll give this a try later - I just need to sort out the
references since my server is not quite like the setup you mention.

Cheers

John

--
John K Mitchell
Forest Software Ltd
Web sites for the smaller business and charity.
  Reply With Quote
4 22nd January 15:13
john k mitchell
External User
 
Posts: 1
Default FreeM begginner needs help with system set up


In message <b7p1qv0d1vu90tp3qcjj8jqi294sbbjjrc@4ax.com>, Axel Trocha
<axel@trocha.com> writes

Hi Axel,

It worked first time - for the record the servers that I use run
CGI-Wrapper but once I'd created a link from a directory on the publicly
viewable area on the system (actually hanging off one of the virtual
sites on the server) and altered the httpd.conf file it works like a
dream.

Now all I need to do is write the software application and away I go ;-)

Thanks for your help

John

--
John K Mitchell
Forest Software Ltd
Web sites for the smaller business and charity.
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666