Results 1 to 4 of 4

Thread: /opt/web/bin/apachectl start without login as root

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2007
    Posts
    26

    /opt/web/bin/apachectl start without login as root

    /opt/web/bin/apachectl start
    without login as root or without sudo

    on kubuntu 7.04
    thank you.

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: /opt/web/bin/apachectl start without login as root

    Do you have a question?

  3. #3
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,248

    Re: /opt/web/bin/apachectl start without login as root

    I think the question is how to autostart apachectl.

    The following should work:

    1. copy apachectl from apache's /bin directory to /etc/init.d
    2. sudo chmod +x /etc/init.d/apachectl
    3. sudo update-rc.d apachectl defaults

  4. #4
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: /opt/web/bin/apachectl start without login as root

    If you want apache to run as a non root user then you should change the port is listens on to a number greater than 1024 and remove the user and group configuration options from httpd.conf.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

Posting Permissions

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



Click Here to Expand Forum to Full Width