Ubuntu 6.01 Edgy PHP CLI Issue

Posted on Dec 12 2006 07:23pm by Luke Davison

So, I recently upgraded my Ubuntu install to Edgy. One of the packages I have installed is php4-cli, which I use specifically for testing sample code. Well, when I went to run it, I found this little nasty popping up:

 

PHP Warning: mime_magic: type regex

BEGIN[[:space:]]*[{] application/x-awk invalid in Unknown on line 0

 

Looks like there is a defect open with the debian folks, but it says to uncomment a line out in /usr/share/file/magic.mime. However, for Ubuntu, this should be commented out. The line that needs to be commented out is:

 

0 regex BEGIN[[:space:]]*[{] application/x-awk

 

Upon doing so, php will run on the CLI without producing the warning.

 

Comments

bawb said:
Marvelous. Thank you.

Jeremy said:
Thanks for posting this, I had been trying to setup cacti on ubuntu and ran into this exact same problem. Luckily I found your post which solved my problem! Thanks again!