Browsing all articles tagged with server

How to Fix PECL PHP Error: /bin/sh: bad interpreter: Permission denied

I recently tried installing xdebug on a RHEL 4 machine, and somehow, the server decided that it should refuse having xdebug installed. As if running a heavy Java app is not enough, I decided to add more processes for the server to run. And it looks like the server has got me:

[root@server src]# pecl install xdebug
downloading xdebug-2.0.5.tgz ...
Starting to download xdebug-2.0.5.tgz (287,621 bytes)
.............done: 287,621 bytes
12 source files, building
running: phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
/usr/local/bin/phpize: /tmp/pear/temp/xdebug/build/shtool: /bin/sh: bad interpreter: Permission denied

So, like I always do, I tackle the problem with my handy tool: Google. I found out that this error occurs when /tmp is mounted as read-only (ro). You can check this by looking at the /etc/fstab file and check the /tmp partition.

Okay, now I know what the problem is. How do I get over this?

Lazy that I am, I moved the /tmp/pear directory, and create a symlink to the root directory.

[root@server src]# mv /tmp/pear /tmp/pear-ori
[root@server src]# mkdir /root
[root@server src]# ln -s /tmp/pear /root/tmp/pear

Now that the directory from where the PECL scripts are running is in /root, the installation should go smoothly.

Another way to go around this is to remount the /tmp:

[root@server src]# mount -oremount,exec /tmp

I have not tried the above command because I thought that creating symlink is a safer approach rather than messing with the mounts.

If there are other ways to fix this, let me know using the comment box below.


10 Reasons Why Linux will Triumph over Windows

Please, everyone settle down. I am not starting a flame thread here but I would like you to read these ten reasons why Linux will stomp over Windows’s head. TechRepublic writes:

I have an announcement. The error of Microsoft’s ways is finally catching up and will cause the once-invincible juggernaut to kneel before that which is Linux. How is this? Microsoft started a tiny snowball when it released Windows Me. That snowball did nothing but gain momentum. There have been ups and downs along the way (XP being an up, for sure). But for the most part, the court of public opinion has steady lost faith in what once was considered the heart of personal computing.

If you don’t believe me, read on.

1. Inconsistent Windows releases

One of the things you can always count on from Microsoft is that you can’t count on its new operating systems to be reliable. Let’s take a look at the individual releases:

* Windows 95: Revolutionized personal computing.
* Windows 98: Attempted to improve on Windows 95; failed miserably.
* Windows Me: A joke, plain and simple.
* Windows NT: Attempted to bring enterprise-level seriousness to the operating system; would have succeeded had it not taken Steven Hawking-like intelligence to get it working.
* Windows XP: Brought life back to the failing Windows operating system. It hadn’t been since Windows 95 that the operating system was this simple.
* Windows Vista: See Windows Me.

With this in mind, what do we expect from Windows 7? Myself, not much.

2. Consistent Linux releases

Converse to number 1, you have the far more consistent releases of the various Linux distributions. Yes, there have been a few dips along the way (Fedora 9 being one of them). But for the most part, the climb for Linux has been steadily upward. Nearly every Linux distribution has improved with age. And this improvement isn’t limited to the kernel. Look at how desktops, end-user software, servers, security, admin tools, etc., have all improved over time. Once could easily argue that KDE 4 is an example of a sharp decrease in improvement. However, if you look at how quickly KDE 4 has improved from 4.0 to 4.3 you can see nothing but gains. This holds true with applications and systems across the board with Linux.

read more


Tip: Script for Checking for Server Load

Author Rai    Category Linux     Tags , , , , ,

I wrote this simple bash script so I could tell the server’s current load by email. The script is run every 15 minutes and very lightweight.


LOAD=`uptime | awk -F: ‘{print $5}’ | awk -F\, ‘{print $1}’`
TIMESTAMP=`date +%D\ %T\ %Z`

`uptime|mail -s “Server Load as of $TIMESTAMP is $LOAD” $RCPT`

Then setup the cronjob to execute the script to run every 15 minutes and send an email to the RCPT.

*/15 * * * * /home/bom/ > /dev/null


3ix is Not A Cheap Hosting Provider

Remember my post about transferring my site to 3ix? It was the biggest mistake I ever made with respect to my blog. I remember bragging to my blogger friends how they provide chat support and how cheap their services are. But now I take back all those things I have bragged about because with 3ix, you get what you paid for – cheap hosting. read more


DataPipe Server Migration

DataPipe has announced that there will be a scheduled downtime for affected servers because of a physical migration. Unfortunately this included our colocated server and because of miscommunication, and we had little time to prepare for this event. The migration took place last Friday, March 14th between 12:00AM to 8:00AM EST.  Although DataPipe provided an 8-hour window for the downtime, they anticipated that the servers will be back to normal in less than 8 hours. However, in my experience, the usual 8-hour window normally takes longer than the announced downtime because of “unexpected events”.

Powered by 1and1.comDomain Registrations starting at $9.98* Earn with Your BlogAdvertise @ PinoyTux

Search PinoyTux

Subscribe to Email Feeds

Enter Email Address:

Blog Lounge

Popular Posts

Recent Posts

Recent Comments

Site Stats