CentOS 5 and Auto Starting Apache httpd and Samba
Recently I installed lampp on a CentOS 5 development server. My personal computer is Windows 7 so I also installed Samba so that I can directly access the files by mapping the network drive. You don’t really care about all that though. Since I like to do things with as few steps as possible it really annoyed me that I had to start Apache and Samba every time I started the server. So I have it now setup to auto start both Apache and Samba. It was easy to do.
Setting Apache To Start on Boot
Step 1 – Check to make sure the httpd(Apache) is installed
This looks for the httpd service in the list of services running on your machine. If Apache is installed properly then you should see
Step 2 – Set httpd to auto start
This is a pretty easy straight forward command that sets Apache to start on boot
Step 3 – Confirm the Apache is set to auto-start
Just to make sure that every took, lets check again to see that httpd is set to auto-start
and you should see something like:
Setting Samba To Start on Boot
The steps for this are identical except you just need to change the service name:
- ۹۱/۰۹/۲۲