Archive for 'CentOS/RHEL'

New Information:Updating Plesk 7.5.4 (Plesk 7.5 Reloaded) PHP (4) and MySQL (3) to PHP 5.0 and MySQL 4.1

Has been 4 days since my last post, i had (tons of) things to do from my office, so i didn’t have time to update Nineteen Labs. And now, I’m back with few information to update, such as updating PHP and MySQL.
I stopped httpd and plesk/psa and, started them again after yum update on how [...]

The mbstring php extension error issue

After php and mysql updated, i logged on to phpMyAdmin,then phpMyAdmin shows an error, The mbstring PHP extension is not found and you seem to be using a multibyte charset. Without the mbstring extension phpMyAdmin is unable to split strings correctly and it may result in unexpected results.
Look for mbstring in the system
# yum search [...]

Update Plesk 7.5.4 (Plesk 7.5 Reloaded) PHP and Mysql (to PHP 5.0 and MySQL 4.1)

This post has some additional informations. There is new actions here while updating Plesk 7.5 Reloaded PHP and MySQL, add command old_passwords=1 in /etc/my.cnf (please read below)
Update PHP, MYSQL and OpenSSL
# yum update php
# yum update mysql
# yum update openssl
Stop httpd
# /etc/init.d/httpd stop
Stop plesk/psa
# /etc/init.d/psa stop
Start all of them (httpd,named and psa)
# /etc/init.d/psa start
Check PHP [...]

Remove CentOS httpd/CentOS Apache

Check whether httpd list in system services
# chkconfig –list
Turn off httpd service
# chkconfig –levels 235 httpd off
Search httpd
# rpm -qa httpd
Remove httpd
# rpm -e –noscripts httpd
Why do we want to remove httpd/apache? In this case, there are another httpd/apache packages installed in the system, somehow causing a trouble and we don’t use CentOS httpd/apache

Listing installed software in CentOS

Get list all installed software :
# rpm -qa > /tmp/installed.log
note : /tmp/installed.log -> log directory can be change to other directory
Search software in log
# grep ‘psa’ /tmp/installed.log

Remove or Deinstall Plesk

This is happening in one of servers, my colleagues used it as an experiment, install webmin and plesk at once. Plesk wasn’t perfectly install, so i have to clean this up.
Use deinstall plesk command
# /usr/local/psa/admin/bin/deinstall.sh deinstall
Since plesk isn’t a clean and perfect installation (too many components missing), then above command doesn’t work at all. Perhaps [...]

a command to ’shutdown’ proftpd (permanent/temporarily)

Someday, i want to ‘close’ proftpd. But i’ve found that stopping and restarting proftpd are complicated tasks, and a consideration that i can ‘reactivate’ proftpd again in the future, use ftpshut. This also useful in situation where filesystem maintainenance or work needs to be done in the area from which the FTP server is serving [...]

Stop postgresql

PostgreSQL is a powerful, open source relational database system.It offers an alternative to other database systems, such mySQL.
In this case, i want to stop postgresql, both services and system startup
# chkconfig –list
# chkconfig –levels 235 postgresql off
# service postgresql stop
To turn on system startup and start postgresql
# chkconfig –levels 235 postgresql on
# service postgresql start