Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6654413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:23:15+00:00 2026-05-26T01:23:15+00:00

I have a mod_perl2 module that writes some files to the working directory. The

  • 0

I have a mod_perl2 module that writes some files to the working directory. The standard working directory of mod_perl2 or Apache2 seems to be “/”. Of course, Apache is not allowed to write files in this directory.

Can anyone tell me how I can change the working directory or the directory mod_perl2 writes to?

I use Apache2 Prefork on SLES 10.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T01:23:15+00:00Added an answer on May 26, 2026 at 1:23 am

    Can you do a perl chdir(script-dir) at the beginning of the script ?

    On a second thought that would defeat the purpose when you try to use in threaded scenario where changing the working directory might break the threads.

    You could try RegistryPrefork module ?

    # httpd.conf
    PerlModule ModPerl::RegistryPrefork
    Alias /perl-run/ /home/httpd/perl/
    <Location /perl-run>
      SetHandler perl-script
      PerlResponseHandler ModPerl::RegistryPrefork
      PerlOptions +ParseHeaders
      Options +ExecCGI
    </Location>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Apache2/mod_perl2 system up and running. I'm using GD to create an
I have some mod_rewrite rewrites that correctly redirect the URLs to a script. From
I have a mod_perl2 based web app that requires a connection to a mysql
My .htaccess file isn't working. I have checked that it is in the root
I have created a simple mod_perl module, which writes a 0-terminated string to the
I have a mod_perl-enable Apache running native (handlers, not Apache::Registry or similar) mod_perl code.
My company develop web apps using combination of mod_perl, axkit and apache. We have
Say I don't have mod_deflate compiled into apache, and I don't feel like recompiling
I have a mod_rewrite rule that will send any subdomain requests to a php
I have Apache with mod_rewrite, and whenever I enter a URI with an accented

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.