Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

Well, first of all, you're editing the wrong file for Ubuntu. Ubuntu uses a virtual hosts system and you'll want to add the directory section to the file for the virtual host, which will be in the /etc/apache2/sites-available directory. I highly recommend you read the Ubuntu Server Guide on Apache2.

Second is, directory names shouldn't have a trailing slash. Not a big deal, but maybe you would like to see a nice Apache Tutorial to help get the commands right. Also, I'm not sure it matters but I use +ExecCGI rather than ExecCGI.

CGI and mod_perl are very different things. Apache2 on Ubuntu comes with CGI enabled and turned on for /usr/lib/cgi-bin, you can skip all this and just drop your script in that directory.

Setting up mod_perl on Ubuntu isn't difficult but you'll need to install the mod_perl package and then a2enmod it. Search the Ubuntu site, I'm sure they have a guide somewhere.


In reply to Re^3: CGI configuraton by rowdog
in thread CGI configuraton by leslie

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-19 13:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found