php-install Digest 10 Feb 2002 11:41:07 -0000 Issue 693
Topics (messages 5979 through 5980):
Pre-defined vars not working
5979 by: c0p0n
Re: A cry for help.
5980 by: Numero 6
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 ---
The thing is that I reinstalled win2k, so I did with apache, mysql, php
4.1.1 the same.
I installed php (U know, editing php.ini-recommended, copying files
everywere, etc), and tested it with some old scripts I have. Well, the
problem is when I tried to exec my home page. It has a basic IP recognition
check, for me (loopback and 192.168.1.1) and some friends, that always
worked. this time not, it showed me the message for unknown users that I
have predefined if the user IP is not on the database.
Then I wrote a small script, this one:
<?
echo "<br>Nombre del servidor: <b> $SERVER_NAME </b>";
echo "<br>Versión de CGI: <b> $GATEWAY_INTERFACE </b>";
echo "<br>Software del server: <b> $SERVER_SOFTWARE </b>";
echo "<br>URL referida: <b> $HTTP_REFERER </b>";
echo "<br>IP del cliente: <b> $REMOTE_ADDR </b>";
?>
with lots of predefined vars. none of them showed. Some other basic scripts
I wrote worked like a charm. So I began the uninstallation. First I deleted
php.ini from c:\winnt and c:\php and... well, the not working scripts became
alive and began to work.
So it´s a misconfiguration of php.ini, and without it it is using default
settings. What should I look for?
PHP 4.1.1, Apache 2.0.28 (correctly configured), win2ksp2, blah, blah, blah
Thanx in advance...
--- End Message ---
--- Begin Message ---
[EMAIL PROTECTED] (Dadrien Register) wrote in
CB62D2402BEFD01198510060B01AD44CCD1B98@ACB_NT:">news:CB62D2402BEFD01198510060B01AD44CCD1B98@ACB_NT:
> I've tried to read everything about this on the php.net site and work
> everything out, but I just don't understand it. Here's some basic info:
>
> Windows XP Pro
> Apache 1.3.22 or 1.3.23 (Tried both)
> Php 4.1.1 or 4.0.6 (Tried both)
>
> The error I get after I follow all configuration options is:
> "[error] Cannot remove module mod_php4.c: not found in module list"
>
> I have php installed in c:\php and apache in it's normal spot under
> Program Files. Is there any light at the end of this black hole? Please
> let me know. Thanx.
Comment out all the *.c modules in httpd.conf, you don't have them in
windows.
This happens because there is a line that deletes all the modules, but you
never loaded them.
--- End Message ---