+ Post New Thread
Results 1 to 6 of 6
*nix Thread, auto starting lampp service with password in Technical; hi when we reboot our ubuntu server we have to manually run the following to start the web service. sudo ...
  1. #1
    ful56_uk's Avatar
    Join Date
    Mar 2008
    Location
    Essex
    Posts
    423
    Thank Post
    91
    Thanked 18 Times in 17 Posts
    Rep Power
    12

    auto starting lampp service with password

    hi

    when we reboot our ubuntu server we have to manually run the following to start the web service.

    sudo /opt/lampp/lampp start

    followed by the password.

    Can someone tell me how to get this to start the service with the password to run the service as ubuntu boots up like you can with a windows service.

    Thanks

    Mark

  2. IDG Tech News

  3. #2

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,855
    Thank Post
    412
    Thanked 774 Times in 647 Posts
    Rep Power
    168
    Edit the file /etc/init.d/rc.local and append the line:

    Code:
    /opt/lampp/lampp start
    You need to edit it as root, if that doesn't mean anything to you try sudo gedit /etc/init.d/rc.local

  4. #3
    Arcath's Avatar
    Join Date
    Feb 2009
    Location
    Lancashire
    Posts
    784
    Thank Post
    65
    Thanked 78 Times in 70 Posts
    Rep Power
    26
    you cant get an action to run in "sudo" without a password.

    i assume lampp is xmapp for linux? because apache/mysql can be set as system services if they are installed manually.

    its been a while scince i used ubuntu for anything but doesnt it have an init script? which has a list of things to be run as it enters each run level.

  5. #4

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,855
    Thank Post
    412
    Thanked 774 Times in 647 Posts
    Rep Power
    168
    Quote Originally Posted by Arcath View Post
    you cant get an action to run in "sudo" without a password.
    /etc/init.d/rc.local is run during init as root, so this is irrelevant.

    i assume lampp is xmapp for linux? because apache/mysql can be set as system services if they are installed manually.
    The point of lampp is that you don't have to install them manually, everything gets put in this black box that you don't have to worry about. I'm not advocating this approach, but for simplicity and an easy intro it's an acceptable one.

    its been a while scince i used ubuntu for anything but doesnt it have an init script? which has a list of things to be run as it enters each run level.
    /opt/lampp/lampp is the init script, and that's why you call it from rc.local in the init system.

  6. #5

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,284
    Blog Entries
    2
    Thank Post
    598
    Thanked 879 Times in 617 Posts
    Rep Power
    287
    Quote Originally Posted by Arcath View Post
    you cant get an action to run in "sudo" without a password.
    Technically you should be able to, by editing /etc/sudoers to something like:

    Code:
    jsmith ALL=NOPASSWD:/opt/lampp/lampp
    Meaning jsmith can run /opt/lampp/lampp without having to enter a password.

  7. #6

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,855
    Thank Post
    412
    Thanked 774 Times in 647 Posts
    Rep Power
    168
    Quote Originally Posted by webman View Post
    Technically you should be able to, by editing /etc/sudoers to something like:
    True, but I didn't mention it because it's not a recommended thing, certainly not if you're unfamiliar with the consequences.

SHARE:
+ Post New Thread

Similar Threads

  1. Self Service Password Reset
    By plexer in forum EduGeek Self Service Password Reset
    Replies: 271
    Last Post: 15th November 2011, 01:40 PM
  2. Service Pack 3 Password Problem
    By SSFC in forum Windows
    Replies: 14
    Last Post: 30th April 2009, 04:10 PM
  3. Replies: 3
    Last Post: 14th August 2008, 12:05 PM
  4. Starting TCP/IP on XP
    By MrsGrinch in forum Network and Classroom Management
    Replies: 3
    Last Post: 26th March 2008, 05:24 PM
  5. RIS Service (BINLSVC) stuck at 'starting'
    By indiegirl in forum Windows
    Replies: 8
    Last Post: 7th November 2005, 04:46 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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