How to set Apache start at boot time on Linux

March 29, 2012 at 12:55 am Leave a comment


If you feel lazy to restart the httpd service everytime your machine boot up, just do following simple steps:

  1. Enter below command to show the runlevel information of the httpd service
    chkconfig –list | grep httpd
  2. You get something like this:
    httpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
  3. Then, set up httpd to start at boot time.
    chkconfig httpd on
  4. Now to can verify by reviewing the runlevel information of the httpd service
    chkconfig –list | grep httpd
  5. Output should be.
    httpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
  6. You’ve done !

If you just want to enable the servive for a certain runlevel (e.g. graphic mode or non graphic mode), you can use below command instead where 3 indicates the runlevel.

  • chkconfig –level 3 httpd

This method can be applied to enable/disable other services at boot time. So, to list available services on your machine, run the command:

  • chkconfig –list

Thanks http://www.linuxforums.org for this simple solution.

About these ads

Entry filed under: Linux, Web Programming. Tags: , , , , .

AMD Opens Up Heterogeneous Computing OpenMP Announces Improvements for Multicore and Accelerators

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Recent Posts

/openmp AMD app fixing dead pixel iphone C++ cmd program CPU C sharp dead pixels directory download ibm synthetic data generator Dynamic Dynamic Memory Allocation Edit Environment Variables in Windows Environment Variables error lnk2019: unresolved external symbol _getprocessmemoryinfo@12 referenced in function error lnk2019: unresolved external symbol _ getprocessmemoryinfo@12 referenced in function "void __cdecl printmemoryinfo(unsigned long example code Fixing Dead Pixels and Gray Lines on the iPhone Screen Fixing Dead Pixels on the iPhone Screen Fixing Gray Lines on the iPhone Screen Fix iPhone getprocessmemoryinfo GPU Gray Line iPhone Screen gray lines gray pixels green pixels GUI how to "new" a two-dimension array in C++ how to use ibm quest synthetic data generator ibm data generator ibm quest data generator ibm quest data generator exe ibm quest data mining project ibm quest market-basket synthetic data generator ibm quest market basket market-basket synthetic data generator ibm quest synthetic data generator ibm quest synthetic data generator linux ibm synthetic data generator ibm synthetic generator Intel iPhone Iphone 3G iPhone 3GS iPhone 4 iphone gray lines on startup iphone pixel damage iPhone Screen iPhone screen damage Linux market-basket synthetic data generator Memory Allocation Multicore multithread multi thread multi threaded multithreading mysql extract data into file new OpenCL Path processor quest data generator quest synthetic data generator R SAS Set Environment Variables Set Environment Variables in Windows souce code source code stuck pixels system file two dimension array Windows 7 Windows Vista

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: