Monday, January 10, 2011

Install Drupal on CentOS5

# install Drupal on CentOS5

yum update

yum install php mysql-server php-mysql php-mbstring php-gd

chown -R myuser /var/www/html

chgrp -R apache /var/www/html

cd /var/www/html


tar -xzvpf drupal-* --strip-components=1

cp ./sites/default/default.settings.php ./sites/default/settings.php

mkdir ./sites/default/files


# Create site database in mySQL

# Create Virtual Host in apache

# Install Site in Drupal



Thursday, January 6, 2011

Install X-Debug on CentOS 5

yum install php-devel

yum install gcc gcc-c++ autoconf automake

yum install php-pear

pecl install xdebug

#edit php.ini
zend_extension=/usr/lib/php/modules/xdebug.so
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000

php -r "phpinfo();" | grep xdebug