Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read
how to get help . Topics in this forum are automatically closed 6 months after creation.
mareizio
Post
by mareizio » Tue Jun 21, 2011 6:04 am
Hello,
my apache won't start on boot; it starts if I exec a
, but it doesn't start on boot.
Even stranger,
returns
apache2 on , so it should be configured to start on boot.
Thank you
Last edited by
LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
linuxuser159
Post
by linuxuser159 » Wed Jun 22, 2011 9:09 am
the first command only starts it for the current session. and the second command only shows the status.
to make it start automatically, click on "services" in menu/systems/adminstration and put a check mark beside apache in the list.
Metropolis
Post
by Metropolis » Tue Sep 20, 2011 9:23 am
I do not see the "Services" option in my control center
stephaneeybert
Post
by stephaneeybert » Mon Oct 17, 2011 2:55 am
I think it is now called "Startup Applications".
stephaneeybert
Post
by stephaneeybert » Mon Oct 17, 2011 3:08 am
I added my custom install of httpd in the list, by clicking on the Add button and filling in the name and command details. But a reboot did not start the httpd deamon.
I tried first with the command:
/home/stephane/programs/install/apache/bin/httpd
and then with the command:
/etc/init.d/httpd
But none of these two started my Apache.
stephaneeybert
Post
by stephaneeybert » Mon Oct 17, 2011 3:32 am
I finally got my httpd script sitting in /etc/init.d/ to start automatically at boot time.
First I added some information in the script itself:
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start httpd at boot time
# Description: Enable httpd provided by daemon.
### END INIT INFO
This is required by the Debian system.
The I removed any soft links to my script with the commands:
rm -f /etc/rc0.d/K80httpd;
rm -f /etc/rc1.d/K80httpd;
rm -f /etc/rc2.d/K80httpd;
rm -f /etc/rc3.d/K80httpd;
rm -f /etc/rc4.d/K80httpd;
rm -f /etc/rc5.d/K80httpd;
rm -f /etc/rc6.d/K80httpd;
rm -f /etc/rc0.d/S80httpd;
rm -f /etc/rc1.d/S80httpd;
rm -f /etc/rc2.d/S80httpd;
rm -f /etc/rc3.d/S80httpd;
rm -f /etc/rc4.d/S80httpd;
rm -f /etc/rc5.d/S80httpd;
rm -f /etc/rc6.d/S80httpd;
And finally I added the soft links with the command:
update-rc.d httpd defaults 80;
And after a reboot my local httpd was up and running.
stephaneeybert
Post
by stephaneeybert » Mon Oct 17, 2011 3:35 am
Note that this was on a Linux Mint 11 Katya.