Scoop -- the swiss army chainsaw of content management
Front Page · Everything · News · Code · Help! · Wishlist · Project · Scoop Sites · Dev Notes · Latest CVS changes · Development Activities
mini-HOWTO install scoop on a server without root access Docs
By scoopdogs , Section Help! []
Posted on Fri Sep 20, 2002 at 12:00:00 PM PST
I've noticed a few postings where people have asked if you can install
scoop on a machine without root access. The answer is typically "No",
which is not always correct: I have managed to set up scoop
in a machine where I do not have root access after tweaking some
of the code. Following is a set of my notes on how to accomplish this.
They are not particularily well organized, but if you have some
familiarity with Perl, Apache, and MySQL, you should be able to
cobble something together.

What is required:

1. A web server with Apache installed w/ mod_perl
2. A permission scheme that allows full directive control
   from the directory's .htaccess file
3. A database (I used MySQL)
4. The ability to install perl modules somewhere

My setup:

I use carpediem-it.co.uk for my ISP: they allow shell access,
MySQL, and have apache configured with mod_ssl. While shell
access might not be essential, I can't really imagine debugging
the issues with getting the perl modules installed without having
shell access. Note that at no point in the installation process
did I need to become root or restart apache or mysql.

The problems:

I encountered the following problems when getting the installation
going.

1. The install script requires root for all sorts of things. You
   will need to do a manual installation.
2. Scoop.pm expects to be able to connect to MySQL over a port. In
   my case, the MySQL databases do not listen on the ports, by
   can only be accessed though a socket file. Some hacking of the
   Scoop.pm file fixed this.
3. .htaccess files do not allow directives for subdirectories. This
   means that images, which the default installation puts in a subdirectory
   of the main directory, are processed by the scoop handler. The only
   way around this was to put the scoop directory and the images in
   separate directories. In my case, the directory for pages was:
   /home/bob/web/, and I wound up putting the scoop .htaccess file
   in /home/bob/web/scoop/, the images in /home/bob/web/images/,
   and then putting a little .php file at /home/bob/web/index.php
   that would just redirect people to the /scoop/ subdirectory
   (so that people that hit www.sitename.com would be redirected
   to the scoop handler).

Recommendations:

1. Given that it is possible to install without root, it would be nice
   if the installer gave this option. It could even run through some
   self-tests to make sure that the apache configuration allows the
   required level of control from the .htaccess file.
2. Make conncting over the mysql socket an option rather than a hack.
3. Fix the image problem by having scoop check to see if the request
   is for an image type, and return the image via the handler. Yes, this
   would be slow.

Editing Scoop.pm:

    my $dbname      = $self->CONFIG->{db_name};
    my $username    = $self->CONFIG->{db_user};
    my $password    = $self->CONFIG->{db_pass};
    my $dbhost      = $self->CONFIG->{db_host};

    # Set the DB connection. Should use persistent connections via Apache::DBI
    # my $data_source = "DBI:mysql:database=$dbname:host=$dbhost";
    # =========================================
    # For a shared machine, we often only access
    # MySQL though a socket file, rather than a
    # port.
    # =========================================
    my $data_source = "DBI:mysql:database=$dbname:mysql_socket=$dbhost";
    my $dbh = DBI->connect($data_source, $username, $password) ||
        warn "  (Scoop::_set_dbh) Can't connect to database! $@\n";

Sample .htaccess file:

<perl>
  use lib qw( /PATH/TO/WRITEABLE/DIRECTORY/perl/lib );
  use lib qw( /PATH/TO/WRITEABLE/DIRECTORY/scoop/scoop/lib );
</perl>

SetHandler perl-script
PerlHandler Scoop::ApacheHandler

##################################
# Edit these variables to match your
# local setup. Note that this is now the
# *only* place you need to enter this
# stuff.
##################################

# Pick which Database you're using
# The only scoop DB supported is mySQL
PerlSetVar DBType mySQL
# PerlSetVar DBType Oracle
# PerlSetVar DBType postgres
# PerlSetVar DBType mSQL
# PerlSetVar DBType Sybase

##  One MySQL specific Thing:
# Set the version of mysql you're using
# this is here to preserve compatibility with
# 3.22 and 3.23. Should be one of these two values.
PerlSetVar mysql_version 3.23
############################

##  Some Oracle Specific stuff:
# Standard ORACLE_HOME Env
# PerlSetVar ORACLE_HOME /oraexe/app/oracle/product/8.1.5
# Schema information for Oracle
# if you're going to be using a different login and no aliasing
# if you're not sure that you need this, ask your DBA
# PerlSetVar Schema scoop
############################

# Database Config:
# The name of your scoop Database
# will become 'TWO_TASK' ENV if Oracle
PerlSetVar db_name SITENAME

# The host where mySQL is running
PerlSetVar db_host /PATH/TO/MYSQL/SOCKET/FILE

# The user to connect as
PerlSetVar db_user SITENAME

# The user's database password
PerlSetVar db_pass abraxas

# Set below to your host name if you're
# using a two-server proxy type system.
# It will let the mod_perl server know what
# name it's supposed to go by. Most will just leave
# this alone.
#PerlSetVar mailname www.mysite.com
PerlSetVar mailname SITENAME.com

# This is the path to the VERSION file in scoop, will be
# used with op=stats eventually
<perl>
my $vfile = '/PATH/TO/WRITEABLE/DIRECTORY/scoop/scoop/VERSION';
my $v = do $vfile;
push(@{ $Location{'__URL_PATH__'}->{PerlSetVar} },
[ scoop_version  => $v->{Version}  ],
[ scoop_date     => $v->{Date}     ],
[ scoop_revision => $v->{Revision} ],
[ scoop_author   => $v->{Author}   ],
[ scoop_state    => $v->{State}    ]
);
</perl>

# Cookie config-- put the host name for cookie targeting here.
# Note that it *must* have at least 2 dots-- so to send
# cookies to any host in 'foo.org', enter ".foo.org"
# The "path" part of the cookie will be done automagically
# using the "rootdir" var (you DID set that, right? Read INSTALL)
PerlSetVar cookie_host .SITENAME.com

# Mail::Sendmail Config-- enter your SMTP host here
PerlSetVar SMTP localhost

# Enter a "site id" below-- Any string is fine, just
# make sure it's unique for this partuclar site.
PerlSetVar site_id SITENAME.com

# Enter a site key below. This is used as the key for
# some Blowfish encrypted form variables, which are
# used to prevent IP spoofing. It can be as long as you
# like, and needs to be as unguessable as possible.
# DO NOT USE AN OBVIOUS VALUE! A bunch of quasi-random
# characters will do.
# ex: mmDfhbT4837%jQQaamOF0)(#??/Q
PerlSetVar site_key HUfef9ye78&*(%&)ewfhiip897

# You can now add mirrors of your images, distributed
# geographically. Make sure that the "value"
# part of the following has quotes around it. Otherwise,
# it works like a hash. Make the key a descriptive word,
# and the value the *full URL* to the images/ directory.
# Separate servers with a comma, and make sure to escape newlines
# with a  backslash. Example:
#PerlSetVar image_mirrors "Australia => http://images.au.mysite.org,\
#                          UK         => http://images.uk.mysite.org"

# This should be the full path the the startup.pl file in your scoop install
PerlRequire /PATH/TO/WRITEABLE/DIRECTORY/scoop/scoop/etc/startup.pl

< Can users change their own stories? | Viewing stories based on popularity >

Menu
· create account
· faq
· search
· report bugs
· Scoop Administrators Guide
· Scoop Box Exchange

Login
Make a new account
Username:
Password:

Related Links
· Scoop
· More on Docs
· Also by scoopdogs

Story Views
  193 Scoop users have viewed this story.

Display: Sort:
mini-HOWTO install scoop on a server without root access | 22 comments (22 topical, 0 hidden)
Can someone edit this? (none / 0) (#1)
by scoopdogs on Sat Sep 21, 2002 at 04:40:39 PM PST

I put the whole thing in the summary ... can someone put just the first few lines in the summary, and the rest of the body in the article body? Sorry.



north face fleece (none / 0) (#5)
by inur on Mon Nov 28, 2011 at 06:37:49 AM PST

you can buy north face fleeceonline,because the fleece is very good and can save you money .you can go to our stores north face on sale. you can buy all kins of north face fleece jackets and our stores have moncler outlet.so if you want buy High quality and affordable moncle .you can go tomoncler outlet online and moncler uk



Requirements Noted! (none / 0) (#6)
by CierraWilliams on Sun Dec 16, 2012 at 05:47:41 PM PST

Thanks for posting the requirements. Will take note of these. Now, I am ready to start essay writing.



compiling from source (none / 0) (#7)
by flash95 on Mon Dec 17, 2012 at 12:40:07 PM PST

If you are compiling from source, most packages have a prefix option that will allow you to set a non-standard install target. That allows you to install stuff in your home directory, including libraries that you can use for other software packages. containers



great (none / 0) (#8)
by kentatas on Sun Dec 23, 2012 at 11:47:38 PM PST

comprar e vender ouro usado will be the same for the scoop and how the server is good.



great (none / 0) (#9)
by kentatas on Thu Dec 27, 2012 at 02:02:37 AM PST

how to install a water softener can be the same for business and how to get this app.



lasagna recipe (none / 0) (#10)
by helen on Sat Jan 05, 2013 at 03:16:25 PM PST

Before you go to the grocery store and spend money on gluten free ingredients for a special recipe, it can be helpful to know just how many other people enjoyed the finished product. After all, many gluten free ingredients may cost more than their gluten-rich versions - therefore, finding five-star gluten free recipe reviews can save you money. If you're tired of wasting precious resources on recipes that just don't please your palate, you can avoid disappointment by consulting recipe reviews before you begin cooking. healthy low carb lasagna



eggplant lasagna (none / 0) (#11)
by helen on Sat Jan 05, 2013 at 03:51:59 PM PST

You find yourself looking for dinner ideas which will include quick recipes that are still healthy? It is easy to find dishes you will want to make over and over again! Everything from quick recipes to get food on the table right away to healthy food recipes which might take a bit more time to prepare is available. eggplant lasagna



HOWTO install scoop on a server without root acces (none / 0) (#12)
by salieri on Sun Jan 13, 2013 at 01:08:49 PM PST

Everybody is talking about something else, so I'll join in. Let's talk about

Seo and

How to improve Seo and about

Backlinking Strategy



website hosting (none / 0) (#13)
by helen on Mon Jan 14, 2013 at 03:39:09 PM PST

Affordable website hosting services didn't exist ten years ago. If you wanted to have a website you had to be prepared to hand over a big chunk of your paycheque and many of the hosting companies had a lot of hidden charges. Times have changed though, and no you can have a website with all the features for the price of a fast food meal each month. website hosting hostgator.com



bla35bla (none / 0) (#14)
by alfredo on Tue Jan 15, 2013 at 02:46:19 PM PST

avec vous en votre temps et énergie à faire l' Fruits vous fournir une gamme d' pour un pour et productifs ! Obtenez votre votre propre numéro rio tournemain et font l' portabilité de Quantité facile! Orange Eau pu peut avoir aucun secret pour vous pour vous personnellement , dans votre cas! Vous souhaitez aimerait pouvoir pour vous de Bouygues ? Obtenez votre votre actuel numéro rio bouygues , code rio orange, code rio virgin ou encore votre rio bandyou ainsi que téléphone un nouveau tour de main! Camions offre donne mobile, fixe, Internet, 3G et avec clés de haute technologie dans les sein à travers France, Orange est aussi peut être entre solutions sur la planète ! Avec a une nouvelle renommée mondiale d'Orange est le sera le tiers mobile plus le DSL Tout d'abord la portabilité opérateur en Les pays européens.



How You Can Benefit From Memory Improvement! (none / 0) (#15)
by rehana1 on Wed Jan 16, 2013 at 09:12:53 AM PST

These days, you probably find that there are more and more things that you have to keep in mind. As a result, you will need to have a good memory. Not everyone has a good memory - most people will tend to forget one thing or another from time to time. wannabeeinstein.com



Nice (none / 0) (#16)
by edongzkisiete on Fri Jan 25, 2013 at 06:23:14 PM PST

You did a nice code on this. Is there any update? Archinect



CarBatteryWorld (none / 0) (#17)
by Miro123 on Wed Jan 30, 2013 at 01:25:09 PM PST

In most car batteries, the red terminal indicates the positive with the sign (+) and the black terminal indicates negative with the sign (-) on the car battery. The car battery is very important, as without it, your car cannot start.  varta battery here  Connect one end of a cable to the positive lead of the dead battery. It measures the drop in voltage when an applied load that is half the battery's CCA (Cold Cranking Amps) rating is used.



CeilingFans (none / 0) (#18)
by DzoniBaba on Thu Feb 07, 2013 at 05:13:50 AM PST

Ceiling fan blades should be evenly weighted and balanced by the manufacturer prior to shipment to avoid wobble. Once your fan is properly installed, you should get years of quiet, hassle free cooling from it every summer, and it should help keep the heat where you want it in the winter. Modern Ceiling Fans http://ceilingfansguide.com/modern-ceiling-fans/ Family rooms or other larger living areas usually require longer blades and generally forty-eight to fifty-six inch blades will do the job in these areas. In many circumstance the average home does not have an attic, only a narrow crawl space between the trusses is provided.



Memory Techniques (none / 0) (#19)
by DzoniBaba on Fri Feb 08, 2013 at 06:35:44 PM PST

To retain a fortified state of memory power, one has to lead a disciplined lifestyle. Eliminating all extraneous thoughts, basically giving your mind some much needed rest. Memory Techniques here This is the same for any other part of the human body and thus improve memory games provide the necessary activity for exercising the brain and improving the memory. Thus, pranayama increases focus and concentration as well as nourishes the brain.



thanks (none / 0) (#21)
by cangbho on Thu Mar 14, 2013 at 05:18:25 AM PST

thanks for your explaination Konsumen cerdas paham perlindungan konsumen always to slidegossip.com Pusatnya Pencarian Profil Artis, Model dan Talent



How (none / 0) (#22)
by cangbho on Thu Mar 14, 2013 at 05:21:00 AM PST

i dont know about this, but your info is nice share like say to all people here Konsumen cerdas paham perlindungan konsumen always to slidegossip.com Pusatnya Pencarian Profil Artis, Model dan Talent



homelite chainsaw (none / 0) (#23)
by DzoniBaba on Thu Mar 21, 2013 at 05:15:42 PM PST

You must learn how to use a chainsaw sharpener or file to keep the chain in peak condition, before you use the chainsaw. Many professionals also recommend the use of a suitable resin solvent to help maintain the life and performance of the chain. homelite chainsaw xl It was probably inevitable that eventually the wood-cutting speed, power and control of the chainsaw would be harnessed to sculptural ends. Avoid sawing with the tip of the chain and bar because this is where kickback typically occurs.



MuratCan (none / 0) (#24)
by MuratCan on Tue Apr 23, 2013 at 04:15:49 PM PST

Kameralı ChatChatChat OdalarıSohbet Mynet | Mynet Sohbet



Really nice article you have here! (none / 0) (#25)
by thewidi on Sat May 04, 2013 at 07:09:35 AM PST

magnificent publish, very informative. I'm wondering why the opposite experts of this sector do not realize this. You should continue your writing. I am sure, you have a huge readers' base already! judi bola



mini-HOWTO install scoop on a server without root access | 22 comments (22 topical, 0 hidden)
Display: Sort:

Hosted by ScoopHost.com Powered by Scoop
All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest © 1999 The Management

create account | faq | search