Home | CentOS Server Install + Webmin | Chapter 6: Install PHP 5

Chapter 6: Install PHP 5

Installation of PHP 5 via command line.
Reason I prefer command line interface here is because of many functions do not work properly when done via a browser interface. Like from the Webmin Command line.

On the other hand the Slicehost.com browser based command console can be used without any issues as shown throughout this tutorial.

#yum install php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc curl curl-devel perl-libwww-perl ImageMagick libxml2 libxml2-devel

The above command is installing quite a few packages and the related dependencies will be downloaded automatically.

---I got 166 packages that need to be installed.

Accept install: y

That’s pretty much it for PHP install and for it to work with most popular database MySQL.
(The package 'php-mysql' in the above command line is the connector for php-MySQL.  This is what makes php communicate with the MySQL database.)

One setting that MIGHT need to be enabled in php.ini to accept global variables.  It’s a security issue but some old codes out there might not work if not turned on.

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Gator extract and retouch
Party hats extract from background
Toy dog extract from background
Toy duck extract from background
Moose extract from background
Toy mouse in plastic bag extract
Krinkle ball reshape and extract
WaterCenterPlaza.com
Vision Equity Partners
Vision Equity Partners
Enviro Safe Solutions
How To Girl
Europe Rail Ticket
Primus Global
Unitel Technologies
Honeyz Beauty Parlour
Sterling Capital
Dr Parisi
SK Realty
IkeeperOnline

Search