php-install Digest 26 Mar 2002 02:29:31 -0000 Issue 762

Topics (messages 6466 through 6474):

Re: what's going on?
        6466 by: Jürgen Schoch

Re: Perl with apache on win 2000 server
        6467 by: Jürgen Schoch

Re: problem compiling with mcrypt support
        6468 by: brian ally
        6469 by: Lucas Spiegel

Re: HTTP_WSER_AGENT
        6470 by: Chris Cover

Re: SMTP port Problem - php.ini
        6471 by: Andreas Grabmüller

Re: Unable to load php_oci8 after update? - Found the answers
        6472 by: John Hofstad-Parkhill

Error msg PHP4.2.1 as napi
        6473 by: Donald McKnight

Re: php executable
        6474 by: Dr CHEUNG Ngai Tseung

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 ---
Do you use the cgi-version or the loadable module?
How does your httpd.conf look like?
For cgi-version of php try adding these lines to httpd.conf:
   # Path to PHP.EXE directory -- change Path in ScriptAlias to suit your
config.
    # Attention: Paths are unix style with slash not backslash, even
onWindows-PCs
    ScriptAlias /php4/ "c:/webserver/php"
    Action application/x-httpd-php4 "/php4/php.exe"
    AddType application/x-httpd-php4 .php
    AddType application/x-httpd-php4 .php3
    DirectoryIndex index.html default.htm index.php index.php3


Hope to help
Jürgen Schoch


Marek koz³owski wrote:

> :-)
> I'm just testing on win98 (sorry, will change to Solaris8 soon..),
> apache 1.3.23. PHP 4.1.2 manually installed
> Lines (LoadModule, AddType, AddModule) to httpd.conf added :)
> php.ini exist, doc_root OK.
> When trying to call for example: http://myIP/file.php the browse ask:
> 'open file with.. or download?'
> Some misconfiguration, but what??
> Best regards,
> Marek Kozlowski

--- End Message ---
--- Begin Message ---
e.g win32 binaries for Perl at http://aspn.activestate.com/ASPN/Perl
(their are also distributions by other providers)
e.g win32 binaries for apache at www.apache.org

In apache1.3.23 httpd.conf is a longer paragraph explaining how to do
this.
You either use the unix-style she-bang and script-alias (e.g. all perl
scripts in apache/cgi-bin/) or you rely on the windows registry which
can associate certain file extensions with applications. eg. .doc is
opened by MS-Word and .pl will be opened by perl.exe

 # Attention: All Paths in apche httpd.conf  are unix style with slash
not backslash, even on Windows-PCs

Yours
Jürgen

Martin wrote:

> How do I install this and what do i put in
> the http.conf...?
> Anyone who knows this...
> Where can i download a workable Perl ?
>
> --
> Martin Eriksson
> webdesigner & Utvecklare
> ----------------------------------------------------------------
> [EMAIL PROTECTED]
> http://www.svensk-design.com

--- End Message ---
--- Begin Message ---
'lo

>  >I'm having a problem installing php with mcrypt support. Here's my 
> setup:
>
>> debian linux
>> Apache/1.3.19
>> php 4.1.2
>> libmcrypt 2.5.0 (alternately tried mcrypt 2.2.6 and libmcrypt 2.4.22)
>
>
>> I got libmcrypt to install, but when I try to configure php "with 
>> mcrypt" I get problems.This is what I type to configure php:
>> ./configure  --with-mcrypt=/home/myuserdir/php /
>
>
> Hmm, so mcrypt is in your home directory? I installed mcrypt in the 
> default location (/usr/local/lib), then compiled php with, simply 
> --with-mcrypt (no =SOME_DIR). Have you tried that? Although, maybe 
> it's an issue with ld.so.conf ... sorry, Configure isn't my strong piint


 >I have tried it without specifying the directory, but I think if I 
don't it says it can't find it. I'm using my home directory because I'm 
"virtual hosting" and if I don't, I get permission >errors. What is 
"ld.so.conf", and where would I find it?

ld.so.conf (in /etc on my box) contains a list of dirs that ld (gnu 
dynamic linker) checks for shared objects/libraries, ELF, etc. You won't 
have any control of that if you're virtual-hosting. Try doing:
LD_LIBRARY_PATH=/path/to/the/mcrypt/lib:$LD_LIBRARY_PATH
export $LD_LIBRARY_PATH

which only affects your environment. That might do the trick.

regards
/b

--- End Message ---
--- Begin Message ---
Hey...

>'lo
>
>>  >I'm having a problem installing php with mcrypt support. Here's my setup:
>>
>>>debian linux
>>>Apache/1.3.19
>>>php 4.1.2
>>>libmcrypt 2.5.0 (alternately tried mcrypt 2.2.6 and libmcrypt 2.4.22)
>>
>>
>>>I got libmcrypt to install, but when I try to configure php "with 
>>>mcrypt" I get problems.This is what I type to configure php:
>>>./configure  --with-mcrypt=/home/myuserdir/php /
>>
>>
>>Hmm, so mcrypt is in your home directory? I installed mcrypt in the 
>>default location (/usr/local/lib), then compiled php with, simply 
>>--with-mcrypt (no =SOME_DIR). Have you tried that? Although, maybe 
>>it's an issue with ld.so.conf ... sorry, Configure isn't my strong 
>>piint
>
>
>  >I have tried it without specifying the directory, but I think if I 
>don't it says it can't find it. I'm using my home directory because 
>I'm "virtual hosting" and if I don't, I get permission >errors. What 
>is "ld.so.conf", and where would I find it?
>
>ld.so.conf (in /etc on my box) contains a list of dirs that ld (gnu 
>dynamic linker) checks for shared objects/libraries, ELF, etc. You 
>won't have any control of that if you're virtual-hosting. Try doing:
>LD_LIBRARY_PATH=/home/path/to/mcrypt/lib:$LD_LIBRARY_PATH
>export $LD_LIBRARY_PATH
>
>which only affects your environment. That might do the trick.
>
When I do that (I assume when I'm in the php-4.1.2 dir, and assuming 
I don't need to do anything beforehand) it gives me an error: "bash: 
export: `/home/path/to/mcrypt/lib:': not a valid identifier"

Any more ideas, or you know what I'm doing wrong?
Thanks,
Lucas
-- 
Fruition Design Collective
http://fruitiondesign.com
Against Patriarchy Conference (Eugene)
http://fruitiondesign.com/againstpatriarchy
Deal With It. (anti-sexist men's zine)
http://fruitiondesign.com/dealwithit
the Insurgent ("news" paper)
http://theinsurgent.org
--- End Message ---
--- Begin Message ---
For anyone who may be following the thread, and
because there's no information about the problem
I had with HTTP_WSER_AGENT on the Net, here's the
problem:

When AtGuard 3.2 Firewall (maybe some other firewalls)
with privacy options for HTTP headers turned on,
the Windows system sends HTTP_WSER_AGENT, instead
of HTTP_USER_AGENT.

Yea... I'm a big dumb animal! =)

-C.

>Will you take a look at http://devel.foamandform.com/phpinfo.php,
>please? The page uses phpinfo() to show that both in the "PHP Variables"
>section and the "Apache Environment" section that HTTP_USER_AGENT has
>somehow become HTTP_WSER_AGENT.
>
>$HTTP_SERVER_VARS["HTTP_WSER_AGENT"]
>HTTP_WSER_AGENT
>
>Of course, the PHP var should be $HTTP_SERVER_VARS["HTTP_USER_AGENT"].
>
>The value of the variable, for me, is UCDDJBLVLMHAALPTCXLYRWTQTIPWIGYOKS.
>
>I've never seen this. I find no useful information about it
>via a Google search for HTTP_WSER_AGENT. What is this, and 
>how can it be corrected?
>
>Thanks for any help!
>
>-C.
>
>Chris Cover <[EMAIL PROTECTED]>


--- End Message ---
--- Begin Message ---
I have never tried that under windows... but try localhost:22

--
MFG GameCrash

Webmaster Let'z Play
@ http://www.letzplay.de

Webmaster Sharp-Forum.de
@ http://www.sharp-forum.de

"Sijan Khadka" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have Window 2000 server with PHP 4.1.2 installed.....
> It has MailMax running in port 25 and Microsoft SMTP  at port 22.
>
> The problem is that the php mail() function is not working....
> I get errors like -
> Warning: Failed to Connect in
D:\INETPUB\websites\sijan.com.np\mail\mail.php
> on line 2
>
> And
> This is how the file 'php.ini' looks..
>
> [mail function]
> SMTP   = localhost ; for Win32 only
> sendmail_from = [EMAIL PROTECTED] ; for Win32 only
>
> I think PHP is taking port 25 as default SMTP port....now i need to change
> that to 22...
> But i didn't find place to put port no. in it....
>
> Please help me.... i really need to fix this urgently...
>
> --
> Sijan Khadka
> sijan.com.np
> [EMAIL PROTECTED]
>
>


--- End Message ---
--- Begin Message ---
I've solved the problems.

1). The new(er) version of PHP uses functions apparantly not found in Oracle
8.0.6, the Oracle 8.1.7i  OCI.DLL has that support.
2). The installation of Oracle 8.1.7 does nothing, it turns out that is a
known problem:
http://www.orafaq.com/cgi-bin/msgboard/view-thr.cgi?board=windows&message=10
27

* In trying to figure out why 8.1.7 would not install, I completely
de-installed 8.0.6.

Once the oracle installation was complete, SQL explorer was able to connect
to my local servers.

The only major change is now that the tnsnames entries xxxx.world now must
be fully specified, before I could connect with xxxx.

"John Hofstad-Parkhill" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I've searched, and cannot find a definitive answer. I'm running w2k,
apache,
> and PHP 4.0.4pl1.
>
> PHP crashes, the apache log says...
> File does not exist:
/data/share/httpd/scripts/..%2f/winnt/system32/cmd.exe
>
> There is random garbage between /scripts/ and /winnt/system32/cmd.exe
>
> I thought I would persue an upgrade. However, once I upgrade to php 4.1.x,
I
> suddenly cannot connect to oracle and get the dreaded "unable to load...".
>
> I've used every viable combination of extensions path I can think of.
> I've copied the dll's to winnt/system32, including OCI.DLL and OCIW32.DLL
> I've verified the security flags for SYSTEM.
>
> I am willing to search, but I'd like to know where.
>
> tia
>
>


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

php compiled fine but when i restarted the webserver I recieved this error
msg.

conf_init: Error running init function load-modules: dlopen of
/SuperPages/ns-home/bin/libphp4.so failed (ld.so.1: ns-httpd: fatal:
relocation error: file /usr/local/lib/libsablot.so.0: symbol
__pure_virtual: referenced symbol not found)

any idea thanks ahead

Donald


--- End Message ---
--- Begin Message ---
I'm not sure if this is the "proper" way to do it, but I separately built a
version of php-standalone by

        ./configure --with-config-file=/etc --prefix=/usr/local --other
options

but without apxs.

This builds an executable in [prefix]/bin

-----Original Message-----
From: Robert Abbate [mailto:[EMAIL PROTECTED]]
Sent: Monday, 25 March 2002 15:37
To: [EMAIL PROTECTED]
Subject: php executable 


hello. I used to have PHP installed by RPM and it had the ability to run php
from the command  line like this:

[momma@ mysite.com]# php -q /home/mysite/test.php

now that I've removed the RPM and configured and installed PHP from the
source code distribution, I don't have that ability anymore. Is there any
way to do this?

Thanks
Robert



--- End Message ---

Reply via email to