apache won't start on boot on Mint Katya 11

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.
Locked
mareizio

apache won't start on boot on Mint Katya 11

Post by mareizio »

Hello,

my apache won't start on boot; it starts if I exec a

Code: Select all

sudo service apache2 start
, but it doesn't start on boot.

Even stranger,

Code: Select all

chkconfig apache2
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

Re: apache won't start on boot on Mint Katya 11

Post by linuxuser159 »

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

Re: apache won't start on boot on Mint Katya 11

Post by Metropolis »

I do not see the "Services" option in my control center
stephaneeybert

Re: apache won't start on boot on Mint Katya 11

Post by stephaneeybert »

I think it is now called "Startup Applications".
stephaneeybert

Re: apache won't start on boot on Mint Katya 11

Post by stephaneeybert »

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

Re: apache won't start on boot on Mint Katya 11

Post by stephaneeybert »

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

Re: apache won't start on boot on Mint Katya 11

Post by stephaneeybert »

Note that this was on a Linux Mint 11 Katya.
Locked

Return to “Installation & Boot”