Build-Essentials in CentOS?

CentOS, How to, Linux, Tips and Tricks, Tutorials, Ubuntu
If you are like me, you may be doing this to install essential build libraries to compile something from source [code]# wrong method yum install build-essential[/code] :) Build essential is a Ubuntu / Debian package. On CentOS, you need to do this [code]yum groupinstall "Development Tools"[/code] Warning: This will install all development tools approx 49 packages closing to 65MB
Read More

How to solve ‘You do not have sufficient permissions to access this page.’ in WordPress

How to, Tutorials
I have been getting the following error because I changed the database table prefix You do not have sufficient permissions to access this page. The cause of the problem is that you have changed the database prefixes but still, some of the word press config is tied down to the previous prefix (wp_ or something) Just execute the following two queries [code lang="sql" toolbar="false"] -- Replace 'prefix_' with your actual prefix UPDATE `prefix_usermeta` SET `meta_key` = REPLACE( `meta_key` , 'wp_', 'prefix_' ); -- Replace 'prefix_' with your actual prefix UPDATE `prefix_options` SET `option_name` = 'prefix_user_roles' WHERE `option_name` ='wp_user_roles' AND `blog_id` =0;[/code]
Read More

Fixing Pear ‘unsupported protocal’ error

CentOS, How to, Linux, Tutorials
Are you getting the following error while updating any package in pear? pear.php.net is using a unsupported protocal - This should never happen. I got this error right after I upgraded PHP from 5.2 to 5.9 (using CentOS-Testing repo). To resolve this situation, do this. [code lang="plain"]rm -fr /usr/share/pear/.channels[/code] and then do this [code lang="plain"]pear update-channels[/code] It should now give you the following output [code lang="plain"]Updating channel "doc.php.net" Update of Channel "doc.php.net" succeeded Updating channel "pear.php.net" Update of Channel "pear.php.net" succeeded Updating channel "pecl.php.net" Update of Channel "pecl.php.net" succeeded[/code] That's it, your issue is resolved.
Read More

CentOS yum update missing dependency error

CentOS, How to, Linux, OpenSource, Tips and Tricks, Tutorials
If you are using [sourcecode lang="plain"]yum update[/sourcecode] on CentOS and getting the following errors Missing Dependency: /usr/lib/python2.4 is needed by package libxml2-python-2.6.26-2.1.2.7.i386 (installed) gamin-python-0.1.7-8.el5.i386 from installed has depsolving problems Missing Dependency: /usr/lib/python2.4 is needed by package gamin-python-0.1.7-8.el5.i386 (installed) Error: Missing Dependency: /usr/lib/python2.4 is needed by package libxml2-python-2.6.26-2.1.2.7.i386 (installed) Error: Missing Dependency: /usr/lib/python2.4 is needed by package gamin-python-0.1.7-8.el5.i386 (installed) Don't panic, the solution is simple ... just run the following command [sourcecode lang="plain"]yum clean all[/sourcecode] Then do [sourcecode lang="plain"]yum update[/sourcecode]
Read More