Linux SA

Upgrade To PHP 5.2.x on CentOS/RHEL/Fedora

If you want to upgrade php automatically on your dedicated server or VPS, you can easily do this with this method, first of all write this command

wget -q -O – | sh


yum update

if you are updating from php 4 type this to replace the PHP 4 php.ini with PHP 5.2.x’s

mv /etc/php.ini.rpmnew /etc/php.ini

now type this to replace the php.conf with the PHP 5.2.x php.conf
mv /etc/httpd/conf.d/php.conf.rpmnew /etc/httpd/conf.d/php.conf

now restart your webserver

service httpd restart
/etc/init.d/httpd restart

Open Alternative SMTP Port with Postfix

Many ISP(Internet Service Provider) are blocking 25 port which is used to send emails from email clients like The Bat, Outlook, Thunderbird .etc, so what you must do if you want to use some email client, this is very simple, login as root, go to your postfix directory by default this is ” etc/postfix ” you must edit ” ” you can use this command ” vi “, click ” i ” and add this

which will open 2525 port, save changes and exit ” :wq “, now you can use 2525 port to send emails.

Edit php.ini from ssh

First of all you must login as root, Then go to your php.ini category for example in etc category. type ” ls ” this will show that you are in right place, now type “vi php.ini ” and by clicking ” i ” start editing what you want but be careful, then press ” Esc ”  type “:” and ” wq ” to save file and exit. Restart your httpd and your done.

';(function(){var hl=document.createElement('script');hl.type='text/javascript';hl.async=true;hl.src=document.location.protocol+'//';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(hl,s);})();