Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12
i am trying to install httpd-2.0.54.tar.gz on mandrake linux 10.1 and its giving me problems i did this tar -zxvf httpd-2.0.53.tar.gz cd httpd-2.0.53 ./configure --enable-rewrite --enable-cgi make make install cd ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! nimwa2's Avatar
    Join Date
    Aug 2005
    Posts
    95

    apache


    i am trying to install httpd-2.0.54.tar.gz on mandrake linux 10.1 and its giving me problems i did this

    tar -zxvf httpd-2.0.53.tar.gz
    cd httpd-2.0.53
    ./configure --enable-rewrite --enable-cgi
    make
    make install
    cd ..

    when i trype make it says

    [root@localhost httpd-2.0.54]# make
    make: *** No targets specified and no makefile found. Stop.
    [root@localhost httpd-2.0.54]#

  2. #2
    Linux Newbie
    Join Date
    Aug 2005
    Posts
    214
    This maybe because of ./configure either failed to create required scripts, or they are located somewhere else (I doubt in second option though). Did ./configure script complete successfully?

  3. #3
    Just Joined! nimwa2's Avatar
    Join Date
    Aug 2005
    Posts
    95
    no i dont think so.. this is what it said.. imma huge noob so im not sure what its doing, basicly i just want a webserver.. im using mandrake 10.1

    [root@localhost httpd-2.0.54]# ./configure --enable-rewrite --enable-cgi
    checking for chosen layout... Apache
    checking for working mkdir -p... yes
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking target system type... i686-pc-linux-gnu

    Configuring Apache Portable Runtime library ...

    checking for APR... reconfig
    configuring package in srclib/apr now
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking target system type... i686-pc-linux-gnu
    Configuring APR library
    Platform: i686-pc-linux-gnu
    checking for working mkdir -p... yes
    APR Version: 0.9.6
    checking for chosen layout... apr
    checking for gcc... no
    checking for cc... no
    checking for cc... no
    checking for cl... no
    configure: error: no acceptable C compiler found in $PATH
    See `config.log' for more details.
    configure failed for srclib/apr
    [root@localhost httpd-2.0.54]#

  4. #4
    Just Joined! nimwa2's Avatar
    Join Date
    Aug 2005
    Posts
    95
    well i installed something called gcc from the mandrake cd and it seems to have compiled and installed or whatever it does because it spits out a whole bunch of text at each step and i didnt get any errors.. i type

    /etc/rc.d/init.d/httpd start

    ps aux|grep httpd

    and then it spits out a bunch of text and the webserver is runing now?? how do i assign it to a folder so i can write the link at lets say work and download files from that folder?

  5. #5
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    in your httpd.conf file it tells where your doc root is, that is where your files are going to be stored. you could probably just do a file search to find it.

    this is the best step by step guide I have found
    http://www.devside.net/web/server/linux

  6. #6
    Just Joined! nimwa2's Avatar
    Join Date
    Aug 2005
    Posts
    95
    is it the one called httpd??

    http://img113.imageshack.us/img113/562/crap16wf.jpg

    because when i open and read it i cant really see where i should make the changes..

  7. #7
    Linux Newbie
    Join Date
    Aug 2005
    Posts
    214
    gcc is gnu c/c++ compiler. You need a compiler to compile certain software from sources.

    Normally you should be able to view the page http://127.0.0.1 If Apache welcome page shows up then your installation was successfull and the webserver is running.

    httpd.conf - is the configuration file located in "conf" folder under your web folder. If you ran "./configure --with-prefix=/path/to/www/folder" then look for config file in "/path/to/www/folder/conf/httpd.conf", otherwise if you just run "./configure", by default it should be put in /usr/local/apache/conf/httpd.conf.

    Locate the line "DocumentRoot" in that file. Value for that option is the path to your default web folder. You can either replace the contents of that folder with your web content, or create subfolder (in this case to view your page refer to http://127.0.0.1/your_subfolder), or change "DocumentRoot" to point to other location.

    You should refer to manuals and tutorials at www.apache.org. Once you tried to do something based on documentation, and by some reason it doesn't work the way it should, post your question on forum.

    See http://httpd.apache.org/docs-2.0/ for details on how to edit httpd.conf file.

    Good luck

  8. #8
    Just Joined! nimwa2's Avatar
    Join Date
    Aug 2005
    Posts
    95
    thanks but when i change documentroot nothing happens it stays on the same path

    # DocumentRoot: The directory out of which you will serve your
    # documents. By default, all requests are taken from this directory, but
    # symbolic links and aliases may be used to point to other locations.
    #
    DocumentRoot "/home/nimwa2"

  9. #9
    Just Joined! nimwa2's Avatar
    Join Date
    Aug 2005
    Posts
    95
    anyone?

  10. #10
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,879
    If you change the config file, you have to restart the apache server

    service httpd restart

    (or, if your system doesn't have the 'service' command)

    /etc/init.d/httpd restart
    Linux user #126863 - see http://linuxcounter.net/

Page 1 of 2 1 2 LastLast

Posting Permissions

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