Posted On April 1, 2019

Centos 5.3 Server preparation for web hosting

kimconnect 0 comments
blog.KimConnect.com >> Codes , Linux >> Centos 5.3 Server preparation for web hosting
These are compatible Repositories: FreshRPMS, Dries, NewRPMS and PlanetCCRMA
 
Note: to update PHP and MySQL, you must use the “Remi” repository. Repos protection must be disabled prior to that install.
 
yum install yum-priorities
vim /etc/yum/pluginconf.d/priorities.conf
—-
[main]
enabled=1
—-
 
Install RPMForge:
cd /home
wget
rpm –import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt  //install DAG’s GPG key
rpm -K rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm //verify package
rpm -i rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm //install
 
Epel (conflict with RPMForge!)
su -c ‘rpm -Uvh ‘
su -c ‘yum install foo’
vim /etc/yum.repos.d/epel.repo
enabled=1
Add priority=3
 
How to remove Epel:
rpm -e epel-release-5-3.noarch
rm -y /etc/yum.repos.d/epel.repo
rm -y /etc/yum.repos.d/epel-testing.repo
 
——————————————
Les RPMS de Remi (to update PHP)
wget
wget
rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm
vim -y /etc/yum.repos.d/remi.repo
enable=1
priority=3
—————————-
//Create DAG repository definition (optional)
vim /etc/yum.repos.d/dag.repo
—-
[dag]
name=Dag
baseurl=http://apt.sw.be/fedora/$releasever/en/$basearch/dag/
enabled=1
gpgcheck=1
priority=3
—-
rpm –import
 
Setting priorities:
—-
cd /etc/yum.repos.d
dir  //to find .repo files
vim rpmforge.repo    //set priority to 3 or higher
vim /etc/yum.repos.d/CentOS-Base.repo
—-
priority=N //where N=1 to 99
—-
—- Recommended settings —-
[base], [addons], [updates], [extras] … priority=1
[centosplus],[contrib] … priority=2
Third Party Repos such as rpmforge … priority=N  (where N is > 10 and based on your preference)
—-
 
yum check-update
 
============================== How to upgrade PHP and mySQL to the latest versions ======================
cd /home
wget
wget
rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm
yum remove mysql.i386
yum –enablerepo=remi update mysql*
yum –enablerepo=remi update php*
yum –enablerepo=remi update
yum update
 
Note as of 10/07/09, the PHP version with this method is 5.3.0, which is not compatible with current release of IONCUBE
 
============================== How to update PHP to version 5.2.11 ======================
https://oldblog.jasonlitka.com/yum-repository/
 
yum remove php php-devel php-common php-cli
rpm –import
vim /etc/yum.repos.d/utterramblings.repo
— Add this —
[utterramblings]
name=Jason’s Utter Ramblings Repo
baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
——————-
 
yum install php php-devel php-gd php-ldap php-mbstring php-mcrypt php-mysql php-odbc php-pdo php-common php-cli phpmyadmin
 
============================== How to install FFMPEG ==============================
yum install ffmpeg ffmpeg-devel flvtool2 mplayer mencoder gd gd-devel php-gd php-devel ImageMagick phpmyadmin
  //after having Dag/rpmforge installed
 
Install ffmpeg-php (check for latest)
# wget
Extract the archive:
# tar -xjf ffmpeg-php-0.6.0.tbz2
# cd ffmpeg-php-0.6.0/
# phpize
# ./configure && make
# sudo make install
# vim /etc/php.ini
—- add this line at the end of file—-
[ffmpeg]
extension=ffmpeg.so
—-
# service httpd restart
 
check ffmpeg-php status
# php -m | grep ffmpeg
 
Create a hard link to enable ffmpeg-php working
ln /usr/lib64/php/modules/ffmpeg.so /usr/lib/php/modules/ffmpeg.so
ln -s /usr/lib64/php/modules/ /usr/lib/php/modules/
 
============================== FFMPEG Install problems =====================================
yum install httpd gnome-user-share mod_perl mod_python mod_ssl php php-devel phpmyadmin system-config-httpd webalizer php-cli php-common php-eaccelerator php-gd php-ldap php-mbstring php-mcrypt php-mysql php-odbc php-pdo
 
yum remove ffmpeg ffmpeg-devel
 
yum remove x264 ffmpeg ffmpeg-devel mencoder mplayer x264-devel ffmpeg-libpostproc
 
ln /usr/lib64/php/modules/ffmpeg.so /usr/lib/php/modules/ffmpeg.so
============================== How to install eaccelerator ==============================
 
# yum install php-eaccelerator

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

PowerShell: Windows Automated Disk Cleanup

##################################################################################     <#      This script is created to automate the cleanup activity. Doing so will benefit to reduce the size of disk.     This script will perform the following   1. Clear windows temp and user temp folder   2. Empty recycle bin   3. Disk Cleanup   4. Clear CBS cabinet log files   5. Clear downloaded patches   6. Clear downloaded driver   7. Clean download folder      Note:  …

CentOS 5.1 Server Setup Notes

CentOS 5.1 Server Setup: LAMP, Email, DNS, FTP, ISPConfig (a.k.a. The Perfect Server) This tutorial…

mysqldump & gunzip

Create SQL Dump: # Higher compression if bzip2 is installed on the system # mysqldump…