Posts Tagged ‘redhat’

How to Listen on Multiple (More) IP Addresses on Linux

Friday, October 9th, 2009

One of the best articles that discussed how to bind or listen on multiple IP addresses is this article:

Bind Multiple IP Addresses to a Single Network Interface Card (NIC)

Amazing!  Useful!

Error While Loading shared libraries , cannot open shared object file: no such file or directory (Easy solution?)

Tuesday, August 25th, 2009

Have you tried ldconfig yet?

I was working on a website that needed to use libraries from some lib directory on Linux. (it’s not like I understand WHERE To put files or install them yet, eh?)

But, after compiling and installing a program, I got the title of this post as an error message (with my specific library mentioned.)

How did I solve it? ldconfig

If it doesn’t work after that, good luck! MY problem was solved. :P

Installing CPAN Perl Modules without HTTP, FTP, DNS, or CPAN Access

Thursday, August 13th, 2009

This was pretty easy.

Step 1. Download the module you want from CPAN.org.  In this example, it’s the File::Tail module.  (The download link is the ‘download tar.gz’ link.  Not the source.)

Step 2.  Upload it to the destination server directly, OR use the SCP command to transfer it from another web-server to your destination server.

My preferred method was using wget at the middle server so I didn’t have to manually upload it to the middle server myself!

Step 3.  On the destination server, which now has the file, run tar -xzf (filename) to extract the file from the tar and GZip.  It will likely be in a folder that matches the name of the original tar.gz file.

Step 4. Go to the newly created folder (cd) and look at the readme file.  (Try using the VIM editor by typing vim (filename) .  When done reading, type :q to exit the file.  ( :q! to exit without saving any accidental changes.)  The readme file should have listed a few perl commands you should execute– usually ‘perl makefile.PL’, then ‘make’, then ‘make test’, then ‘make install’.

Step 5: After executing the commands requested by the readme file, you should be done!  If you need to resolve any dependencies to install this package, go back to step #1 and try again with the new package.

Best of luck!

(13) Permission denied: FastCGI can’t create server (problem solved)

Friday, August 7th, 2009

I was getting the following error on my Red Hat Enterprise Linux 5 server.  (RHEL 5)

[Thu Aug 06 17:48:03 2009] [crit] (13)Permission denied: FastCGI:
can’t create server “(Fast CGI File)”: bind() failed [(location of FastCGI location)]

I fixed this by:

chmod o+x /parent/directory/of/fastcgi

EG:
If Fast CGI was /var/log/httpd/fastcgi,
I’d do chmod o+x /var/log/httpd.

Worked fine.  (Kudos to my coworker who originally proposed the idea and it worked– Mentioning it again ’cause I did it again.)

Did it help you? Leave a comment! :)

Recent BIND release has bugs — causes (host map: lookup (domain): deferred)

Monday, August 3rd, 2009

I had a problem on a server where a recent update to Red Hat Enterprise Linux 5 (RHEL5) caused all sendmail mail to be:

  1. Inserted into the queue
  2. Never sent
  3. Never sent with message “(host map: lookup (domain): deferred)
  4. Only sent when the mail queue is pushed ( sendmail -v -q )

I found an old post from 2006 that gave me an idea about what to do when sendmail constantly defers mail. I ran yum update and found BIND had some udpates.

After that, all I had to do was restart the sendmail server and we were good to go.

Good news!