LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Apache2.0.52, t1lib-5.0.2, php-apache2-5.0.2 (https://www.linuxquestions.org/questions/slackware-14/apache2-0-52-t1lib-5-0-2-php-apache2-5-0-2-a-259548/)

wizard7423 11-26-2004 11:27 AM

Apache2.0.52, t1lib-5.0.2, php-apache2-5.0.2
 
Hi at all,

i installed the three packages mentioned in the subject and downloaded from linuxPackage site. Then i followed the howto at the same site i downloaded software to configure the software. At the end i tried to execute the following command:

# /etc/rc.d/rc.httpd start

but i saw this error message:

Syntax error on line 12 of /etc/apache2/mime.types:
Invalid command 'application/activemessage', perhaps mis-spelled or defined bya module not included in the server configuration

So i read some mailing list. At the end i read a post in witch was suggest to load the mime module so i add this command at the top of the file /etc/apache2/httpd.conf:

LoadModule php5_module lib/apache2/mod_mime.so

...but now running the command to start apache i see this error message:

Syntax error on line 12 of /etc/apache2/mime.types:
Invalid command 'application/activemessage', perhaps mis-spelled or defined bya module not included in the server configuration

Can anyone help me? Please write me the commands step by step as i'm a beginner of apache and php.

Thanks at all in advance.
wizard

py3gil 03-27-2008 03:00 PM

Correction of this problem mime.type
 
Despite the time that passed this message, reply because this same situation happened me now.

Correction of this problem was only remove mime.types file that I had put in a place where inconvenience set the apache. In my case, had placed a copy in / etc/apache2/conf.d. Big mistake!

I am sure that this will answer to another colleague.

For admirers of LINUX, a hug.


Apesar do tempo que passou esta mensagem, respondo porque esta mesma situação aconteceu comigo agora.

A correção deste problema foi só remover o arquivo mime.types que eu havia colocado num lugar incoveniente quando configurei o apache. No meu caso, havia colocado uma cópia dentro de /etc/apache2/conf.d. Grande erro!

Tenho certeza que esta resposta servirá a outro colega.

Aos admiradores do LINUX, um abraço.


Gilberto Reinke

madhattter 04-04-2011 08:09 PM

Thank you, and a fix
 
Thank you! That fixed my problem.

Specifically from conf.d directory:
cd ..
mkdir conf
mv conf.d/mime.types conf

and edit http.conf from:
TypesConfig conf.d/mime.types
to:
TypesConfig conf/mime.types


All times are GMT -5. The time now is 08:06 PM.