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.