Phat Site Blog

Tag: php

Turn On Your Lamp – Easy Apache/PHP/MySQL Install on CentOS for Web Developers

by admin on Feb.15, 2009, under Other

vi /etc/yum.repos.d/CentOS-Base.repo
find [centosplus] and locate:
enabled = 0

change to

enabled = 1

yum install php php-mysql mysql-server php-gd postgres ImageMagick ImageMagick-devel

Now you got php, mysql, graphic manipulation, and posgres installed.

Let’s setup your MySQL:
/etc/init.d/mysqld restart – after you run this, you will get a bunch of useful text, read it!
/usr/bin/mysqladmin -u root password ‘CHANGEMETOHARDPASSWORD’
/sbin/chkconfig mysqld –level 2345 onĀ  – lets mysql startup on reboot

Now you have PHP installed with common libraries such as image manipulation and postgres and mysql for database work.

2 Comments :, , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!