php-install Digest 4 Dec 2001 06:30:57 -0000 Issue 585

Topics (messages 5176 through 5178):

Re: Strange problem with mime-type
        5176 by: Veronica Yuill

Building Extensions and Installing Extensions
        5177 by: Colin Snover

Unable to install PHP 4.0.6 with Apache on Win98
        5178 by: Balraj Dhaliwal

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Hi Chris
Chris <[EMAIL PROTECTED]> a écrit

> Hello,
>  This is an easy answer. You MUST define this in addition to the others
> listed in the httpd.conf file:
>
> index.php index.php3 index.php4 index.phtml index.phps
>
> this(ese) lines are found under the heading:
> <IfModule mod_dir.c>
>     DirectoryIndex index.html index.htm index.php default.html default.htm
> </IfModule>
>
> Your ISP should know this. Simply tell him/ her to add them. :-)
>
>
I thought it might be something like that. So I asked them -- and they
refused, even after I explained that lack of this was displaying my source
code to the world. Unfortunately, I didn't choose this host, the client did,
so I can't easily do the obvious thing -- tell them to take a flying leap! I
hoped I might be able to use a .htaccess file to achieve the same ends, but
I think they must have disabled using .htaccess for this purpose as I can't
get it to work -- although it does work for user authorization, with a
.htpassword file.

Their suggested solution? Create an index.html file in each directory, with
a meta-refresh of zero, redirecting to the real index file! Great ...

Veronica


--- End Message ---
--- Begin Message ---
Hi. I've a couple newbie questions for everyone.
First, how do I build something (like GD) to make an .so file? And how do I get
it to go in the proper directory...or, if I change the extensions directory in
php.ini, can I change it to something like /bin/lib and not have it hiccup (or
commit suicide)? How about multiple extension directories, like /bin/lib and
/bin/local/lib?
Second, how the hell do I install extensions on-the-fly? I know I can add an
EXTENSION= line to php.ini, but is there a way to invoke, for example, a shell
command to do this for me? (This is especially important|useful for .SO files
that aren't in /usr/lib/apache/php.)
Thanks in advance!!
_____
Colin Snover
VeHost Support Services

--- End Message ---
--- Begin Message ---
New Apache/PHP4 user needs help...

I have got Apache 1.3.22 running on Win98SE. When the console is started
it reports "Apache/1.3.22 (Win32) running..." and the "http://localhost";
shows that Apache has been configured and is running.

However, after installing PHP 4.0.6 CGI manually into c:\php4 using the
following:

1. edit c:\windows\php.ini with :
    extension_dir = c:\php4
    doc_root = c:\apache\htdocs
2. edit apache configuration file and add the following lines:
    ScriptAlias /php/ "c:/php4/"
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php .phtml
    Action application/x-httpd-php "/php/php.exe"

These lines were added after the:
    ScriptAlias /cgi-bin/ "C:/Program Files/Apache
Group/Apache/cgi-bin/"
which I assume must still be present.

When restarting the Apache console, the same message appears as before:
"Apache/1.3.22 (Win32) running..."

Here I would have expected to see additional PHP information.

When running "<?php phpinfo();  ?>" as a file called testphp.html, I get
a blank screen. View source [according to the PHP FAQ] shows the source
line which implies that the command was not sent to the server [I assume
the Apache/PHP4 server] correctly.

Any information to help me resolve this problem will be most helpful.
Thanks.

Balraj.


--- End Message ---

Reply via email to