Find the answer to your Linux question:
Results 1 to 10 of 10
Hi, I want to setup a web server on my Mandriva machine. I wanted to use either Apache or lighttpd but I don't know much about Linux and don't know ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2006
    Posts
    14

    Apache or lighttpd?


    Hi,
    I want to setup a web server on my Mandriva machine. I wanted to use either Apache or lighttpd but I don't know much about Linux and don't know which one to use. Which one is easier to install and setup? Are either of these pre-installed with the latest Mandriva?

    Cheers

  2. #2
    Linux User Giles's Avatar
    Join Date
    May 2005
    Location
    Gloucestershire and Cambridge, UK
    Posts
    283
    Personally I'd go with apache, simply because it's so widely used, so you'll find many more programs and tutorials written for it. I don't know which (if either) is technologically superior, but with things like this it's often easiest to go with the majority.

    Hope this helps
    Toodle-oo
    Giles
    "Our greatest fear is not that we are powerless. Our greatest fear is Microsoft"
    Registered linux user #391027

  3. #3
    Just Joined!
    Join Date
    Jun 2006
    Posts
    14
    Thanks for the reply. Do you know of a simple installation guide as I havent installed anything on Linux before as i'm used to XP. I don't get what I have to do after I've downloaded the files... (infact I dont even know which files to download... )

    Cheers

  4. #4
    Linux User Giles's Avatar
    Join Date
    May 2005
    Location
    Gloucestershire and Cambridge, UK
    Posts
    283
    Rather than downloading any files from the apache website, it's probably easier in Mandriva to go to MCC (Mandriva Control Centre - usually the "configure my computer" entry in the program menu), then "software management" -> "look at installable software and install software packages". Then search for and install apache (simply apache, not apache-base or apache-devel or any similar thing), and more or less all the installation process is done for you. You'll still need to look into configuring it, I imagine, but the httpd.conf file (which is what you'll need to change) is fairly good at explaining itself, and there's lots of howtos and other documentation about.

    Giles
    "Our greatest fear is not that we are powerless. Our greatest fear is Microsoft"
    Registered linux user #391027

  5. #5
    Just Joined!
    Join Date
    Jun 2006
    Posts
    14
    Ive tried searching for "apache" and it came up with about 50 results. There doesn't seem to be a file simply called "apache" (I was searching in "all packages, alphabetical") I then tried searching in "mandriva linux choices." I selected "server" then "web/ftp" and selected all the files but these two could not be selected and installed:

    "apache-mod_ssl-2.0.54-6.1.20060mdk"

    and

    "apache-mpm-prefork-2.0.54-13mdk"

    What shall I do as the installation cannot complete without these two files?

    Cheers

    p.s. I'm logged in as root

  6. #6
    Just Joined!
    Join Date
    Jun 2006
    Posts
    14
    please help...

  7. #7
    Linux User Giles's Avatar
    Join Date
    May 2005
    Location
    Gloucestershire and Cambridge, UK
    Posts
    283
    I'm somewhat surprised that you have to install mod_ssl and mpm_prefork - but presumably you can just install those in the same way? Sorry if I've misunderstood the problem.

    Toodle-oo
    Giles
    "Our greatest fear is not that we are powerless. Our greatest fear is Microsoft"
    Registered linux user #391027

  8. #8
    Just Joined!
    Join Date
    Jun 2006
    Posts
    14
    hmmm well im not sure how i install them. Is there any other way of installing apache?

  9. #9
    Linux User Giles's Avatar
    Join Date
    May 2005
    Location
    Gloucestershire and Cambridge, UK
    Posts
    283
    There is, yes, but it can be a little more complicated.

    Go to the apache download page and download the version you want (unless you've got a particular reason for using an earlier version I suggest using 2.2 (currently at 2.2.3)). So you'd right click > save as on
    "Unix Source: httpd-2.2.3.tar.gz". Once you've downloaded that, go to the directory you saved it in and run
    Code:
    tar -xvzf httpd-2.2.3.tar.gz
    cd httpd-2.2.3
    less INSTALL
    the final command lets you read the contents of the INSTALL file, which should explain everything else.

    HTH
    Toodle-oo
    Giles
    "Our greatest fear is not that we are powerless. Our greatest fear is Microsoft"
    Registered linux user #391027

  10. #10
    Just Joined!
    Join Date
    Jun 2006
    Posts
    14
    I keep getting the error " configure: error: no acceptable C compiler found in $path" when i type in the command "./configure --prefix=/usr/local/apache2"

    I assume this means that it cannot find the "C compiler" in the path which I specified. Am I specifying the wrong path or is this error caused due to another problem?

    The user's I have on my computer are: root, rich, server, pom_house

    I have the apache downloaded to "/root/desktop"

    Please help

    (thanks Giles for your help so far )

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •