Onager
03-07-2003, 01:51 AM
Hi,
I'm trying to set up an apache/php system to serve a small bulletin board on a machine running the latest debian "testing" release (I cant downgrade to stable, i need other packages that are in testing).
After installing all the nessecary packages (Apache, apache-common, php4) and editing the httpd.conf to enable mod_php4 when i request a .php, i get a blank page that indicates it's in "text/html" mode, rather than "application/x-httpd-php", which is what i'd expect (I had to edit that "addtype" line in httpd.conf as well)
I then checked the apache error.log file, and found this error:
[error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic
To test if this was a problem introduced by php, i uninstalled everything php and apache related and installed just apache, and apache-common, and the error is still present.
What can i do to get around this? Can i construct my own magic file with relative ease? Or download one somewhere? Perhaps it's just pointing to the wrong file?
Any input would be appreciated.
Thanks
-Daniel
I'm trying to set up an apache/php system to serve a small bulletin board on a machine running the latest debian "testing" release (I cant downgrade to stable, i need other packages that are in testing).
After installing all the nessecary packages (Apache, apache-common, php4) and editing the httpd.conf to enable mod_php4 when i request a .php, i get a blank page that indicates it's in "text/html" mode, rather than "application/x-httpd-php", which is what i'd expect (I had to edit that "addtype" line in httpd.conf as well)
I then checked the apache error.log file, and found this error:
[error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic
To test if this was a problem introduced by php, i uninstalled everything php and apache related and installed just apache, and apache-common, and the error is still present.
What can i do to get around this? Can i construct my own magic file with relative ease? Or download one somewhere? Perhaps it's just pointing to the wrong file?
Any input would be appreciated.
Thanks
-Daniel