Hot answers tagged

19

Is it running? pgrep apache Any output is good, nothing means it isn't running. What version: aptitude show apache2


15

Did you restart syslogd? You can also use lsof -f -p <pid-of-syslogd> to see what log files it has open. The syslog.conf looks right, you might want to post your apache configuration.


15

No. As long as you use the crontab -e command to edit the file, when you save it, you'll get a 'New Crontab Installed' message. That's it.


11

no problems with 1TB drives ( this isn't large ;-)) Create a partion and format the new drive (I call it /dev/sdb1 now). With partition sizes over 300GB I prefer XFS. Now logout from X, login at tty1 as root. Mount the new partition on /mnt/temp-home and copy your data: mkdir -p /mnt/temp-home && mount /dev/sdb2 /mnt/temp-home rsync -WaP /home/ ...


8

Short answer: both /etc/cron.daily/apt and /etc/cron.daily/aptitude are probably safe to leave enabled, and not causing you any unexpected upgrades. Long answer: /etc/cron.daily/aptitude on a default Hardy install just maintains a backup of your package state files in /var/backup as files named aptitude.pkgstates.0 through aptitude.pkgstates.6 (with files ...


7

As Jeff made me notice that Ruby 1.8.7 has not been backported yet, the other only solution that comes to my mind is to use the PPA of the team packaging Ruby. There you can find both Ruby version 1.8.7.22 and version 1.9.0.2, should you prefer. If you don't know how to configure ubuntu to use a PPA, the instructions are also on the linked page (click on ...


7

When does your project have to be production ready? Tomorrow? I'd go with 8.04 LTS. In a month? Maybe you should develop it on 8.04 and try it out on a local 10.04 virtual machine to evaluate it. In 6 months? My guess is Canonical will have fixed most problems by then. Make sure you have a simple repeatable installation routine so that you can deploy on ...


7

A similar situation is described at http://www.spinics.net/lists/netfilter/msg51408.html: some packets which should have been processed by NAT somehow got marked as INVALID instead of ESTABLISHED, and went to the INPUT chain. You should add some rules with -m state --state INVALID to check for this, and the answer at ...


6

Hit CTRL + R it will start the reverse history search. If you want a second command with the string you wish to find, continue hitting CTRL + R until you find the command with what you want. You can also use the history command to see the last commands you have entered.


5

You will need to install tmpreaper.


5

e) None of the above You want one of the /dev/md* or /dev/mapper/* entries instead.


5

Yes. Apache works like a traditional unix daemon, whereby: Main program waits for an incoming request (blocks on a socket) After receiving the request, the fork() system call is used, which causes the main process to clone itself The main process then waits again for another request The forked copy proceeds to handle the request, and terminates Forking ...


5

If the number of inputs is static you could use a here document: cat <<FIN | ./script.sh value1 value2 FIN


5

The usual thing is to use crontab -e to edit the tables. The changes will be applied when you exit the editor. Otherwise the rules for re-reading changed crontabs are in the cron(8) man page. They will be re-read eventually, you don't need to do anything.


5

You're talking about trying to upgrade a server that's 5 years behind. While I'm often quoted as saying "you should not have to put a CD in the drive to do a unix upgrade", this is one of those times where you really have to put a CD in the drive. Trying to drag your server through 5 years of upgrades is a recipe for pain and disaster. If you read your ...


4

Have you tried talking to it? telnet localhost 80 HEAD / HTTP/1.0 <extra carriage return>


4

I figured it out -- the package doesn't quite work right with Sun's latest Java6 package, sun-java6-jdk; the fix is fairly straightforward when you find it: Once I found the daemon.log, I found the errors listed in my edit on the question, but those are just a side-effect of this error: jsvc.exec[18819]: Could not load Logmanager ...


4

Have you tried altering the default bashrc? This should be located in either /etc/bashrc or /etc/bash.bashrc (I think it's the second one in Ubuntu). Then in your home directory, make sure your .bash_profile includes: if [ -f /etc/bash.bashrc ]; then . /etc/bash.bashrc fi This will make sure that the variables defined system-wide are read into the ...


4

You can cat /proc/mdstat to identify the md device, which is what you will want to mount.


4

You can bind the readline function history-search-backward to a keystroke (and history-search-forward to another). I have them bound to PgUp and PgDn which on my system are ^[[5~ and ^[[6~ so I have the following in my ~/.inputrc: "\e[5~": history-search-backward "\e[6~": history-search-forward Using that, you type the beginning of the line you want, mail ...


4

For those lost in googling with similar symptoms after an update from Ubuntu LTS 12.04 to 14.04.1: syslog was replaced by rsyslog, which is for some reason not installed by the distribution-upgrade. solution is to apt-get install rsyslog


4

Do you have libxml2-dev and libxslt1-dev installed? Also, support for gutsy ended over a year ago, you should really consider moving to hardy, which will be supported until April 2013


3

Just going out on a limb here, if you're running the 64bit version of Ubuntu, and the installers need the 32bit libraries, you'll run into this issue. Try running ldd against the files you're trying to run and see if any of the libraries are missing.


3

kjournald is invoked pretty much on all disk operations, so it's not that strange that it has a lot of CPU time, specially if your server has many write operations. Nothing to worry about, IMO. Long explanation: kjournald is the kernel thread responsible for journaling on ext3 file systems. You will have one per mounted ext3 FS. On busy hosts, where there ...


3

To check for Apache 1.X see below, for Apache 2.X see wzzrd's answer. The apache web server process is called httpd so a quick way to start with confirming apache is installed and running is: ps -A | grep 'httpd' ps -A lists all the running processes grep 'httpd' filters only lines containing 'httpd' If you don't get any results, apache is not running. ...


3

Generally, when you're on a stable/LTS release of Ubuntu the packages will only be patched for security vulnerabilities and bugs. Very rarely will you see an up-to-date version of any package finding it's way into LTS. But if you need newer packages on a dedicated server running LTS, you have two options (one safe and one somewhat risky) - the safer ...


3

8.10 brought Encrypted Private Directories to Ubuntu...


3

Reboot with the install media in the CD. Select "MemTest" from the boot menu. You can use any ver. of ubuntu live cd. Or almost any other live distro. Most of them have MemTest as boot option. I would leave MemTest running overnight - at least 8-12 hours. Just so it can detect problems caused by heat, or not permanent problems.


3

I have seen this behavior on other firewall types and the behavior was so identical I figured I'd throw it out there. The issue I had was that the firewall was NAT'ing into the same space as ephemeral ports on the box. This would cause this exact behavior if the two collided because the kernel was now assuming the connection was meant for the local ...


3

If you aren't running perl CGI scripts (most people don't) then disable mod_perl entirely. If you must have mod_perl installed, disable perl-status if you had it enabled. If you weren't using perl-status, this issue does not apply to your system. Oh, and file a security bug in launchpad and ask why in the world they haven't pushed a security update for ...



Only top voted, non community-wiki answers of a minimum length are eligible