Ubuntu Servers :: System Won't Shutdown + Apache Not Auto Starting / Fix It?
Nov 12, 2010
First post here so I'll do my best to provide the information needed.
Dell Poweredge R310
Xeon 3460 2.8Ghz
4x 160GB Sata 7.2k (RAID 10)
Ubuntu Server 64bit
If I type as root, "reboot" or "shutdown -r now", nothing happenings - except the apache2 process stops + the usual "System is going down for reboot now". If I type "shutdown -h now" the system goes down.
Upon booting the server back up, MySQL starts correctly, but Apache2 does not - I have to run "service apache2 start", and it starts up fine.
I feel the 2 issues are related. I've reinstalled apache2 completely (configs and all) and this didn't help - I used yum to install/reinstall it.
I am trying to install Zend Server, and that went well. Apache and all the other items were installed.
But when I go to start Apache, I get this error:
root@laptop:~# /etc/init.d/apache2 restart * Restarting web server apache2 Syntax error on line 6 of /etc/apache2/sites-enabled/zendserver_gui.conf: Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration [fail] And on line 6: php_admin_flag tidy.clean_output off The rest of the file is below:
# Warning: Modifying this file will break the Zend Server Administration Interface Listen 127.0.0.1:10083 NameVirtualHost 127.0.0.1:10083 # do not allow override of this value for the UI's Vhost as it should always be off when generating non-html content such as dynamic images code....
I have an Ubuntu 10.04.1 AMD64 server running Apache with SSL. In the past, even though I have a passphrase on my key file, I have only needed it if I manually restarted Apache2, never after reboot.
I recently switched from a self-signed cert to one from a CA. I'm not sure if this is what caused it, I also installed a few packages (AWStats, PHPSysInfo and Munin) that all interact with the webserver.
Anyway, I just noticed that now after a reboot Apache starts but doesn't work. I need to kill that process and start a new one with the passphrase (maybe on the console it is prompting me, I mainly use SSH access since the server is headless).
Why did Ubuntu used to 'remember' the passphrase on the self-signed cert but now I need to provide it?
My sever auto-updates so it would be annoying to have this thing go down regularly after a patch that requires a reboot.
I installed Mythbuntu 9.04 about 9 months to a year ago and (for the most part) I haven't had any problems with mythwelcome, automatic shutdown or the system clock. The "for the most part" relates to the fact that the clock on mythbuntu has always been 4 minutes fast. Then, just last week, the system started acting up - for some reason the system clock changed to 8-10 minutes fast (6 minutes faster than it was previously). To fix this problem, I have tried manually setting the "time and date" setting, and I have also tried setting the "time and date" setting to sync with an internet server. Lastly, I tried changing the system time through the motherboard bios. In each situation, mythwelcome would initially start up with the correct time. Then, several seconds later, the time shown in mythwelcome would change to being 4 minutes fast (as I described above). The time would also be 4 minutes fast when I enter the frontend.
I was willing to live with this, but the weird part is that when I start the system now (assuming I don't have any programs scheduled to record), mythwelcome boots up fine and I see the indication that "MythTV is idel and will shutdown in XXX seconds". Then, it flashes to "MythTV is idle" - like it used to; except now, it doesn't flash back to the countdown for shutting down mythtv. One time when I started the system when I was adjusting the time as mentioned above, I noticed that mythwelcome went to the "MythTV is idle" around the same time it changed the clock to 4 minutes fast - I think there is definitely a correlation here.
I checked out all the settings and nothing else has been changed that would otherwise affect MythTV from shutting itself down. The other interesting part is that I can get the shutdown countdown back if I go to "Utilities / Setup", "Setup", and "Mythbuntu". In the popup screen I choose "MythTV Configuration" and select "Launch MythTV Setup". I get a popup box that says that the mythbackend must be closed (as expected). Then I immediately exit mythtv-setup and the system runs "mythfilldatabase". I exit the Mythbuntu Control Centre and exit the frontend. When I get back to mythwelcome, the shutdown countdown comes back.
how do I start a ruby on rails application when my Ubuntu server starts up/is rebooted? I start the application by cd-ing into the ruby application's root directory(the application I'm using is Bibapp) and execute the command;
I am currently running a VPS with Ubuntu Server 10.10. I have been trying for a few days now to get some programs to run when the system starts, but with no luck. I am trying to use rc.local to do this, there is an: /etc/init.d/rc.local - http://paste.monsterprojects.org/mpbjhwhbjzhbjrr (Was already on the system, I have not edited this) and: /etc/rc.local - http://paste.monsterprojects.org/mpbjhwhbkkkhwez
If i run the /etc/rc.local script manually all the programs start fine, and if i run /etc/init.d/rc.local start, all the programs start fine. But for some reason they just don't seem to be starting when the system boots.
I have tried several places for help but I am getting no where...Here is my background.I have spent all weekend to replicate my development server back at home. I have an Apache remote server with 3 IP based virtual hosts pointing to
Now I have been able to set up a VM on my desktop, installed the OS, the applications, the db server, apache etc. Everything is looking good so far. So right now I have,
So when I go to 192.168.0.111, I go to [URL] so I guess apache is working aswell.What I want to do is, instead of going to [URL] I want to change it to another address such as a.me.add1How can I do this? I am looking through the virtual hosts section, I have changed server name entry etc but its not working.Can you tell me in big picture what I would need to do to set that up? My current set up doesnt really help me much once the site get the www address.tell me if Document Root of IP address 192.168.0.111 points to [URL] will it always resolve into that webaddress. That is if I enter 192.168.0.111 the browser will redirect it to [URL].
How to Schedule auto shutdown in Ubuntu? I am a newbie. Last night I have some downloads in progress while at the same time I really wanted to go asleep. So I wondered if there's a way to schedule auto shutdown the system after a set period of time. I heared its possible using command line but dont know the usage.
I decided to stop using my password to enter Ubuntu (recently installed) and switch to automatic start up. Hit the relevant key, then restart. Received three notices, closed two, entered pass to get encryption code at third, then nothing but a blank, Ubuntu-colour screen. Unable to open Ubuntu. How the heck to I get myself out of this trap?
bluetooth-applet is not auto-starting on one of the 2 users of a system. In the user's environment where auto-start does not work it can be started from a shell without any error and bluetooth otherwise works fine. There is an entry in the start up applications preferences for both users. We are running 9.10.
in windows I have this little program called "poweroff". I use it to shut down my pc after vlc stops playing a movie. I set vlc to shut itself down after playing, and then the program starts a countdown to shutdown the pc. is there a similar program for ubuntu? could this be achieved through the command line? I'd like it to give me little warning period though, where I still have the option to cancel.
I am wondering if there is already a feature, and if not, then a way to save any open files before a shutdown occurs?
I use xfce4 battery plugin and there is the option to invoke a shutdown whn the batt. hits critical percentage, but I would like to be able to run something at the low percentage stage to save any open files in case the critical stage is reached. I have had no luck googling any solutions or potential solutions.
I found an application AUTO POWER ON & SHUTDOWN in windows which is really very useful to those who have night unlimited broadband connection. I searched for similar application in UBUNTU as I am slowly shifting to UBUNTU from 10.04 (maveric) version. Whenever I search for application or for other options, so many have written failed attempts only.
Rebooting after an update I can't see any icon on the desktop (FC12, gnome).If I manually start nautilus they appear, but I obviously would like that to happen automatically. What could be the problem and how to solve it?
Is there some file I can alter on the Live CD image that will make Ubuntu not automatically eject the drive tray when I shut down from a live CD session?
/etc/rc0.d/S89casper is a link though, so I just edited the file it points to (/etc/init.d/casper) -- seems to be working. I merge a modified "casper" at every boot, next time I build a Remastersys, I'll try to make it permanent.
I updated my fc12 x86_64 server today, and one of the updated included kernel 22.214.171.124-174.2.3.fc12.x86_64 from the previous one of kernel-126.96.36.199-174.fc12.x86_64.When I boot with that kernel, it stops when my logical volumes that are built on a raid 5 array (linux software raid built using mdadm) are not there.I can start them afterward with mdadm --auto-detect which seemingly loads the appropriate modules and starts the array, but I have never had to do this before.
Reading the mdadm man page, it mentions that this is generally done by the initrd. So, I am guessing the initrd that came with the new kernel is missing something.
Laptop : Dell Latitude D620 - Intel Core2Duo T5500 1.66GHz - Intel 945GM graphic - 2GB DDR2 667 RAM - Samsung 400GB SATA 5400rpm Harddisk. OS : Debian Squeeze amd64 - Gnome. I browse the web with this laptop,with ethernet connection,with Icewesel running 2 tab,just after 5 minutes,it auto turn off itself. Never happen before,I don't know what happen. This laptop only support 2D,there's no 3D graphic driver,so no visual effect apply. I start the laptop after 10 minutes,type sensors and get this output :
in order to do full backup system, i have to shutdown the oracle database. My backup software can stop the services by running the shutdown script. But in order to shutdown the oracle database, the script must be run under oracle privilege. The conflict is our backup system which is reside under root privilege cannot run the oracle shutdown script which is needed to triggered by oracle privilege.
I'm running Linux Red Hat 5.5 and Gnome. I am trying to use the Terminal almost like Windows Putty but with tabs. Is there any way that, when starting the terminal, I can have it connect to multiple machines in different tab?
I didn't notice any relevant complaints regarding 11.2 in the archives. The bootup & shutdow may be different problems. Randomly my recent install boots up fine or hangs with a blank black screen. A Ctl Alt F2 gets me to a prompt. Startx returns a lockfile comment that X is already running.
From here I can shut 11.2 down and restart it OK. There must be a bootlog kept in /var somewhere. I haven't tried the non-automatic bootup. The shutdown randomly drops back to the logout screen. Usually a shutdown command from there will shut it down. Sometimes shutdown doesn't work, but restart will finish the shutdown.
Apache is set to start on runlevel 2, 3 and 5, just like MySQL. For some obscure reason this always fails. I tried resetting the runlevels, but this did not help and I always have to start apache manually after reboot.
How can I analyze this problem? In the Apache logs I don't find the cause. Is there an other log I can check?
When I try to start Apache2 (apachectl start) the command prompt returns right away. But when I check the processes (ps ax) I can't find httpd. And when I try to hit the server from a browser I get "the page cannot be displayed" error.