Archive for January 2012

Start, Stop & Restart Cron Service 31.01.12

  • Ubuntu Server
  • Comments Off on Start, Stop & Restart Cron Service
  • 0
  • $ sudo /etc/init.d/cron start
    $ sudo /etc/init.d/cron stop
    $ sudo /etc/init.d/cron restart

    $ sudo service cron start
    $ sudo service cron stop
    $ sudo service cron restart

    Fatal error: Class ‘Memcache’ not found 19.01.12

  • PHP
  • Comments Off on Fatal error: Class ‘Memcache’ not found
  • 0
  • Terdapat dua extension untuk memcached dalam PHP, iaitu “memcache” dan “memcached”.

    Pastikan anda install extension yang betul.

    Taip kod berikut untuk periksa :

    php -m | grep -i memcache

    Output berikut akan keluar sekiranya anda telah install extension memcached.

    memcached

    atau

    php -i | grep -i memcache

    Output berikut akan dipaparkan.

    memcached
    memcached support => enabled
    libmemcached version => 0.37
    Registered save handlers => files user sqlite memcached

    PHP Deprecated: Comments starting with ‘#’ are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0 19.01.12

  • Ubuntu Server
  • Comments Off on PHP Deprecated: Comments starting with ‘#’ are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0
  • 0
  • PHP Deprecated: Comments starting with ‘#’ are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0

    Untuk menyelesaikan error tersebut, buka fail mcrypt.ini yang terletak di direktori /etc/php5/cli/conf.d/mcrypt.ini

    Kandungan fail mcrypt.ini

    # configuration for php MCrypt module
    extension=mcrypt.so

    Gantikan “#” dengan “;” seperti berikut dan save fail tersebut

    ; configuration for php MCrypt module
    extension=mcrypt.so

    Selesai.