Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Installing a web server.

  • 22-06-2011 12: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,904 ✭✭✭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