LAMP How To – Open Source At Work

Only Passion Matters

Entries for the ‘Blog’ Category

sqlite3: undefined symbol: sqlite3_config

this is an error you will see if sqlite3 is not compiled properly.
download the latest sqlite from sqlite.org and extract it.
run this line first:
export LD_RUN_PATH=/usr/local/lib
then
./configure
make
make install

Allowing wordpress to host multiple websites

1. download or upgrade to the latest version of wordpress.
2. In wp-config.php, add this line above the “happy blogging” comment

define(‘WP_ALLOW_MULTISITE’, true);
/* That’s all, stop editing! Happy blogging. */

3. Now login and to to admin panel via /wp-admin and go to toos -> network and follow the instructions from there. You will be asked to logout [...]

Basic GIT tutorial: centralised and decentralised model

Git is fast becoming the most popular versioning control system in the market today. It is open sourced and offers a number of significant advantages over svn. SVN will probably still be around for a while because a lot of people and software are still dependent on it or don’t see a need for change. [...]

php curl proxy settings

It can be daunting to get proxy to work in curl. If it is not working for you, try changing the auth to ntlm.
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, ‘http://yoururl.com’);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch,CURLOPT_PROXY , “your_proxy_ip:proxy_port”);
curl_setopt($ch, CURLOPT_PROXYAUTH, CURLAUTH_NTLM);
curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt($ch,CURLOPT_PROXYUSERPWD,”user:pass”);
curl_exec ($ch);
if(curl_errno($ch))
{
echo ‘Curl error: ‘ . curl_error($ch);
exit;
}
curl_close ($ch);

synchronising system clock manually

if there is a need to synchronise the system clock manually, it can be a straight forward thing

service ntpd stop
ntpdate 0.rhel.pool.ntp.org
service ntpd start

some of the files of interest:

/etc/sysconfig/clock
/usr/share/zoneinfo