Browsing all articles tagged with suse
Feb
27

Strict Standards: date() [function.date] Error

I was installing NagVis when I came across this weird message:

Strict Standards: date() [function.date]: It is not safe to rely on the system’s timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected ‘UTC’ for ‘GMT/0.0/no DST’ instead in /usr/local/nagios/nagvis/nagvis/includes/classes/objects/NagVisStatefulObject.php on line 360

It clearly says that I should check the timezone, which I did. But there’s nothing wrong with time or date. ntpd is running and it set the correct timezone so what could be wrong?

If you are reading this then probably you are seeing this error too. To fix this, open your php.ini using your favourite text editor (like vi) and add this line:

date.timezone=UTC

Take note that depending on how you installed php, it could be in /etc/php.ini (RedHat) or /etc/php5/apache2/php.ini (SLES) or if compiled, /usr/local/php5/php.ini.

You need to restart Apache for changes to take effect.

Jan
3

VIM Trick: How to Comment Multiple Lines

If you need to comment out lines of text inside VIM, you can try this trick:

(Enter command mode in VIM)
:40,105s/^/#/g

This will insert the # character at the beginning of each line starting from line number 40 to line number 105.

If you cannot see the line numbers, do this:

(Enter command mode in VIM)

:set number

To remove the lines:
:set nonumber

This is quite handy if you need to comment out lines of codes in a script.

Jan
2

Backspace Key Not Working in PuTTY

Author Rai    Category Linux     Tags , , , , , ,

If you access your Linux machines from a Windows workstations by SSH, most probably you are using PuTTY. My new job requires me to work with SUSE Enterprise servers and to my surprise, the VIM on SLES is somewhat different from that of RHEL.

One example is the backspace key. It just won’t work in PuTTY connecting to SUSE server. I have to put the cursor before the character I want to delete and press the DELETE key. If you have this issue with PuTTY/SUSE too, this tip might help you.

Go to your PuTTY configuration -> Terminal -> Keyboard

Look for Change Sequences Sent By -> The Backspace Key

From there, select Control-H. Save your session and try it.

This one worked for me, hope this works for you too.

Jun
2

Will it blend?

Author Rai    Category Linux     Tags , , ,

The answer to life’s greatest question (no, it’s not 42), will it blend?

Watch this video to find out:

Powered by 1and1.comGlobat Webhosting Earn with Your BlogAdvertise @ PinoyTux

Search PinoyTux

Subscribe to Email Feeds

Enter Email Address:

Blog Lounge

Popular Posts

Recent Posts

Drop your Card Here

Recent Comments

Site Stats