Chuck Crisler wrote:
> server-status is enabled but I didn't see anything relevant there.

Okay.


> The Apache error log does have an error:
> [Tue Jul 28 21:11:34 2009] [error] [client 127.0.0.1] Could not
> create '/etc/httpd/mason/obj/.__obj_create_marker': Permission denied
> I created the mason and obj directories and gave full permission
> (777) on both. Now it is looking for another directory. How can I
> instruct the OS to create these directories?

The 'mkdir' command -- see 'man mkdir'.


As another responder posted, you might want to figure out what user
httpd is running as and verify files/ directories.


That said, you shouldn't need to deal with such details -- a good
package manager and a good package should have set it all up for you.
All you should need to do is create/ edit the right configuration files.
On Debian, installing Apache and Mason was easy:

        apt-get install apache2
        apt-get install libhtml-mason-perl

Getting them working took more steps -- I use Apache virtual hosts, one
per project.  So, I created a virtual host configuration file, restarted
Apache, adjusted my DNS caching server (IPCop), and I was ready to start
writing/ browsing Mason code.


> I searched on Mason and found 5 entries. I had installed that.
> Perhaps I caused a problem when I tried to install 1.42. Anyway, I
> uninstalled all 5, then re-installed them again. The result is the
> same, with the same error from Apache.

Version control is your friend.  I've run CVS since ~2001.  For all my
machines/ VM's, I keep a system administration log.txt file and copies
of any system configuration files I modify under version control.  Here
is the CVS working tree for my Mason development virtual machine
"vmdebian500" (CVS directories omitted for clarity):

    2009-07-29 01:12:38 r...@vmdebian500 ~
    # tree -I CVS vmdebian500/
    vmdebian500/
    |-- etc
    |   |-- apache2
    |   |   `-- sites-available
    |   |       `-- default
    |   |-- hostname
    |   `-- hosts
    `-- log.txt


Virtual machines are also your friend.  I use VMware Player and
community virtual machines:

    http://www.vmware.com/products/player/

    http://www.vmware.com/appliances/

I unzip the VM, fire it up in the player, do a little work, and keep
track of everything in a CVS system administration tree.  When I reach a
good stopping point, or realize that I've screwed up, I make final
entries in log.txt and check it in to CVS, check-in or throw away
modified configuration files, shut down the VM, and either archive the
VM or throw it away and restore the last known good image.  The end
result is steady, forward progress that can be repeated, without having
to worry about leftover cruft from mistakes or failed experiments.


> Putting the directories with the web server pages seems smart to me.

I use my normal user account and keep each project under one directory
(checked in to CVS).  Here is a Mason/ PostgreSQL voter database
application "voterdb" I'm starting to work on:

    2009-07-29 01:25:05 dpchr...@vmdebian500 ~
    $ tree -a -I CVS voterdb/
    voterdb/
    |-- apache2
    |   `-- sites-available
    |       `-- voterdb
    |-- bin
    |   `-- import
    |-- htdocs
    |   |-- env_info.mhtml
    |   |-- hello.mhtml
    |   `-- mason_info.mhtml
    `-- import
        |-- .cvsignore
        `-- sampledb.txt

I will add the following subdirectories as I progress:

        /lib
        /mason
        /t


HTH,

David



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to