Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Jul 2000 23:06:35 -0500 (CDT)
From:      Larry Rosenman <ler@lerctr.org>
To:        David@SkytrackerCanada.com
Cc:        Larry Rosenman <ler@lerctr.org>, Matthew West <mwest@uct.ac.za>, questions@FreeBSD.ORG
Subject:   Re: simple php script won't show in netscape
Message-ID:  <200007170406.e6H46Zh09563@lerami.lerctr.org>
In-Reply-To: <397285B1.5582B64E@www3.pacific-pages.com> "from David Banning at Jul 17, 2000 00:04:01 am"

next in thread | previous in thread | raw e-mail | index | archive | help
The copy did that, assuming that php3.ini 
is where the mod_php3 code is expecting it. 

See my follow-on message.

LER

> Larry Rosenman wrote:
> > 
> > what you did should be sufficient.  The -dist has the right magic.
> > 
> > Larry
> > > Larry Rosenman wrote:
> > > >
> > > > Did you create the php.ini or php3.ini file and turn on the interprieter?
> What about turning on the interprieter?
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> > > I simply copied /usr/local/lib/php3.ini from php3.ini-dist
> > > but did not modify it.  I didn't see anything about turning on an
> > > interpreter
> > > in the manual - where is it, and how do I turn it on?
> > >
> > > > Larry
> > > > > Matthew West wrote:
> > > > > >
> > > > > > On Sat, Jul 15, 2000 at 09:49:34PM -0400, David Banning wrote:
> > > > > > > only executes a blank screen in netscape.
> > > > > > If you go View|Page Source (or hit alt-U), what do you see there?
> > > > >
> > > > > I see the source code (my file - test.php3)
> > > > > >
> > > > > > > 'AddType application/x-httpd-php4 .php' is in httpd.conf
> > > > > > that's for php_4_ though
> > > > > The actual lines I have instead are;
> > > > >     <IfModule mod_php3.c>
> > > > >         AddType application/x-httpd-php3 .php3
> > > > >         AddType application/x-httpd-php3-source .php3s
> > > > >     </IfModule>
> > > > >     #
> > > > >     # And for PHP 4.x, use:
> > > > >     #
> > > > >     <IfModule mod_php4.c>
> > > > >         AddType application/x-httpd-php .php
> > > > >         AddType application/x-httpd-php-source .phps
> > > > >     </IfModule>
> > > > >
> > > > > >
> > > > > > > I'm Using FreeBSD 4.0 Stable, and php3
> > > > > > are you sure it's php3?
> > > > > yes, I tried php4 first, but having run into the same problem,
> > > > > and wondering whether it was php4 that was the culprit,
> > > > > I uninstalled php4 and installed php3
> > > > >
> > > > >
> > > > >
> > > > > > > Any idea why it's not showing up in my browser?
> > > > > > Do this:
> > > > > >
> > > > > > telnet localhost 80
> > > > > > then type: "HEAD / HTTP/1.0" and hit Enter twice
> > > > > >
> > > > > > you should get something like this:
> > > > > >  HTTP/1.1 200 OK
> > > > > >  Date: Sun, 16 Jul 2000 20:23:49 GMT
> > > > > >  Server: Apache/1.3.12 (FreeBSD) PHP/4.0RC1
> > > > > >  Connection: close
> > > > > >  Content-Type: text/html
> > > > > >
> > > > > > The "Server:" bit will at least tell you what version of PHP you've got in
> > > > > > there.
> > > > > here's what that got me;
> > > > >
> > > > > # telnet local 80
> > > > > local: No address associated with hostname
> > > > > # telnet localhost 80
> > > > > Trying 127.0.0.1...
> > > > > Connected to localhost.
> > > > > Escape character is '^]'.
> > > > > HEAD / HTTP/1.0
> > > > >
> > > > > HTTP/1.1 200 OK
> > > > > Date: Mon, 17 Jul 2000 03:15:24 GMT
> > > > > Server: Apache/1.3.12 (Unix)
> > > > > Content-Location: index.html.en
> > > > > Vary: negotiate,accept-language,accept-charset
> > > > > TCN: choice
> > > > > Last-Modified: Sat, 20 Nov 1999 21:29:40 GMT
> > > > > ETag: "aeb9b-54e-383712c4;396fc5f4"
> > > > > Accept-Ranges: bytes
> > > > > Content-Length: 1358
> > > > > Connection: close
> > > > > Content-Type: text/html
> > > > > Content-Language: en
> > > > > Expires: Mon, 17 Jul 2000 03:15:24 GMT
> > > > >
> > > > > Connection closed by foreign host.
> > > > > #
> > > > >
> > > > > but it doesn't mean much to me.
> > > > >
> > > > >
> > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > > > > with "unsubscribe freebsd-questions" in the body of the message
> > > >
> > > > --
> > > > Larry Rosenman                      http://www.lerctr.org/~ler
> > > > Phone: +1 972-414-9812 (voice) Internet: ler@lerctr.org
> > > > US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
> > >
> > > --
> > > A vacuum is a hell of a lot better than some of the stuff that nature
> > > replaces it with.
> > >               -- Tennessee Williams
> > 
> > --
> > Larry Rosenman                      http://www.lerctr.org/~ler
> > Phone: +1 972-414-9812 (voice) Internet: ler@lerctr.org
> > US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
> 
> -- 
> A witty saying proves nothing, but saying something pointless gets
> people's attention.


-- 
Larry Rosenman                      http://www.lerctr.org/~ler
Phone: +1 972-414-9812 (voice) Internet: ler@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007170406.e6H46Zh09563>