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

Good bye CentOS! Hello Ubuntu

CentOS, Linux, PHP, Reviews, Tips and Tricks, Ubuntu
Its been about almost more then two years since I have been playing with CentOS on many different platforms etc. Its very stable but on the other hand, PHP/MySQL updates are very hard to get and still PHP is 5.1.6. I tried EPEL repo and it updated PHP to 5.3.1 but still there were conflicts with stuff and many core packages. So, I thought why not move to Ubuntu since it has just announced 10.04LTS (Long Term Support) in April 2010. Folks at iWeb were really nice to do a reinstall without any charges and also process a memory upgrade request at an amazing 50% discount. Ubuntu 10.04 LTS Apache 2 version is 2.2.14 PHP version is 5.3.2 MySQL version is 5.1.41-3ubuntu12 SVN (Subversion) version is 1.6.6 As a comparison…
Read More

Joomla does not support PHP 5.3

OpenSource, Tips and Tricks
Are you getting these errors in Joomla? Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a reference, value given in /home/xx/public_html/libraries/joomla/cache/handler/callback.php on line 99 or Warning: Parameter 1 to HTML_content::show() expected to be a reference, value given in /home/xx/public_html/travel/includes/Cache/Lite/Function.php on line 92 Its because Joomla does not support PHP 5.3 or PHP 5.3.1 Just downgrade your PHP version and these errors will go away Use the following fix as proposed by Alexis in the comments. He says Here is a simple solution to fix it: Open /includes/Cache/Lite/Function.php and replace at line 74: [php firstline="74" title="Editing File includes/Cache/Lite/Function.php"]$arguments = func_get_args();[/php] with: [php firstline="74" title="Editing File includes/Cache/Lite/Function.php" highlight="75,76,77,78,79"]$arguments = func_get_args(); $numargs = func_num_args(); for($i=1; $i < $numargs; $i++){ $arguments[$i] = &$arguments[$i]; } [/php]
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

How to Install Apache, PHP and MySQL on CentOS

How to, Linux, OpenSource, PHP, Resources, Tips and Tricks, Tutorials
I have seen people installing Apache, PHP and MySQL from source code on a production server. You should NEVER, NEVER, NEVER install these packages from source on an RPM or DEB based Linux distributions. Did I say “NEVER” enough times to make your realize that it is not a good practice? Installing from source is bad idea; there are many reasons for this but the major one is that you will be spending a lot of time keeping the system updated. If you love installing from source then I would suggest using a different distribution e.g. Gentoo. You can build from source if the package is not available in yum but still, try to use “yum” (or “apt-get” on Ubuntu) because it will save a lot of your time when…
Read More

How to Install Webmin on CentOS

How to, Linux, OpenSource, Resources, Tips and Tricks, Tutorials
Install dependencies before we proceed to install webmin [code][root@testbed ~]# yum -y install perl-Net-SSLeay[/code] Download latest rpm package from Webmin's official website [code][root@testbed ~]# http://www.webmin.com/download/rpm/webmin-current.rpm -O /tmp/webmin.rpm[/code] Once it is downloaded, install the RPM using the following command [code][root@testbed ~]# rpm -i /tmp/webmin.rpm[/code] No more steps required. Its installed :) Go to your browser and access the control panel with valid ssh credentials. Default URL is https://your-ip:10000/ (IF you have not changed the default port)
Read More