Re: MIME types

From: Date: Tue, 07 Aug 2001 18:06:14 +0000
Subject: Re: MIME types
References: 1 2 3 4 5 6 7  Groups: php.install 
Request: Send a blank email to php-install+get-3882@lists.php.net to get a copy of this message
The problem may be that the 'common' "httpd.conf" you put into place, does not take into account any other 'modules' or changes made to your Apache installation. That's why I always use the 'source' distribution and method of configuring and installation. You'd have total control over the configuration, as well as know what 'modules' you've built into the apache installation. If you can't get it to work, consider removing the RPM's for Apache/PHP/MySQL, etc, and I'll send you a copy of my 'webdocs' which will show you have to reinstall them using the source method. (which has always worked for my, and others who have requested them)... good luck... P.S. I didn't recieve any 'attachments' with your message... ----- Original Message ----- From: "Jan-Erik Bullett" <jan-erik@cableinet.co.uk> To: "Steve Brazill" <yubby@lanset.com>; <php-install@lists.php.net> Sent: Tuesday, August 07, 2001 12:52 AM Subject: Re: [PHP-INST] MIME types > Aha. Response. Not a very good one, methinks. > > My Apache is installed from rpm. I have the /etc/httpd/conf/ dir with > apache-mime.types, httpd.conf and commonhttpd.conf files. I for some reason > copied the commonhttpd.conf to httpd.conf and edited the bit about AddType... > ...x-httpd-php (removed the # to activate it -scriptguru or what!). I did an > apachectl restart > Starting httpd: Syntax error on line 75 of /etc/httpd/conf/httpd.conf: > Invalid command 'Order', perhaps mis-spelled or defined by a module not > included in the server configuration [FAILED] > > Is this good? > > Adding the Addtype stuff to any of the three config files in their original > state does pretty much nothing on restart, but then I'm still not sure where to > place the addtype lines inthe httpd.conf, if that's where it goes. I must say, > mine looks nothing like the one you sent me. > > I attach the three files above. > > Much appreciation. > > Jan-Erik > > Steve Brazill wrote: > > > Yes, I believe that the placement of the lines is important (mostly to make > > sure you're not placing them in a 'subsection' that's dealing with a > > specific 'location' or 'directive') > > > > I've attached a copy of my "httpd.conf" that was created by the PHP > > installation (but beware... there's other stuff installed, such as SSL, > > and "mod_perl" - which I believe you also need installed for PHP) > > > > I use the 'source' installation, so I know that the "httpd.conf" file > > belongs in "/usr/local/apache/conf"... If you've used the RPM installation > > method, I'd guess that the file goes in "/etc"... > > > > Good luck... > > > > ----- Original Message ----- > > From: "Jan-Erik Bullett" <jan-erik@cableinet.co.uk> > > To: "Steve Brazill" <yubby@lanset.com> > > Sent: Thursday, July 26, 2001 11:04 PM > > Subject: Re: [PHP-INST] MIME types > > > > > Hi again, not quite there yet > > > > > > Steve Brazill wrote: > > > > > > > Do you mean the 2 lines that should be in your "httpd.conf" file ?? > > > > > > > > AddType application/x-httpd-php .php .php3 .php4 .htm > > > > AddType application/x-httpd-php-source .phps > > > > > > > > > > Ok, I added the above two files to the BOTTOM of my > > /etc/httpd/conf/httpd.comf > > > file > > > is there a certain place to add these lines, or will the very bottom do? > > > > > > then, where do I copy the php.ini to? my /usr/local/lib directory is > > empty. > > > should it go here, in the php dir (where it already is) or somewhere > > different > > > entirely? > > > I don't think it needs editing. > > > > > > Jan (getting even more grateful) > > > > > > ------------------------------------------------------------------------ > > Name: httpd.conf.php4 > > httpd.conf.php4 Type: unspecified type (application/octet-stream) > > Encoding: quoted-printable > > > -- > PHP Install Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-install-unsubscribe@lists.php.net > For additional commands, e-mail: php-install-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.install (#3882) next »