LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices

Reply
 
Search this Thread
Old 01-11-2013, 10:00 AM   #1
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Suse, Mint
Posts: 93

Rep: Reputation: Disabled
Start apache


Were do you put the start up command to start apache when
I boot up?

At present I have to boot from a terminal when I
start up my laptop.
 
Old 01-11-2013, 02:28 PM   #2
netnix99
Member
 
Registered: Jun 2011
Distribution: redhat, CentOS, OpenBSD
Posts: 217

Rep: Reputation: 62
bscho,

It's just a few steps:

1. make a symbolic link from /usr/local/apache/bin/apachectl to /etc/rc.d/init./httpd
2. make a symbolic link from /etc/rc.d/init.d/httpd to /etc/rc.d/rc3.d/S30httpd
3. make a symbolic link from /etc/rc.d/init.d/httpd to /etc/rc.d/rc5.d/S30httpd
4. make a symbolic link from /etc/rc.d/init.d/httpd to /etc/rc.d/rc3.d/K04httpd
5. make a symbolic link from /etc/rc.d/init.d/httpd to /etc/rc.d/rc5.d/K04httpd

If you need it, the command is
Code:
 ln -s /usr/local/apache/bin/apachectl /etc/rc.d/init./httpd
The first line creates a link to apachectl, the next two start it on boot, the next two ensure it shuts down properly.

**This is assuming you have compiled Apache from source

HTH

Last edited by netnix99; 01-11-2013 at 02:42 PM.
 
Old 01-12-2013, 05:25 AM   #3
m1qe
LQ Newbie
 
Registered: Jan 2006
Location: Sweden
Distribution: SLES, Opensuse, CentOS
Posts: 21

Rep: Reputation: 13
You can run the following command as root:
Code:
chkconfig apache2 on
Apache will then start automatic in runlevel 3 and 5.

Good luck!
 
Old 01-12-2013, 01:12 PM   #4
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Suse, Mint
Posts: 93

Original Poster
Rep: Reputation: Disabled
start apache

Quote:
Originally Posted by m1qe View Post
You can run the following command as root:
Code:
chkconfig apache2 on
Apache will then start automatic in runlevel 3 and 5.

Good luck!
Thanks I will try that.

Do you know the local page that you can put these commands on? There is a file rclocal you can put such commands on.
 
Old 01-12-2013, 06:36 PM   #5
netnix99
Member
 
Registered: Jun 2011
Distribution: redhat, CentOS, OpenBSD
Posts: 217

Rep: Reputation: 62
I think the file you are referring to is actually /etc/rc.local

You could start apache from there, just remember to also include the argument 'start' to kick it off.

add the line /usr/local/apache2/bin/apachectl start

to /etc/rc.local
 
1 members found this post helpful.
Old 01-13-2013, 12:06 PM   #6
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Suse, Mint
Posts: 93

Original Poster
Rep: Reputation: Disabled
start apache

Quote:
Originally Posted by netnix99 View Post
I think the file you are referring to is actually /etc/rc.local

You could start apache from there, just remember to also include the argument 'start' to kick it off.

add the line /usr/local/apache2/bin/apachectl start

to /etc/rc.local
Yes that it is. Thank you for your help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache Webserver on Slackware - Failed to Start Apache - 'no listening sockets .." CCTVGuru Linux - Server 4 10-11-2009 01:14 AM
I can start apache ridge321 Linux - Software 3 02-20-2005 01:23 PM
Failed to start apache : Apache does not appear to be running : number11 Slackware 9 02-11-2005 09:51 AM
Apache will not start. MercuryRaz0r Linux - Networking 7 11-04-2004 08:10 AM
can't get SSLl working on Apache. Apache won't start bentman78 Linux - Software 1 08-10-2003 06:17 PM


All times are GMT -5. The time now is 03:38 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration