I'm installing kubuntu 7.04 Feisty Fawn, and am having trouble in getting apache2 to start when the system boots.
The symptoms are as follows (all commands entered as root):
upon reboot: apache2 is not running
/etc/init.d apache2 start
/* apache2 is still not running. */
apache2ctl start
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
/* apache2 up and running */
I've checked that there is a symlink to /etc/init.d/apache2 in /etc/rc0.d:
lrwxrwxrwx 1 root root 17 2007-07-27 18:31 K09apache2 -> ../init.d/apache2
___________________________________________________________
Some background which may be relevant:
___________________________________________________________
Before becoming aware of the problem, I had installed several applications without reboot, using adept_manager:
(1) updated all new packages
(2) firefox
(3) mysql-server
(4) mysql-admin
(5) apache2
*** apache2 appeared to be working,
http://localhost showed the apache2 install page, and the files were found in /var/www
(6) gallery2
*** I noticed that php5 appeared to have been installed automatically, due to dependencies?
(7) modified /etc/network/interfaces, to get a fixed ip address:
*** replaced "iface eth0 inet dhcp" with
*** iface eth0 inet static
*** address 192.168.0.32
*** netmask 255.255.255.0
*** gateway 192.168.0.1
(8) did a reboot, comfirmed that the ip-address was set correctly, and that I could access the internet
(9) made a symlink to the gallery2 directory in /var/www, navigated to
http://localhost/gallery2
*** At this point, I noticed that something was wrong.
*** php files were not recognized properly, firefox wanted to download them.
*** After a while I discovered that apache2 was NOT running, however apache was.
(10) uninstalled apache
(11) apt-get install apache2
*** Now, apache2 was running, and I'm 99.9% certain that /etc/init.d/apache2 start|stop|restart worked
(12) Proceeded with installation of gallery2, without any problems, except that three modules needed configuring.
*** o The Dcraw module was installed, but needs configuration to be activated
*** o The URL Rewrite module was installed, but needs configuration to be activated
*** o The Gd module was installed, but needs configuration to be activated
(13) installed mediawiki1.7, symlinked to the install directory, and confirmed that the setup page seemed to be working, but did not proceed with the setup.
(14) Tried to fix the three gallery2 modules, installed dcraw, configured it, appeared to be ok.
(15) attempted to fix the url rewrite problem...
*** The message was: For whatever reason, Gallery did not detect a working mod_rewrite setup.
(15 cont) ...by symlinking from /etc/apache2/mods-enabled to /etc/apache2/mods-available/rewrite.load
(16) /etc/init.d/apache2 restart
This is when I discovered the problem described initially.
/etc/init.d/apache2 start|stop|restart did not start apache2
Rebooting did not fix the problem.
However, apache2 -k start and apache2ctl start worked.
___________________________________________________________
I'd be very grateful for assistance on how to proceed.