Re: How to set file extension php Mac OSX and PHP 4.0.6
| From: | Stefan Rusterholz | Date: | Mon, 03 Dec 2001 15:33:41 +0000 |
| Subject: | Re: How to set file extension php Mac OSX and PHP 4.0.6 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-76385@lists.php.net to get a copy of this message | ||
----- Original Message -----
From: "Erik Price" <pricee@hhbrown.com>
To: "René Fournier" <rene.fournier@markada.com>
Cc: "Michael B. Weiner" <hunter@userfriendly.net>;
<php-general@lists.php.net>
Sent: Monday, December 03, 2001 4:23 PM
Subject: Re: [PHP] How to set file extension php Mac OSX and PHP 4.0.6
> I don't think that Sherlock can recognize any file in the /etc
> directories. If you never use Terminal, then Sherlock is okay, but if
> you do stuff in the Terminal then you are working in levels of your
> computer that Apple has decided to "hide" from most users. The /etc
> directory is one example of this. For searches of the hard drive
> outside of the Apple-approved Sherlock-searchable directories, read the
> man page for "find". In your case, the file is probably located at
> /etc/httpd/httd.conf. Open this file in pico or emacs, but be sure to
> use "sudo emacs /etc/httpd/httpd.conf" if you are not logged in as root
> because it is not writeable by normal users.
or use locate (you will have to set up the database first). You should be
able to find a tool called "Locator" on www.versiontracker.com which
provides a GUI for locate (although I'd rather use it in terminal).
AND: Sherlock WILL find the files in /etc if you search for "invisible"
files. But unfortunately drag & drop doesn't work for those files and
displayed filepath seems to be wrong (they are always displayed with a path
like "yourharddisk/<filename>")
and another tipp for you:
use BBedit (again available at versiontracker.com or www.barebones.com - for
free) if you don't like terminal apps. It has a point "Open hidden..." below
the menu "File" with which you can easily open and edit the httpd.conf (as
erik said it is normally located under /etc/httpd/httpd.conf) . BBedit will
probably tell you that you haven't appropriate rights to edit and save the
file - log out and log in as root again (or chown/chmod the file).
>
>
> Erik
>
Stefan Rusterholz, s.rusterholz@interaktion.ch
----------------------------------
interaktion gmbh
Stefan Rusterholz
Zürichbergstrasse 17
8032 Zürich
----------------------------------
T. +41 1 253 19 55
F. +41 1 253 19 56
W3 www.interaktion.ch
----------------------------------
> On Sunday, December 2, 2001, at 04:15 PM, René Fournier wrote:
>
> > OK, that makes sense--that's what I did under WinME. The only problem
> > is that I can't seem to find the httpd.conf file anywhere. At least,
> > Sherlock is not returning any results. Do you know which directory
> > httpd.conf is in?
> >
> > ...Rene
> >
> > On Sunday, December 2, 2001, at 01:56 PM, Michael B. Weiner wrote:
> >
> >> modify the apache configuration file (i.e. httpd.conf) and add it as
> >> and AddType, as in the following:
> >>
> >> AddType application/x-httpd-php .php4 .php3 .phtml .php
> >> AddType application/x-httpd-php-source .phps
> >> HTH
> >> --
> >>
> >> René Fournier wrote:
> >>
> >>> I have successfully installed PHP 4.0.6, and it works! Only problem
> >>> is that Apache only sends files to the PHP module that have a .php
> >>> extension. However, I need to name the files .php4 (long story). As
> >>> it stands, all I see is the actual PHP source, not the output.
> >>>
> >>> Does anyone know how I can change Apache and/or the PHP module to
> >>> recognize .php4 files and execute them as such?
> >>>
> >>> Thanks.
> >>>
> >>> ...Rene
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
>