Apache Today: Installation of mod_perl-enabled Apache Without Superuser Privileges | Linux Today

Apache Today: Installation of mod_perl-enabled Apache Without Superuser Privileges

Written By
Web Webster
Web Webster
Jul 14, 2000

[ Thanks to Kevin
Reichard
for this link. ]

“As you have seen from my previous articles, mod_perl-enabled
Apache consists of two main components: Perl modules and Apache
itself. While installing Apache without root privileges is a
very easy task, one should know how to install Perl modules in a
non-systemwide location. In this article I’ll show different ways
to tackle this task.
…I’ll use stas as a username and
/home/stas as a home directory of that user.”

“Since without superuser permissions you aren’t allowed to
install modules into system directories like /usr/lib/perl5, you
need to find out how to install the modules under your home
directory. It’s easy.”

“First you have to decide where to install the modules. The
simplest approach is to simulate the portion of the / file system
relevant to Perl under your home directory. Actually we need only
two directories:

  /home/stas/bin
  /home/stas/lib

We don’t have to create them, since that will be done automatically
when the first module is installed. 99 percent of the files will go
into the lib directory. Occasionally, when some module distribution
comes with Perl scripts, these will go into the bin directory. This
directory will be created if it doesn’t exist.”

Complete
Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.