Ubuntu Networking :: Prevent Apache2 Server From Starting At Boot?
Nov 18, 2010
One of my ubuntu 10.04 boxes starts apache2 server automatically at boot. I know from the output of the command:
sudo /etc/init.d/apache2 status
I can't remember even setting that up, and I don't think it does so by default, since my other box in fact does not even have apache2 server installed. I can stop the server once I login, but is there a way to stop it from automatically starting the server, or even better, completely uninstall the daemon. I tried
sudo apt-get remove apache2
but that does not work. I guess the daemon is part of some bigger package.
Starting web server: apache2[Wed Dec 09 15:36:40 2009] [warn] NameVirtualHost XX.XX.XX.XXX:80 has no VirtualHosts(99)Cannot assign requested address: make_sock: could not bind to address 18.104.22.168:80 no listening sockets available, shutting down Unable to open logs failed!
I have suse10 64bit and I was setting up SVN server on it. After all required setup while reloading apache2,its giving the error:
httpd2-prefork: Syntax error on line 113 of /etc/apache2/httpd.conf: Syntax error on line 31 of /etc/apache2/sysconfig.d/loadmodule.conf: Cannot load /usr/lib64/apache2/mod_dav_svn.so into server: /usr/lib64/libsvn_subr-1.so.0: undefined symbol: apr_memcache_add_server
I have suse10 64 bit installed. I am setting up a svn server on it. After installation and adding the modules ,while reloading the apache2 it's throwing the error as: HTML Code: httpd2-prefork: Syntax error on line 113 of /etc/apache2/httpd.conf: Syntax error on line 31 of /etc/apache2/sysconfig.d/loadmodule.conf: Cannot load /usr/lib64/apache2/mod_dav_svn.so into server: /usr/lib64/libsvn_subr-1.so.0: undefined symbol: apr_memcache_add_server
I had a hard drive failure and have recovered (rsync) my backup root filesystem onto a new drive. This all seems to be fine, except that at least two services no longer start: mysql and apache2.I can start successfully both through
although mysql throws a warning about Upstart. Neither start automatically.My system is Ubuntu 10.04.1 LTS x86_64. Part of my reolution actions has involved a kernel update to 2.6.32-27-generic.I have tried to resolve the mysql issue first:
sudo update-rc.d -f mysql remove sudo update-rc.d mysql defaults
sudo apt-get remove --purge mysql-server sudo apt-get install mysql-server adding them /etc/init.d/... start commands to /etc/init.d/rc.local script and to a session startup script
checking the services are in rcX.d (using bum and sysv-rc-conf) Ensuring there's a .conf file in /etc/init (which there is).I can't see anything in syslog which would suggest if the system has tried to start these but failed, but then I may be looking in the wrong place. I think they're not starting at all. I wonder if it's something to do with the restore, perhaps symlinks?
I have a couple apps that I cannot figure out how to prevent them from starting automatically upon logging in. They are NOT listed in my Startup Applications under preferences. For example, pidgin. Pidgin automatically starts at each login even though it is not in the startup apps nor can I find an option in pidgin itself. Tomboy is another. I always get an error that tomboy cannot be added to my panel when I restart. The error in the tomboy panel log is that tomboy is already running. Does ubuntu have a hidden "start up" folder like Windows does in the start menu? Where can I clear this file/folder?
I have recently downloaded and installed apache2 http server from tarball source (i'm running ubuntu but i think its more fun to use tarballs i don't know why but its how i am) anyway i just installed apache2 and when i go into the servers section of webmin and click on apache web server i get this message:
The Apache server executable /usr/local/apache2/conf/ does not exist. If you have Apache installed, adjust the module configuration to use the correct path. and when i go to the configuration menu i don't understand a word of it.
Running Ubuntu Server 9.10.I have a couple of programs that I would like to start at boot, they will both run forever. I have created a cron job with @reboot and that will start a program, but if I have multiple programs in there it waits for the first to finish before starting the next.
I recently installed an Ubuntu 10.04LTS server. I have zabbix-server on that machine, and I noticed that after reboot it won't start. Probabily, the mix of upstart and old init.d scripts result in zabbix starting when mysql is not active yet, in fact in zabbix-server.log I see it cannot reach db. How can I make sure zabbix-server waits for mysql?
I would like to stop network manager from starting up on boot. I have tried moving
Code: /etc/init.d/network-manager stop to rc.local and it did nothing but boot me into the CLI
I have also tried to put
Code: sudo service network-manager stop and that did nothing also.
After I get network manager to stop on boot up. How do I make it so it will not auto connect to networks? My computer keeps on joining a different network on boot up. And I don't like this as some times I go to my banks website and I am on there network with out realizing it (because of the auto connect) Is there a way to stop this also?
I just have installed FC 10 on a box that I will use as a router/firewall box. On the box I have three interfaces (eth0, eth0.704 (VLAN), and eth1). When the machine boots up, only eth0 and eth1 come up. If I run /etc/init.d/network restart, then eth0.704 will come up. If I add that command to rc.local, then all interfaces come up at boot.
I have the directive ONBOOT=yes in ifcfg-eth0.704. What would cause this vlan interface not to start at boot on the machine?
I have a SSH box which is command line only and no X, this will be used remote and i'm trying to get the wireless network configured to start at boot. I'm using wpa_supplicant as the access point is secure with WPA2 At present if I send the following commands the machine will connect to the wifi and be reachable via ssh
I have a Fedora 11 PC, which I want to connect to the ldap server at my organisation. When my /etc/ldap.conf file is in place, the machine will not boot past "starting system messagebus" and just hangs there. I have to press the reset button, and boot it into single user mode, and remove /etc/ldap.conf, and only then will it boot. The ldap.conf file is fine, I think, because if you boot the machine up without ldap.conf, then log in.
I can put ldap.conf in place and immediately I can see all the user accounts etc. from the ldap server. If I then reboot, with ldap.conf in place, it hangs on boot again. I found a bug report for FC5 which stated this problem, but there was no solution. There was a workaround, making messagebus starting later in the boot process (move it from S22 to S27 in rc3/5.d), but that didn't help in my case.
My ldap.conf contains this (I've removed my actual ldap info): host my.server.ip.addr base dc=my,dc=dn uri ldap://ldap.mydomain.com ssl no tls_cacertdir /etc/openldap/cacerts pam_password md5 bind_policy soft
As I say, I think the ldap config is fine, because you can start it manually once the machine has booted up without an ldap.conf in place. I lifted it from a Centos client, which works fine and doesn't have the same problem with booting that Fedora does.
I installed Ubuntu to use ddrescue to clone my dying drive and keep the log.Now the question is:Does Ubuntu really try to repair a corrupt NTFS disk during boot?If so, how can I change this behaviour, including any disks attached to the system in future?I had a similar question for the live cd, I think it should be easier now, as we can configure the system.Btw am I the only one to think an 'auto repair' by default is no good without asking for permission? It's something I dislike on Windows. A corrupt structure is likely a hardware problem, and in this case a repair can terribly damage the file system.
I regularly use 2 monitors at 2 different locations. Booting Ubuntu on monitor 1 works great. Booting with monitor 2 connected causes Ubuntuto load with really low resolution.If Ubuntu is running and I unplug monitor 1 and connect monitor 2 all is well and it works perfectly.How can I tell Ubuntu not to check/change the display settings during boot so that it will work correctly with monitor 2?
I'm running 10.04 with Apache2/PHP5.x I wanted to test some basic cgi scripts, but my browser is displaying the code (#!...) If I run the scripts on the console, they work fine so CGI is not the problem, it's apache. To install the CGI module I ran sudo apt-get install libapache2-mod-perl2 with no problems. By the way, I installed Apache through apt-get instead of doing it manually, but it seems that the installation divides the conf file in different parts, so the regular apache2.conf has this:
Code: # Include module configuration: Include /etc/apache2/mods-enabled/*.load Include /etc/apache2/mods-enabled/*.conf # Include all the user configurations: Include /etc/apache2/httpd.conf # Include ports listing Include /etc/apache2/ports.conf [Code]....
I can't figure out what I need to do to get CGI working on my server.
I am facing a problem with my AT91SAM9260 customized board. Board is almost same as the evaluation kit.
I could download the binaries ( Bootstrap-v1.16, u-boot-1.3.4, linux kernel 2.6.20) successfully to the DATAFLASH/NANDFlash in my board by using atmel SAM-BA tool with usb/serialport/jlink.
Here I describe the problem.
When I power up the board, boot strap is not jumping to U-boot location, in the normal boot sequence and board stuck with bootstrap.
But when I disconnect/connect the JTAG USB cable ( provided with SAM-BA ICE) , it's jumping to u-boot location and booting the board properly. I'm getting the same error in NAND FLASH also.
I have tried one more test case.I copied bootstrap binary at the flash location, [location which is specified for u-boot binary] instead of U-boot.bin (location: 0x8400 in dataflash), I got continous bootstrap debug messages in my console. [ So can I conclude SDRAM doesn't have any problem? ]
I'm presently writing software to keep my system time from drifting, it uses an external clock device.To verify it's accuracy I'm running ntpd as a server, and have another server monior the first as a client. This allows me to compare the offset with other 'valid' time servers.The problem is that the monitoring client keeps synchronising with my development server. How can I configure either the dev. server or the client so that it's time won't be selected as a good time source?The ntp.conf on the dev. server looks like:
Code: server 127.127.1.0 # local clock fudge 127.127.1.0 stratum 10