How to Update Twitter Timeline Using PHP
Guide on this article can be used to post Twitter using PHP. First of all, download source code from http://phpfashion.com/twitter-for-php. Extract downloaded file to your folder. Example: /public_html/twitter-php/. Then we create index.php file with the following code: The first line is to setup variables: username, password, and message. And the next part is to setup…
How to Fix High CPU Usage on WordPress
Few days ago I got complain from my hosting company that my website which is WordPress produced high CPU usage all the time. Below are what I’ve done to fix the problem: I disabled all plugins in WordPress. Result: failed. I switched to default twenty-ten WordPress themes while still disabled all plugins. Result: failed. I…
True Type Fonts in FreeBSD
This is tutorial how to install true type font in FreeBSD. Load freetype module in /etc/X11/xorg.conf file inside “Module” section: Load “freetype” And then, create folder for True Type Font (.ttf). It has default location in /usr/local/lib/X11/fonts/TTF. Copy all .ttf files to this folder (some files have Microsoft license, it is not legal to copy). Create fonts.dir…
How to Create Windows XP USB Thumbdrive Installer Using WinToFlash
I found WinToFlash is easier than other methods of creating Windows XP installer on USB Thumdrive. 1. Download the application from here and run the executable file. 2. Select Windows files path and USB drive 3. Accept the license agreement and press Continue button 4. Type in Captcha protection 5. Wait until files transfering finish 6….
How to Upgrade EHCP 0.30.4 to 0.30.6
Download version 0.30.6 from this link. # cd /root # wget http://sourceforge.net/projects/ehcp/files/ehcp_yeni.tgz/download Extract the file Backup current EHCP # copy -R /var/www/new/ehcp /root/backup_ehcp Copy new EHCP # copy -R /root/ehcp /var/www/new/ Copy config.php from backup # cp /root/backup_ehcp/config.php /var/www/new/ehcp Open browser and go to http://your_ip and login to EHCP. If you have logged in already,…
How to Fix PHP Warning: Module already loaded in Unknown on line 0 on Ubuntu
I received email from cronjob saying that there was PHP module already loaded: PHP Warning: Module ‘mysql’ already loaded in Unknown on line 0 This warning happens when there is PHP extension loaded more than once. To fix this problem, check /etc/php5/apache2/php.ini file and the corresponding module configuration file in /etc/php5/conf.d/. For mysql module, I…
How to Setup Timezone on Debian Squeeze
Run the following command as root or using sudo: And then select your timezone from the prompts. After that UTC time and local time will be shown as in the following example:
Mount .iso File on FreeBSD
Create folder if it doesn’t exist: # mkdir /mnt/cdrom Create memory disk device: # mdconfig -a -t vnode -f file.iso -u 0 There will be /dev/md0 device. Mount device md0: # mount -t cd9660 /dev/md0 /mnt/cdrom Finish. To unmount: # umount /mnt/cdrom # mdconfig -d -u 0
How to Add User to Sudoers File on Ubuntu / Debian
Sudo is a program that allows users to run programs with the security privileges of another user (normally the superuser, or root). The /etc/sudoers file controls who can run what commands as what users on what machines and can also control special things such as whether you need a password for particular commands. To add…