9 More Discussions You Might Find Interesting
1. Solaris
Hi,
Is it possible to perform an luupgrade on the active boot environment in Solaris?
I want to perform this on BEAlpha - the disk that has BEOmega will be unavailable whilst performing the upgrade but I still want to install the patches using luupgrade.
Boot Environment Is... (4 Replies)
Discussion started by: Mr_Webster
4 Replies
2. UNIX for Dummies Questions & Answers
Hi
I am new to Solaris and was just given my id and need to setup my environment, what do i need to do to run certain commands without putting in the complete path.
How do I create my .profile, I do not see under my login?
Any help would be greatly appreciated. (5 Replies)
Discussion started by: sa_ken
5 Replies
3. Web Development
Hello All,
I am relatively new to using Apache, I have recently set it up on Ubuntu. What I'm trying to do is make "/home/yves/MyFirstPHP/MyFirstPHP/HelloWorld.php" accessible through my browser using the URL: The UNIX and Linux Forums - Learn UNIX and Linux from Experts. The tutorials I have... (1 Reply)
Discussion started by: DarkMatter2009
1 Replies
4. Linux
I have a cron job scheduled to run every 5 mins, and run a php script.
Something was not right about the script and when I checked the server had very little spare memory.
Looked in running processes and I could see that many instances of the script were still running.
I am new to this whole... (1 Reply)
Discussion started by: edzillion
1 Replies
5. Shell Programming and Scripting
I have always wanted to create my own site, I've only had one class about the basics in creating web pages but know i would like to get into more and more detailed info about doing so anyone with alot of experience please help me out.:b: (0 Replies)
Discussion started by: kprescod4158
0 Replies
6. AIX
hello
I would like to create an internal web site, but how do i make it with Aix ?
I must to install apache and send my http pages in the declared repertory ?
There are some configuration files to modify ??
thank you (2 Replies)
Discussion started by: pascalbout
2 Replies
7. UNIX for Dummies Questions & Answers
Hiya All,
How can I test my PERL Scripts whilst making my web site?
I'm hoping there is some software out there that emulates a Web Server - without all the hassle of my building/setting up a Web Server from Stratch (Never done anything like that before - my next big project! 8) )
... (7 Replies)
Discussion started by: marty 600
7 Replies
8. UNIX for Dummies Questions & Answers
I have a unix server running RedHat Linux 9.0. I want to mirror my site on a different server with the same configuration so if the main server goes down, the other server will take over. How is this best accomplished? (1 Reply)
Discussion started by: wvmlt
1 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I have a m/c loaded with redhat linux, static IP address and this m/c intern connected to the internet thro leaseline. Now i need to setup a company website has www.abc.xyz.com. What necessary configuration i need to do so that others can view our website.
Thanks
Bache Gowda (5 Replies)
Discussion started by: bache_gowda
5 Replies
Mason::Manual::Setup(3pm) User Contributed Perl Documentation Mason::Manual::Setup(3pm)
NAME
Mason::Manual::Setup - Setting up Mason
SETUP
Web development
The most common use of Mason is to generate dynamic web content.
Poet is a web framework designed specifically to work with Mason. Given an HTTP request, Poet generates a corresponding Mason request, and
uses the output from Mason to form the HTTP response. Poet takes care of the web development details that are outside of Mason's domain,
such as server integration and configuration. Poet::Manual::Tutorial shows how to set up a Poet/Mason site in great detail.
Mason can also be used in the popular web frameworks Catalyst and Dancer, as a drop-in replacement for their default template engines. See
Catalyst::View::Mason2 and Dancer::Template::Mason2.
Non-web development
Mason can be used to generate any kind of dynamic content. I have personally used it to generate Apache configuration files, emails, and
C++ code.
To use Mason from a script or library, use the Mason::Interp API:
my $interp = Mason->new(
comp_root => '/path/to/comps',
data_dir => '/path/to/data',
...
);
my $output = $interp->run( '/request/path', foo => 5 )->output();
If you want to process a directory with a mix of Mason templates and static files, check out Any::Template::ProcessDir.
To try out Mason syntax from the command line, use the mason script:
% mason
2 + 2 = <% 2+2 %>
^D
2 + 2 = 4
LOGGING
Mason uses Log::Any to log various events, such as the start and end of each request. You can direct thesse logs to the output of your
choice; see Log::Any::Adapter. If you don't specify anything then the logs will go into the void.
SEE ALSO
Mason
AUTHOR
Jonathan Swartz <swartz@pobox.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Jonathan Swartz.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2012-05-02 Mason::Manual::Setup(3pm)