php-install Digest 2 Apr 2002 01:40:44 -0000 Issue 772
Topics (messages 6518 through 6528):
Re: really simple question
6518 by: J.Smith
CGI or module
6519 by: P Chase
6523 by: martinahingis
6525 by: P Chase
6526 by: P Chase
Re: PHP install on Apache win XP
6520 by: Jonathan Hilgeman
Re: [Corrected syntax] PHP install on Apache win 2000 Pro
6521 by: Jonathan Hilgeman
Re: IMAP Connection: LOGIN is on two lines
6522 by: Jonathan Hilgeman
6524 by: Brandon Knitter
Problems installing PHP 4.1.2 with OpenLDAP
6527 by: Fred Merritt
PHP on Win 2000 server with Apache
6528 by: Marc
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 ---
Yes, you actually *can* do
<?php
phpinfo()
?>
--- End Message ---
--- Begin Message ---
Hi,
I installed PHP with Apache for Windows (ME).
But I think it's running as CGI, and I was not
able to install it as an Apache module. When I
added the LoadModule command to httpd.conf,
Apache would no longer start.
What could be wrong?
Polly
--- End Message ---
--- Begin Message ---
Be sure that you have downloaded win32 binary zip package (not the
executable one) of php4 from www.php.net.
The executable one does not have the support for apache.
Once you extracted the zip packace to c:\php you will see 2 files there.
php.ini-dist. and php4ts.dll. First rename the firstone to php.ini. Then
copy both these to pu system directory (namely c:\windows\system32 or
c:\windows\system, or both :) )
The last thing is the Load Module thing to apache conf file, httpd.conf.
add these lines:
LoadModule php4_module c:/php/sapi/php4apache.dll
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
"P Chase" <[EMAIL PROTECTED]> wrote in message
news:v01540b00b8cdfad48b2a@[207.97.189.10]...
> Hi,
>
> I installed PHP with Apache for Windows (ME).
> But I think it's running as CGI, and I was not
> able to install it as an Apache module. When I
> added the LoadModule command to httpd.conf,
> Apache would no longer start.
> What could be wrong?
>
> Polly
>
>
--- End Message ---
--- Begin Message ---
>Be sure that you have downloaded win32 binary zip package (not the
>executable one) of php4 from www.php.net.
Oh thanks, that must be what I did wrong. I got the executable.
>The executable one does not have the support for apache.
>
>Once you extracted the zip packace to c:\php you will see 2 files there.
>php.ini-dist. and php4ts.dll. First rename the firstone to php.ini. Then
>copy both these to pu system directory (namely c:\windows\system32 or
>c:\windows\system, or both :) )
>
>The last thing is the Load Module thing to apache conf file, httpd.conf.
>
>add these lines:
>
>LoadModule php4_module c:/php/sapi/php4apache.dll
>AddType application/x-httpd-php .php4
>AddType application/x-httpd-php .php
>AddType application/x-httpd-php .php3
>
>
>"P Chase" <[EMAIL PROTECTED]> wrote in message
>news:v01540b00b8cdfad48b2a@[207.97.189.10]...
>> Hi,
>>
>> I installed PHP with Apache for Windows (ME).
>> But I think it's running as CGI, and I was not
>> able to install it as an Apache module. When I
>> added the LoadModule command to httpd.conf,
>> Apache would no longer start.
>> What could be wrong?
>>
>> Polly
>>
>>
>
>
>
>--
>PHP Install Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
>Be sure that you have downloaded win32 binary zip package (not the
>executable one) of php4 from www.php.net.
>The executable one does not have the support for apache.
Actually, I think I did get the right one. I'm not sure. It
contained php.exe, but also the sapi modules.
The LoadModule command caused Apache errors.
>
>Once you extracted the zip packace to c:\php you will see 2 files there.
>php.ini-dist. and php4ts.dll. First rename the firstone to php.ini. Then
>copy both these to pu system directory (namely c:\windows\system32 or
>c:\windows\system, or both :) )
>
>The last thing is the Load Module thing to apache conf file, httpd.conf.
>
>add these lines:
>
>LoadModule php4_module c:/php/sapi/php4apache.dll
>AddType application/x-httpd-php .php4
>AddType application/x-httpd-php .php
>AddType application/x-httpd-php .php3
>
>
>"P Chase" <[EMAIL PROTECTED]> wrote in message
>news:v01540b00b8cdfad48b2a@[207.97.189.10]...
>> Hi,
>>
>> I installed PHP with Apache for Windows (ME).
>> But I think it's running as CGI, and I was not
>> able to install it as an Apache module. When I
>> added the LoadModule command to httpd.conf,
>> Apache would no longer start.
>> What could be wrong?
>>
>> Polly
>>
>>
>
>
>
>--
>PHP Install Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hi Mark,
So ANY php file does this, or just that install script you tried?
You should have a few lines in your Apache configuration (httpd.conf)
referring to PHP (just do a search for them in a text editor). Please
copy-and-paste them here, along with the current full paths you are using
for the Apache and PHP files.
- Jonathan
-----Original Message-----
From: Mark Knapcik [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 30, 2002 12:48 AM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] PHP install on Apache win XP
Iv'e been trying to install php on my machine, which already has apache and
mysql successfully installed. I did all the instructions in the install
file that pertained to my configuration, and when I got to access and
install script for a forum so that it can put tables in the mysql db, IE
askes me if i want to download the php file instead of running it.
Whats wrong?
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Well, the first one didn't work for obvious reasons that you probably
figured out by now (no echo/print statement).
However, did you change anything in your Apache config and restart it?
Get the echo-this-is-a-test line to work alone, but don't open a new browser
window. Just hit Ctrl+Refresh to see if it fails without having to open a
new browser window.
This sort of sounds like a PHP module problem - perhaps it is crashing for
some reason (pagefaults?). In either case, check your error logs (Apache
ones, if you've set them up) and see if they reveal any information about
the problem.
- Jonathan
-----Original Message-----
From: John D.Wiles [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 30, 2002 8:17 AM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] [Corrected syntax] PHP install on Apache win 2000
Pro
My last meesage contains incorrect php syntax..sorry. Request for help:
This does not work:
<?php "This is a test"; ?>
However, this works:
<?php phpinfo(); ?>
And this works:
<?php
echo "This is a test";
phpinfo();
?>
Then AFTER running the one before, this works:
<?php echo "This is a test"; ?>
Until a new browser window is started
- John
Windows 2000 Professional
Apache 1.3.22
IIS running only as FTP server
_____________________________________________________________
Get a free email account at http://freemail.wwwddd.com
_____________________________________________________________
Run a small business? Then you need professional email like [EMAIL PROTECTED]
from Everyone.net http://www.everyone.net?tag
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
So this is a PHP script trying to log into an IMAP server? Make sure your
username is available to the script. You may have the "login" part inside a
function, and since functions don't have immediate access to all the
variables, you'll need to global it:
global $UsernameVariable;
...in order for the function to work correctly. Or I might just be totally
off on this.
- Jonathan
-----Original Message-----
From: Brandon Knitter [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 30, 2002 10:14 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: [PHP-INST] Re: IMAP Connection: LOGIN is on two lines
> I recently installed PHP (4.1.2) with IMAP support using UWASH's c-client
> library on a Solaris machine without issue. When I did the same on Linux
I
> could not login to my IMAP server. Snooping the connection on the IMAP
> server
> resulted in the following:
>
>
> #
> strings /tmp/snoop.log
> snoop
> &H);
> e* OK binge Cyrus IMAP4 v1.5.19 server ready
> Ywv00000000 CAPABILITY
> &HTI
> * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS
> X-NON-HIERARCHICAL-RENAME NO_ATOMIC_RENAME UNSELECT
> 00000000 OK Completed
> 00000001 LOGIN "
> " ********
> 00000001 NO Invalid user
> 00000002 LOGIN "
> " ********
> 00000002 NO Invalid user
> 00000003 LOGIN "
> " ********
> 00000003 NO Invalid user
> 00000004 LOGOUT
> * BYE LOGOUT received
> 00000004 OK Completed
> &HRx
> #
>
> (I have replaced my password with "*".
>
> The odd part is that the LOGIN is on two lines. I have echo'd out the
> information send to the imap_open command in the script I'm using and all
> is
> well, as a matter of fact, the username is correct in the script, but as
you
> can
> see above, it's blank (replaced by a CR or CRLF).
>
> Any help would be greatly appreciated.
>
> Thanks,
>
> --
> -bk
>
>
>
>
>
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I found it. I was using the Horde stuff, so their things worked fine in one
env, not in another! :)
Turns out that I moved c-client.a to /usr/local/lib instead of coping and
renaming it as libc-client.a, bonehead mistake.
Why is it that PHP doesn't complain about building, and fail ideally, when
missing libraries problems exist? I find that there are a lot of non-standard
issues in the build process of PHP which probaly lends to most of the confusion
when more than 4 things are compiled in. For instance, MCAL support makes PHP
not even configure properly in static mode (MCAL is static, PHP is .so) because
the configure conftests put -lmcal everywhere, even where they are not needed,
and the callbacks are not implemented, causing configure to think that simple
things like getcwd doesn't exist.
Oh well, I found this! :) Any chance someone ownes the build process for imap
and mcal that I can trade soe emails with. It might ease the frustrations for
others.
Thanks,
--
-bk
Quoting Jonathan Hilgeman <[EMAIL PROTECTED]>:
> So this is a PHP script trying to log into an IMAP server? Make sure your
> username is available to the script. You may have the "login" part inside a
> function, and since functions don't have immediate access to all the
> variables, you'll need to global it:
>
> global $UsernameVariable;
>
> ...in order for the function to work correctly. Or I might just be totally
> off on this.
>
> - Jonathan
>
>
>
> -----Original Message-----
> From: Brandon Knitter [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, March 30, 2002 10:14 AM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: [PHP-INST] Re: IMAP Connection: LOGIN is on two lines
>
>
> > I recently installed PHP (4.1.2) with IMAP support using UWASH's c-client
> > library on a Solaris machine without issue. When I did the same on Linux
> I
> > could not login to my IMAP server. Snooping the connection on the IMAP
> > server
> > resulted in the following:
> >
> >
> > #
> > strings /tmp/snoop.log
> > snoop
> > &H);
> > e* OK binge Cyrus IMAP4 v1.5.19 server ready
> > Ywv00000000 CAPABILITY
> > &HTI
> > * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS
> > X-NON-HIERARCHICAL-RENAME NO_ATOMIC_RENAME UNSELECT
> > 00000000 OK Completed
> > 00000001 LOGIN "
> > " ********
> > 00000001 NO Invalid user
> > 00000002 LOGIN "
> > " ********
> > 00000002 NO Invalid user
> > 00000003 LOGIN "
> > " ********
> > 00000003 NO Invalid user
> > 00000004 LOGOUT
> > * BYE LOGOUT received
> > 00000004 OK Completed
> > &HRx
> > #
> >
> > (I have replaced my password with "*".
> >
> > The odd part is that the LOGIN is on two lines. I have echo'd out the
> > information send to the imap_open command in the script I'm using and all
> > is
> > well, as a matter of fact, the username is correct in the script, but as
> you
> > can
> > see above, it's blank (replaced by a CR or CRLF).
> >
> > Any help would be greatly appreciated.
> >
> > Thanks,
> >
> > --
> > -bk
> >
> >
> >
> >
> >
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Hi,
I am trying to install PHP 4.1.2as a shared module with with Apache
1.3.22, and OpenLDAP 2.0.23.
When I try to start Apache, I get the following error:
apachectl sslstart
Syntax error on line 239 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server: undefined
symbol: ldap_value_free
/usr/bin/apachectl sslstart: httpd could not be started
I have seen this problem appear many times in this forum, and others,
but so far, none of the remedies suggested have worked on my system(SuSE
7.1).
My php configure is as follows:
./configure
--with-apxs=/usr/local/apache/bin/apxs
--with-config-file-path=/usr/local/apache/conf
--enable-versioning
--with-mysql
--enable-ftp
--with-gd=/usr/local/gd-1.8.4
--enable-bcmath
--disable-debug
--enable-memory-limit
--with-ldap=/usr/local/src/openldap-2.0.23
--with-sablot=/usr/src/Sablot-0.44
Configure, make clean, make, and make install all work without error.
LDAP(by the way, I tried 4 different versions), installs, and passes all
tests, and I can access it from another machine.
Following some of the suggestions in the mailing lists, I checked the
ld.cache, with ldconfig --verbose, and the appropriate lines in the
output were
/usr/local/lib:
liblber.so.2 -> liblber.so.2.0.15
libldap.so.2 -> libldap.so.2.0.15
libldap_r.so.2 -> libldap_r.so.2.0.15
. . .
This seems to indicate that the LDAP libraries are loaded in the cache.
I then checked the built libphp4.so, with ldd, and got the following
ldd /usr/local/apache/libexec/libphp4.so
libdl.so.2 => /lib/libdl.so.2 (0x40175000)
libttf.so.2 => /usr/lib/libttf.so.2 (0x40178000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x401a0000)
libpng.so.2 => /usr/lib/libpng.so.2 (0x401bf000)
libz.so.1 => /lib/libz.so.1 (0x401ea000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x401f9000)
libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x402dc000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x402ec000)
libresolv.so.2 => /lib/libresolv.so.2 (0x4031a000)
libpam.so.0 => /lib/libpam.so.0 (0x4032b000)
libgd.so.4 => /usr/lib/libgd.so.4 (0x40333000)
libm.so.6 => /lib/libm.so.6 (0x40364000)
libnsl.so.1 => /lib/libnsl.so.1 (0x40382000)
libc.so.6 => /lib/libc.so.6 (0x40398000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x2aaaa000)
If I have correctly understood(which may not be the case), the linux
loader, I think I should have expected to see somewhere a reference in
libphp4.so to the ldap libraries, as I think that they should be loaded
when libphp4.so is loaded. If they are not loaded during
initialisation, they could perhaps be loaded at first call, but if they
are, I am a little out of my depth here.
So it would seem to me that the the PHP configure/make/make install
cycle is not correctly building libphp4.so. This could be a problem
with the configure, or with my machine setup. I can think of two ways
to solve the problem, - fix the configurations script, or manually add
something to the make file, to force the loading of the libraries, but I
have to say that I think this might be a little beyond me at the moment.
Any suggestions would be gratefully appreciated. Sorry for the long append.
Best regards. . . Fred
--- End Message ---
--- Begin Message ---
I have apache web server running on a Windows 2000 server with SP2.
I have followed all the directions, atleast I think I have, for the
installation of PHP.
But, when I try to run the php files I only see the text, they are obviously
not being send to the php for compilation.
Does anyone have any details on a proper installation or any ideas?
Thank you!!
Marc
--- End Message ---