1. Skip to Menu
  2. Skip to Content
  3. Skip to Footer>

Linux Box Solution | Linux Articles, Linux Tutorials, Linux Support

Install PHP 5.2 on CentOS 5.x Quickly

Linux Box Solutions Blog - Linux Articles


Setup PHP 5.2 on CentOS 5.x Easily



Setup The Yum Repository

vi /etc/yum.repos.d/CentOS-Testing.repo

Paste the Below in the New File you Created.

name=CentOS-5 Testing

Update PHP

yum update php*

Restart Apache

service httpd restart

To make sure you have PHP 5.2 installed do the below.

php -v

Linux References

Linux Box Solutions Blog - Linux Articles


File/Directory Basics

ls List files
cp Copy files
mv Rename files
rm Delete files
ln Link files
cd Change directory
pwd Print current directory name
mkdir Create directory
rmdir Delete directory

File Viewing

cat View files
less Page through files
head View file beginning
tail View file ending
nl Number lines
od View binary data
xxd View binary data
gv View Postscript/PDF files
xdvi View TeX DVI files

File Creation and Editing

emacs Text editor
vim Text editor
umask Set default file protections
Edit Word/Excel/PowerPoint docs
Edit Word documents
Edit Excel documents

File Properties

stat Display file attributes
wc Count bytes/words/lines
du Measure disk usage
file Identify file types
touch Change file timestamps
chown Change file owner
chgrp Change file group
chmod Change file protections
chattr Change advanced file attributes
lsattr List advanced file attributes

File Location

find Locate files
slocate Locate files via index
which Locate commands
whereis Locate standard files

File Text Manipulation

grep Search text for matching lines
cut Extract columns
paste Append columns
tr Translate characters
sort Sort lines
uniq Locate identical lines
tee Copy stdin to a file and to stdout simultaneously

File Compression

gzip Compress files (GNU Zip)
compress Compress files (Unix)
bzip2 Compress files (BZip2)
zip Compress files (Windows Zip)

File Comparison

diff Compare files line by line
comm Compare sorted files
cmp Compare files byte by byte
md5sum Compute checksums

Disks and Filesystems

df Show free disk space
mount Make a disk accessible
fsck Check a disk for errors
sync Flush disk caches

Backups and Remote Storage

mt Control a tape drive
dump Back up a disk
restore Restore a dump
tar Read/write tape archives
cdrecord Burn a CD
rsync Mirror a set of files

pfSense Open Source Firewall & Router

Linux Box Solutions Blog - Linux Articles


pfSense helps make sense of Network Security and Routing. Best of all pfSense is Open Source which means less IT overhead while being adaptable to every enterprise networks needs.

CentOS 5.x L.A.M.P. Setup

Linux Box Solutions Blog - Linux Articles


Setting up your own Web Hosting Server is as simple as 1... 2... 3... Just read the rest of this article and have your web server setup in as little as 15 minutes.

Facebook Login

Login With Facebook


    Share Me

    Let Us Know

    Support From LBS






    Our Sponsors