Re: PHP4 setup problems [SOLVED - kinda]
> > It means that the kernel didn't know how to execute that file. Perhaps
> > you need '#! /usr/bin/php4' as the first line of the PHP script?
>
> Or add the following lines to /etc/apache/httpd.conf, preferably between
> <IfModule mod_mime.c> and its ending tag
>
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php-source .phps
I noticed in the error log file that it was having a problem loading the magic
file. The http.conf file was pointing to share/magic, which apache resolves to
mean /etc/apache/share/magic. I ran a 'find' for the magic file:
# find / -name magic
/usr/share/misc/magic
/etc/magic
So I've pointed apache to /usr/share/misc/magic. PHP now works, but on
restarting apache I get a long list of invalid entries from the magic file
(examples):
[error] mod_mime_magic: offset &3 string $SuiteId invalid
[error] mod_mime_magic: type &3 string $SuiteId invalid
[error] mod_mime_magic: offset &1 string >\n %s
invalid
[error] mod_mime_magic: type &1 string >\n %s
invalid
So I guess my question now is:
Am I using the right magic file?
And if not, which magic file should I be using?
/etc/magic is empty - should I be using that one?
Thanks for those who helped me last time,
Andrew
"I do not agree with what you say,
but I will defend to the death your right to say it."
Francois Marie Arouet Voltaire (1694-1778)
--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: