[Solusi] PHP Deprecated: Comments starting with ‘#’ are deprecated…

Saya menginstal php5-cli di Ubuntu 10.04 untuk menjalankan script daemon gammu smsd, tetapi ketika akan menjalankan perintah:

$ php smsd.php

Muncul pesan error:

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

permasalahannya adalah karena adanya karakter # di file mcrypt.ini. Solusi sederhana ganti saja karakter # dengan ; di mcrypt.ini dan masalah terpecahkan. File mcrypt.ini default:

# configuration for php MCrypt module
extension=mcrypt.so

setelah diperbaiki:

; configuration for php MCrypt module
extension=mcrypt.so

Semoga bermanfaat.. 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s