Configuring Apache on CENTOS:
Just some random notes on what I had to do to get my Perferred tools installed on Apache under centos:

yum install php-Smarty php-pear php-pear-MDB2 php-mysql

To get pear configured I ran these commands:

pear upgrade MDB2
pear install ‘MDB2#mysql’
pear channel-discover pear.firephp.org
pear install firephp/FirePHPCore

After starting up mysqld I ran the script to set root password and lock down the mysql db:

service mysqld start

/usr/bin/mysql_secure_installation

=======

Other useful commands:

chcon -R -h -t httpd_sys_content_t www

service httpd restart

mkdir /usr2/apps/Smarty

cd /usr2/apps/Smarty

wget http://www.smarty.net/do_download.php?download_file=Smarty-2.6.26.tar.gz

tar xozvf Smarty-2.6.26.tar.gz

mkdir /usr/local/lib/php

mkdir /usr/local/lib/php/Smarty

cp -r Smarty-2.6.26/libs/* /usr/local/lib/php/Smarty

Set include path:

vi php.ini

AND MAKE FOLLOWING edit tot he include path line

include_path = “.:/usr/share/php:/usr/local/lib/php/Smarty:/usr/share/pear”

Restart Webserver

service httpd restart

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published.