Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Installing a web server.

  • 22-06-2011 01:18PM
    #1
    Registered Users, Registered Users 2 Posts: 3,745 ✭✭✭


    How would you install a web server on fedora/centos/rhel?

    For me it has always been rpm -ivh <insert httpd rpm name here>

    Or more conveniently to install any dependencies once a repo is available:

    yum install httpd

    I was asked in RHCSA exam recently to install and configure a webserver, but I couldn't find, httpd, apache, apache2 rpm's in the provided repo.

    What have I missed here?

    Even on my fedora laptop:

    #yum search httpd

    httpd.i686 : Apache HTTP Server


Comments

  • Registered Users, Registered Users 2 Posts: 2,906 ✭✭✭cian1500ww


    There are alternatives to Apache such as lighttpd and nginx. Did you check the repo's for those??


  • Registered Users, Registered Users 2 Posts: 3,745 ✭✭✭laugh


    Hmmm lighttpd should have shown up in my yum search, I didn't look for nginx.


  • Registered Users, Registered Users 2 Posts: 3,745 ✭✭✭laugh


    Ah ok, I was confident I knew how to install it but ultimately I couldn't find httpd or vsftpd in the repo.


  • Closed Accounts Posts: 18,966 ✭✭✭✭syklops


    laugh wrote: »
    Ah ok, I was confident I knew how to install it but ultimately I couldn't find httpd or vsftpd in the repo.

    I also had a similar problem in the RHCSA, and the reason was that I had not configured the yum repo correctly and so when it asked me to install the http server, obviously, I couldn't.

    As of, I believe it was RHEL 5, yum superseded RPM as the standard(and recommended) package management tool for RHEL, so thats what you need to be using, not rpm.

    In my case, I did not realise that there would be no yum repo file which I could simply edit and put in the address, instead, I needed to create the file and I did not know the syntax, and I spent ages trying to find the syntax in the man pages, and I wasted a lot of time. Then I gave up and went to do other tasks, and realised almost every other task required yum to be working, so I had to go back to it. Needless to say, I didnt pass. If you didnt find httpd when you did yum search httpd in the exam, it would suggest to me that your yum was not configured correctly.


Advertisement