All posts by Web Monkey

YUM Query Available Packages From Specific Repository on Fedora, CentOS, Red Hat

This is a quick tip, howto find, query and list all available packages from a specific Yum repository/repositories on Fedora, CentOS, Red Hat (RHEL). This trick does not show the already installed packages from selected repository. List All Repositories and Check Repository ID’s $ yum repolist Loaded plugins: dellsysidplugin2, refresh-packagekit repo id repo name status adobe-linux-i386 […]

PHP __DIR__, __FILE__, __FUNCTION__, __CLASS__, __METHOD__, __LINE__, __NAMESPACE__

PHP has large number of predefined constants. This HOWTO will present the seven most important, most practical and most useful PHP Magic Constants. __FILE__ – The full path and filename of the file. __DIR__ – The directory of the file. __FUNCTION__ – The function name. __CLASS__ – The class name. __METHOD__ – The class method […]

I

Install Apache OpenOffice 4.1.2 on Fedora 24/23, CentOS/RHEL 7.2/6.8

Are you looking LibreOffice 5.2/5.1/5.0 Install guide? This is quick guide to install Apache OpenOffice 4.1.2 on Fedora 24/23/22/21/20/19/18/17/16/15/14/13/12, CentOS 7.2/6.8, Red Hat (RHEL) 7.2/6.8 with using Apache OpenOffice original RPM packages. What’s new in Apache OpenOffice 4.1.2 release New Sidebar – The Sidebar makes better use of today’s widescreen displays than traditional toolbars Interoperability […]

VirtualBox 5.2 on Fedora 28/27, CentOS/RHEL 7.5/6.9

Oracle VirtualBox is a powerful x86 and AMD64/Intel64 virtualization product for enterprise as well as home use. VirtualBox is a general-purpose full virtualizer for x86 hardware. Targeted at server, desktop and embedded use, it is now the only professional-quality virtualization solution that is also Open Source Software. VirtualBox supports a large number of guest operating […]

R

Rebuilding/Restarting Exim Mail Server

When troubleshooting the Exim log file: tail -f /var/log/exim_mainlog If you need to restart or rebuild Exim, you can dump your databases * /etc/exim.conf * /var/spool/exim/db Which Exim just rebuilds automatically by issuing the following

c

cPanel Server : Restoring MySQL SimLink.

If you’re unable to restart mysqld and troubleshooting the cause: if u log into SSH and go to /tmp you may see that there is no simlink To create a simlink you can do the

Mobile Blogging With WordPress

Mobile networks are finally getting fast enough, and smartphones nimble enough to enable you to do some real stuff on the go. WordPress now has apps for the major players so you can have ready access to your blog away…

Linux: Create Text File on Linux Shell / Command Line

This is a very typical case, the need to create a temp file on the command line quickly. Opening editor, writing content, save file and quit editor is not the fastest possible way. A faster way is to use the cat command with the name of the file and write contents of the file and […]

Install Memcached on Fedora 28/27, CentOS/RHEL 7.5/6.9

Memcached is a high-performance, distributed memory object caching system, generic in nature, but originally intended for use in speeding up dynamic web applications by alleviating database load. Memcached is a very useful also in other cases, than only dynamic web applications. This guide explains howto install Memcached 1.5.7/1.4.17/1.4.36 stable version of distributed memory object caching […]

Should IE6 be allowed to die?

If you’re a web designer or developer, you’ll be familiar with the plethora of websites set up for no other purpose than to persuade people who still use Internet Explorer… More »

Do You Know What Your Site Visitors Really Want?

Do You Know What Your Site Visitors Really Want?One way to find out is to analyze what they are searching for on your website. To track this, make sure to add site search to your Google Analytics. This will track what visitors are typing into the search box…

Social Media For Psychologists And Therapists

I presented to a group of psychologists the other week about getting started with online marketing and some interesting issues were raised around how they can use social media. Most social media strategists for business advocate being open, connecting with…

Basic SEO for Blogger – Adding Alt Text To Images

Basic SEO for Blogger – Adding Alt Text To ImagesI personally use and am a huge fan of WordPress – I made the switch from Blogger many years ago. However I do have a couple of clients that use blogger to publish their blogs – they find it simpler…

PHP: Calculate Real Differences Between Two Dates or Timestamps

I was using simple function to calculate difference between two dates and timestamps until I noticed, it’s not working correctly in long intervals. It’s very easy to calculate difference between two timestamps in seconds, but it’s much more complicated print difference in human readable format. The Internet can be found in a wide range of […]

Microkids Related Posts WordPress Plugin Review

Microkids Related Posts WordPress Plugin ReviewMicrokids Related Posts WordPress Plugin Why you need it Related post plugins allow you to present your reader with other content they may find useful or interesting. This helps keep your reader browsing your site and also provides additional internal…

Linux locate command: Find Files and Directories Quickly and Efficiently

This is quick guide howto find files and directories quick and efficiently on Linux with locate command. Linux find command is outdated, slow and complicated to use, so locate command is much better option. Locate basic usage find files and directories locate file # example locate httpd.conf locate path # example locate /X11/ Find (locate) […]

cURL Tip: Check that the Apache Compression (gzip, deflate) is Working

This is a quick method with using cURL to check that Apache Compression with mod_gzip and mod_deflate is working. Only the remote server headers are needed. Check that the Apache Compression is Working Get headers curl -I -H ‘Accept-Encoding: gzip,deflate’ http://www.if-not-true-then-false.com -I option which will make just HEAD request to server and get headers. -H […]

Install PostgreSQL 8.4 Database Server on CentOS, Fedora, Red Hat

This is quick guide howto install PostgreSQL 8.4 (current stable 8.4.7) database server on CentOS, Fedora and Red Hat. Fedora 14, Fedora 13, CentOS 5.5 and Red Hat (RHEL) 5.5 has PostgreSQL 8.4 database server as default so extra repositories is not needed. Personally, I like to use Postgres own repositories, because the latest version […]

YUM History (list, info, summary, repeat, redo, undo, new)

Yum (Yellowdog Update Modified) is RPM Packet Management system for Fedora, CentOS, Red Hat, OpenSuse etc. Yum history (list, info, summary, repeat, redo, undo, new) commands is added on 3.2.25 version. So this works every Linux Distros, which uses yum 3.2.25 or newer. Yum history command is a really useful in situations where the need […]

Add Hostname, Date, Time, Uptime, Load Average to Linux Terminal Title

This tip is really useful if you need/want to monitor multiple servers at the same time. This Tip works, as the tip, by which you can add the date and time the title of the Linux terminal, but it adds more usefull info to terminal title. Following bash one liner add hostname, date, time, uptime, […]