lazy saunter

(personal learnings in computation)

Thursday, November 02, 2006

yum

for years i have used the SSH shell and eclipse, and more recently putty and dreamweaver, to code on a remote linux server. however, i have never maintained the linux server itself.

when i have had projects where i want to run my own apache-mysql-php server, i have run them from windows 2000 or windows xp. while these were not extremely difficult to configure, they were always very vulnerable and unreliable- reminding me that running these applications on linux would probably be safer, more reliable. however, that fear of the unknown and perceived complexities of installing and maintaining a linux server held me back...

this week i installed fedora core 5 on my home machine and recently installed it on my work machine.

the first problem was when i migrated my web applications to the FC5 machine at work, PHP could not connect to the mysql database i had created. online research told me to recompile PHP 5 with mysql (5) support since PHP is configured without mysql support be default. but i could not find the source to recompile nor did i know how to recompile- there was no "configure" program as far as i could see.

a co-worker suggested using "yum" which is the package installer for FC. further online research suggested that i use "yum" to install a "php-mysql" package. this would mean no recompilation is necessary.

process:

(1) yum list 'php*'

--> shows all php packages that are installed already and all php packages that are available. one available package is "php-mysql.i386".

(2) yum install php-mysql

--> installs the package php-mysql and, i guess, related dependencies since this installs the "php-devel" package as well.

(3) /sbin/shutdown -r 0

--> reboots. now the PHP web page is attempting to connect to the mysql database.

from here on out, it should not take me days to figure out how to install packages, allowing me to be more productive in less time.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home