+ 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
    580
    Thank Post
    113
    Thanked 25 Times in 22 Posts
    Rep Power
    19

    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. #2

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,867
    Thank Post
    412
    Thanked 778 Times in 651 Posts
    Rep Power
    182
    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

  3. #3
    Arcath's Avatar
    Join Date
    Feb 2009
    Location
    Lancashire
    Posts
    982
    Thank Post
    103
    Thanked 117 Times in 102 Posts
    Rep Power
    74
    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.

  4. #4

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,867
    Thank Post
    412
    Thanked 778 Times in 651 Posts
    Rep Power
    182
    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.

  5. #5

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,422
    Thank Post
    645
    Thanked 967 Times in 667 Posts
    Blog Entries
    2
    Rep Power
    328
    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.

  6. #6

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,867
    Thank Post
    412
    Thanked 778 Times in 651 Posts
    Rep Power
    182
    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. Replies: 4
    Last Post: 6th May 2014, 08:25 PM
  2. Self Service Password Reset
    By plexer in forum EduGeek Self Service Password Reset
    Replies: 273
    Last Post: 5th November 2013, 07:51 PM
  3. Service Pack 3 Password Problem
    By SSFC in forum Windows
    Replies: 14
    Last Post: 30th April 2009, 05:10 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
  •