Rick,<br><br>"Is it possible that other files could be being used
    outside the web root?"<br><br>perl -e 'print join "\n", @INC;'<br><br>Will list all locations Perl is looking for modules.<br><br>Apache::Session is not missing itself but some module somewhere is obviously using it.<br>

<br>Apache::Session is able to be told where its lock files are to be stored.<br><br>There is a good chance that if the directory /var/lock/sessions was not present before then whatever the code is that is using Apache::Session may have specified a different location (just a guess there..)<br>

<br>Do you know where the 'shopping cart' code itself came from? Is the application based on some other known framework that might aid is giving us some clues?<br><br>Ben<br><br><br><div class="gmail_extra"><br><br>

<div class="gmail_quote">On Mon, Dec 3, 2012 at 2:26 PM, Ben Hare <span dir="ltr"><<a href="mailto:benhare@gmail.com" target="_blank">benhare@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

actually, you probably shouldn't have to really but i would try it anyway.<br>
<div class="HOEnZb"><div class="h5"><br>
On 3 December 2012 13:56, Ben Hare <<a href="mailto:benhare@gmail.com">benhare@gmail.com</a>> wrote:<br>
> the error you gave doesn't seem to indicate apache-session is missing<br>
> necessarily. perhaps you need to restart apache after fixing the<br>
> permissions? ( if it's mod-perl you will ).<br>
><br>
> On 3 December 2012 13:53, Rick Giner <<a href="mailto:rickginer@gmail.com">rickginer@gmail.com</a>> wrote:<br>
>> I came to the same conclusion, but Apache::Session doesn't appear in the<br>
>> codebase. Is it possible that other files could be being used outside the<br>
>> web root?<br>
>><br>
>> What do you think might require permissions? I have added the /sessions/<br>
>> folder and given it ownership of www-data (same as Apache) and even tried<br>
>> permissions 777. Are there other folders I should be lookign at? Or<br>
>> particular users I should try executing processes as?<br>
>><br>
>> To my knowledge the OS hasn't been changed recently, but I don't think it<br>
>> was a well-maintained box. When I restarted it last week Apache complained<br>
>> about missing files from sites that had been decommissioned, but their<br>
>> definitions not removed from sites-enabled - so someone had been tinkering<br>
>> in there and not properly tidying up after themselves. No idea when the box<br>
>> was last restarted, but it's quite possible modules were uninstalled or<br>
>> changed months ago and no one would have noticed until the box was restarted<br>
>> last week<br>
>><br>
>><br>
>><br>
>><br>
>> On 3/12/12 2:06 PM, Benjamin wrote:<br>
>><br>
>><br>
>> Appears to be using Apache::Session somewhere in there and sounds a lot like<br>
>> permission issues.<br>
>><br>
>> Have you recently moved the site to a new environment or upgraded the host<br>
>> OS?<br>
>><br>
>> Can you grep the Perl source for the application for "Apache::Session" and<br>
>> grab the chunk of related code?<br>
>><br>
>> Ben<br>
>><br>
>><br>
>><br>
>> On Mon, Dec 3, 2012 at 1:59 PM, Rick Giner <<a href="mailto:rickginer@gmail.com">rickginer@gmail.com</a>> wrote:<br>
>>><br>
>>> I wonder if anyone can help. This may only take a short time to debug for<br>
>>> someone in the know. More than happy to compensate for any time spent on<br>
>>> it...<br>
>>><br>
>>> It's been a long while since I have worked with Perl, I am in a Ruby role<br>
>>> right now but we have an old (12 year old) Perl website that stopped working<br>
>>> after the server rebooted. The shopping cart did, anyway.<br>
>>><br>
>>> It seems to be trying to read session information relating to the shopping<br>
>>> cart, the error showing up in the log is a "Could not open file<br>
>>> '/var/lock/session/Apache-Session-blah.lock' for writing: No such file or<br>
>>> directory at /usr/share/perl/5.8/CGI/Carp.pm line 314". The /session/ folder<br>
>>> it refers to doesn't actually exist, though even after I created it the<br>
>>> error persists and no session files are being written.<br>
>>><br>
>>> If anyone has any time to help, we would greatly appreciate it and can<br>
>>> arrange for a console into the server and much beer + cash prizes for anyone<br>
>>> that helps solve our problem!<br>
>>><br>
>>> Many thanks,<br>
>>><br>
>>> Rick Giner<br>
>>> <a href="tel:0416%20500%20924" value="+61416500924">0416 500 924</a><br>
>>><br>
>>> _______________________________________________<br>
>>> Melbourne-pm mailing list<br>
>>> <a href="mailto:Melbourne-pm@pm.org">Melbourne-pm@pm.org</a><br>
>>> <a href="http://mail.pm.org/mailman/listinfo/melbourne-pm" target="_blank">http://mail.pm.org/mailman/listinfo/melbourne-pm</a><br>
>><br>
>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> Melbourne-pm mailing list<br>
>> <a href="mailto:Melbourne-pm@pm.org">Melbourne-pm@pm.org</a><br>
>> <a href="http://mail.pm.org/mailman/listinfo/melbourne-pm" target="_blank">http://mail.pm.org/mailman/listinfo/melbourne-pm</a><br>
><br>
><br>
><br>
> --<br>
> Benjamin J. Hare<br>
> Professional Web Development Services<br>
> ABN: 22-48-55-71-887<br>
> Phone: <a href="tel:%2B61-415-607-197" value="+61415607197">+61-415-607-197</a><br>
> Web: <a href="http://www.benhare.com" target="_blank">http://www.benhare.com</a><br>
> Email: <a href="mailto:ben@benhare.com">ben@benhare.com</a><br>
<br>
<br>
<br>
--<br>
Benjamin J. Hare<br>
Professional Web Development Services<br>
ABN: 22-48-55-71-887<br>
Phone: <a href="tel:%2B61-415-607-197" value="+61415607197">+61-415-607-197</a><br>
Web: <a href="http://www.benhare.com" target="_blank">http://www.benhare.com</a><br>
Email: <a href="mailto:ben@benhare.com">ben@benhare.com</a><br>
</div></div></blockquote></div><br></div>