php-install Digest 17 Jul 2002 19:21:45 -0000 Issue 936
Topics (messages 7776 through 7787):
Re: PHP - HOW TO MAKE IT WORK WITHIN APACHE
7776 by: J Fazenda
7787 by: Scott Lamb
Error in installing PHP as an apache-module
7777 by: Gabriel Preda
Re: php install
7778 by: Matthew Kurowski
Re: Add support for php4 extension in IIS
7779 by: Matthew Kurowski
LDAP+TLS configuration problems
7780 by: Matt Wirges
why i can't execute my php codes
7781 by: murtaza
Landscape Printing trouble
7782 by: Salvador Gil
php 4.2.1 and apache 2.0.39 compile error
7783 by: electroteque
7784 by: Chris Santerre
Installing php4 on Solaris 8 with apache
7785 by: Thomas Langås
cgi.force_redirect
7786 by: selinvict.tscnet.com
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 Scott,
Many thanks for your help.
1 - I do see several blocks <IfDefine>...</IfDefine> in httpd.conf but I
only got:
root 3353 0.0 0.3 1728 564 pts/1 s 15:48 0:00 fgrep httpd
when I did
ps auxww | fgrep httpd
2 - PHP seems to be installed. I got
php -4.0.6-7
when I did
rpm -q php
3 - I modified the Apache start-up script as follows:
(I will try to creat the separate file later)
# Source additional OPTIONS if we have them.
if [ -f /etc/sysconfig/apache ] ; then
. /etc/sysconfig/apache
fi
# note JF 02/07/17
# added following 2 lines
OPTIONS="-DHAVE_PHP4"
echo $OPTIONS
4 - It still doesn't work.
I'm testing with following index.html. Can you suggest any other test ?
<!-- Contents "under construction" -->
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;
charset=iso-8859-1">
<title>jfazenda</title>
</head>
<BODY Text='#000000' BGCOLOR='#ffffff' LINK='#aa0000' VLINK='#aa0000'
ALINK='#aaaa00'>
<center>
<font face='arial' size='2' color=#333333>
<br><br><h3>under construction</h3>
<br><br><hr width=50%>
<br>
<P>Testing PHP</P>
<br>
<?php print 'Hello World'; ?>
<br><hr width=50%>
<br><br>Contact : [EMAIL PROTECTED]</font>
</body>
</html>
Thanks again, JF
> Subject: Re: PHP - HOW TO MAKE IT WORK WITHIN APACHE
> Date: Tue, 16 Jul 2002 15:32:45 -0500
> From: Scott Lamb <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
>
> J Fazenda wrote:
> > I found the following lines in the httpd.conf that was installed in
my
> > system:
> >
> > <IfDefine> HAVE_PHP4>
> > LoadModule php4-module
> > </IfDefine>
> > .....
> > <IfDefine> HAVE_PHP4>
> > AddModule php4-module.c
> > </IfDefine>
> >
> > And the following lines in the Apache startup script :
> [...]
> > daemon $httpd `moduleargs` $OPTIONS
> >
> > The "Apache Aministrator's Handbook" I'm using says that to activate
> > modules, Apache should be started" with /usr/sbin/httpd -D<name>."
> > Is it correct to assume that some "options" should be passed to the
> > function start() from the file ./etc/sysconfig/apache ?
>
> Take a look at that `moduleargs`. You'll also find in the file a
> function called moduleargs that is intended to generate all of those
> defines. It takes a file list of /usr/lib/modules/*.so and applies
some
> regular expressions. Do a "ps auxww | fgrep httpd" and you should see
a
> bunch of -DHAVE_xxx arguments.
>
> > Were can I get this famous file ./etc/sysconfig/apache or
instructions
> > to make it. I cannot find this file in my system.
>
> There's nothing very special about it. It contains a shell script
> fragment so you can customize options. You could create it with text
> like this:
>
> OPTIONS="-DHAVE_PHP4"
>
> but one has to wonder why it doesn't do that on its own. My guess is
below.
>
> > This may be a bit academic because I guess I could try to make it
work
> > by just commenting the "If" and "/If" lines around "LoadModule" and
> > "AddModule", but I would like to follow the thinking of whoever made
> > these start and conf files.
>
> RedHat made those scripts. The goal, I think, was to be able to
> distribute things like PHP as seperate modules and not have to change
> the httpd.conf when they are installed and removed. So, you possibly
> have various things that wouldn't without additional RPMs in those
> <IfDefine>s.
>
> I suspect you don't have the PHP RPMs installed. Do a "rpm -q php".
> Also, your configuration doesn't quite match up with mine. My RedHat
7.2
> system has this instead:
>
> <IfDefine HAVE_PHP4>
> LoadModule php4_module modules/libphp4.so
> </IfDefine>
>
> ...
>
> <IfDefine HAVE_PHP4>
> AddModule mod_php4.c
> </IfDefine>
>
> so maybe you don't have the latest RPMs. Go to RedHat's update site,
> make sure you have the latest Apache and PHP stuff. This is
particularly
> important because there was a big Apache security advisory lately.
>
> --
> Scott Lamb
--- End Message ---
--- Begin Message ---
J Fazenda wrote:
> Hi Scott,
>
> Many thanks for your help.
>
> 1 - I do see several blocks <IfDefine>...</IfDefine> in httpd.conf but I
> only got:
> root 3353 0.0 0.3 1728 564 pts/1 s 15:48 0:00 fgrep httpd
> when I did
> ps auxww | fgrep httpd
Start Apache first. :) That command will show you all the running Apache
processes, their arguments, and a bunch of other information about them.
> 4 - It still doesn't work.
> I'm testing with following index.html. Can you suggest any other test ?
Yeah, don't name your test index.html. Use index.php. PHP will process
all the filetypes it has been told to. You should find something like
this in your configuration file:
<IfDefine HAVE_PHP4>
AddType application/x-httpd-php .php
</IfDefine>
(after the LoadModule/AddModule stuff.) If you want that to be in the
default list of things to check in a new directory, make sure index.php
is in your DirectoryIndex line.
You could have an equivalent AddType line for .html, but it would be
dumb. PHP would process all HTML files, which would slow things down
unnecessarily.
--
Scott Lamb
--- End Message ---
--- Begin Message ---
I'm recieving an error that apache could not start because of some entry
point not found in php4ts.dll...
I'm using Win2000; APACHE_1_3_12_WIN32; PHP404...
I've tried copying the file into WinNT/system32, WinNT/system, WinNT and
in Apache's directory... but that wouldn't work...
What else can I try ?
Gabriel Preda - Association of Municipalities in Romania
--- End Message ---
--- Begin Message ---
You really didn't say what wasn't working... leaving alot of faith to the
Fates I guess?
I would guess your register_globals is off without even knowing the problem.
Turn it on in php.ini and restart IIS services.
Best,
Matthew Kurowski
----- Original Message -----
From: "Serei Keo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 17, 2002 1:28 AM
Subject: [PHP-INST] php install
I'm sure I have a problem with my server, I'm using IIS on win2k and I'm
having problems with forms, just a basic input to a form, then sending the
info to a php script to output the input. The same script DOES work on an
apache server, but it doesnt work on my IIS server. I can do other things
with php on my computer like connec to and display contents from a mysql
database. I only seem to be having problems with forms at the moment. Im
using IIS that is on the win2k pro cd ( I think its IIS 5), the latest
version of php running as cgi.
This is my html form
<form method="post" action="form01.php">
Enter Your Name
<input type="text" name="userName"><br>
<input type="submit" name="submit" value="Submit form">
</form>
This is my php script
<?php
if ($submit=="Submit form")
{
echo "Hello, $userName";
}
?>
--- End Message ---
--- Begin Message ---
Read the INSTALL (I think it's there under IIS installation on Win2k etc
platforms).
You need to add .php4 to the extensions list under the websites properties -
read the INSTALL file and you'll see the .php reference. Just do the same
for .php4... if you read that file, you'll also see that it says something
like "... if you need to add support for other extensions such as... " then
you'll also know you're in the right spot.
Best,
Matthew Kurowski
----- Original Message -----
From: "Michael Leung" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, July 14, 2002 10:47 PM
Subject: [PHP-INST] Add support for php4 extension in IIS
> Hi all,
>
> I have previously downloaded PHP 4.1.2 windows installer and installed it.
> How do I make IIS recognise PHP files with extension .php4, ie. reference
a
> PHP4 webpage in the URL ?
>
> Any ideas appreciated.
>
> Many thanks,
> Michael.
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Hello,
I am trying to use PHP's LDAP module with TLS.
I have no problems using the normal LDAP functions, however
I am never able to use ldap_start_tls(). Everytime I do so I get
the following error:
"Warning: LDAP: Unable to start TLS: Not Supported in <php page here> on line n"
I have verified that PHP is linked against the proper ldap
libraries. (These libraries have been compiled with TLS support
as I have other LDAP utilities that use TLS without problem)
morpork:/usr/local/apache/libexec# ldd libphp4.so | grep ldap
libldap.so.2 => /usr/local/ldap/lib/libldap.so.2 (0x4015c000)
liblber.so.2 => /usr/local/ldap/lib/liblber.so.2 (0x401ba000)
I have also verified that both LDAP servers I have tried connecting
to are TLS enabled.
I've looked at the PHP source that makes the ldap_start_tls_s connection
and noted that it wasn't much different from other applications that use it.
Which leaves me fairly confused.
Anyone have a similar problem, thoughts, suggestions, ideas?
-matt
--
Matthew Wirges
Developer, CERIAS Incident Response Database
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
I have a problem!
I cant make work PHP with Apache .
php is : php 4.2.1
apache is : Apache Server version 1.3.23
the installation is successful , but when i'm tring to run the php code i'm not able
to see any thing in the browser except the title in the php code "Hello World".
I made the php code in dreamweaver 4 and saved it in the C:\Program Files\Apache
Group\Apache\htdocs and when i tried to execute the code in the browser by giving
http://192.168.0.170/php_test.php i'm not able to see any thing in the browser except
the title.
I also want to know that every thime i have to execute a php code i've to save it in
the C:\Program Files\Apache Group\Apache\htdocs, if yes the nis ther any way out that
i can execute my php code saved in any folder and any drive on my hard disk with out
saving it to C:\Program Files\Apache Group\Apache\htdocs.
and wht abot those information which i provided during the installation of apache
server info like :
Network Domain : Kuwaitnet
Server Name : Murtaza
Administrator's email add : [EMAIL PROTECTED]
wht r these information,
pls help , regarding this.
best regards
murtaza
--- End Message ---
--- Begin Message ---
Does any body can help me.
I'm trying to print in Landscape Format, but I can't.
The instructions I'm using are:
$handle = printer_open("\\\\SRV_MEX\La_2_1");
printer_start_doc($handle, "Aviso Prorroga");
printer_start_page($handle);
printer_set_option($handle, PRINTER_ORIENTATION,
PRINTER_ORIENTATION_LANDSCAPE);
... my print commands
The report function ok, but the orientation is wrong (PORTRAIT)
Any idea?
Thank's in advance.
--- End Message ---
--- Begin Message ---
hi guys i am getting this error when compiling php
-g -O2 -pthread -DZTS -prefer-pic -c php_functions.c
php_functions.c:93:27: missing binary operator before '!'
make[3]: *** [php_functions.lo] Error 1
make[3]: Leaving directory `/usr/local/etc/php-4.2.1/sapi/apache2filter'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/etc/php-4.2.1/sapi/apache2filter'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/etc/php-4.2.1/sapi'
make: *** [all-recursive] Error 1
i have also tried the snapshot version of php but then it told me it
requires apache 2.40 but there is nowhere to get that ??
--- End Message ---
--- Begin Message ---
I believe someone else sent me the exact same problem. They restarted from
scratch and got it to work, but I think they got the latest snapshot. I had
to go in and actually change line 92 and 94 of the php_functions.c file.
They are an if loop for an include statement. Just get rid of the if part
and include it. That was to get past that error. I ended up having to get
the latest snapshot and that error was already fixed in it.
-----Original Message-----
From: electroteque [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 1:07 PM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] php 4.2.1 and apache 2.0.39 compile error
hi guys i am getting this error when compiling php
-g -O2 -pthread -DZTS -prefer-pic -c php_functions.c
php_functions.c:93:27: missing binary operator before '!'
make[3]: *** [php_functions.lo] Error 1
make[3]: Leaving directory `/usr/local/etc/php-4.2.1/sapi/apache2filter'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/etc/php-4.2.1/sapi/apache2filter'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/etc/php-4.2.1/sapi'
make: *** [all-recursive] Error 1
i have also tried the snapshot version of php but then it told me it
requires apache 2.40 but there is nowhere to get that ??
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Configure-line used to configure php4:
./configure --with-mysql=/local --with-oracle=/local/oracle_client --with-ldap=/local
--with-gd=/local --with-zlib
--with-exec-dir=/local/bin --with-versioning --with-gdbm=/local --with-mod_charset
--with-dbase --with-filepro
--with-xml=/local --with-ttf --with-t1lib=/local --without-snmp --enable-calendar
--enable-pic --enable-inline-optimization
--enable-magic-quotes --enable-track-vars --enable-safe-mode --enable-sysvsem
--enable-sysvshm --enable-trans-sid --enable-yp
--enable-ftp --with-apxs=/local/apache/bin/apxs --enable-static --with-sablot=/local
--with-config-file-path=/local/apache/conf/php4 --with-pdflib=shared --enable-bcmath
--with-sysvsem --with-iconv
--with-gettext --enable-shared --with-xslt=sablot --with-curl=/store
--with-xmlrpc=/local --with-dom=/local
--enable-xlst=/local --with-openssl=/local --prefix=/local --with-pdflib=/local
--with-expat-dir=/local --enable-sigchild
dilbert:/usr/src/web/apache_1.3.26/src# ldd -r /local/apache/libexec/libphp4.so
libdl.so.1 => /lib/libdl.so.1
libpam.so.1 => /lib/libpam.so.1
libxmlrpc.so.0 => /local/lib/libxmlrpc.so.0
libexpat.so.0 => /local/lib/libexpat.so.0
libpdf.so.1 => /local/lib/libpdf.so.1
libz.so => /lib/libz.so
libsched.so.1 => /lib/libsched.so.1
libgen.so.1 => /lib/libgen.so.1
libsocket.so.1 => /lib/libsocket.so.1
libnsl.so.1 => /lib/libnsl.so.1
libmysqlclient.so.10 => /local/lib/mysql/libmysqlclient.so.10
libldap.so.2 => /local/lib/libldap.so.2
liblber.so.2 => /local/lib/liblber.so.2
libt1.so.1 => /local/lib/libt1.so.1
libm.so.1 => /lib/libm.so.1
libxml2.so.2 => /local/lib/libxml2.so.2
libgdbm.so.2 => /local/lib/libgdbm.so.2
libcurl.so.2 => /store/lib/libcurl.so.2
libcrypt_i.so.1 => /lib/libcrypt_i.so.1
libresolv.so.2 => /lib/libresolv.so.2
libclntsh.so.8.0 => /local/oracle_client/lib/libclntsh.so.8.0
libc.so.1 => /lib/libc.so.1
libmp.so.2 => /lib/libmp.so.2
libwtc8.so => /local/oracle_client/lib/libwtc8.so
libaio.so.1 => /lib/libaio.so.1
/usr/platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1
symbol not found: ap_block_alarms
(/local/apache/libexec/libphp4.so)
symbol not found: ap_unblock_alarms
(/local/apache/libexec/libphp4.so)
symbol not found: top_module (/local/apache/libexec/libphp4.so)
symbol not found: ap_user_name (/local/apache/libexec/libphp4.so)
symbol not found: ap_max_requests_per_child
(/local/apache/libexec/libphp4.so)
symbol not found: ap_server_root
(/local/apache/libexec/libphp4.so)
symbol not found: ap_user_id (/local/apache/libexec/libphp4.so)
symbol not found: ap_group_id (/local/apache/libexec/libphp4.so)
symbol not found: ap_rwrite (/local/apache/libexec/libphp4.so)
symbol not found: ap_rflush (/local/apache/libexec/libphp4.so)
symbol not found: ap_signal (/local/apache/libexec/libphp4.so)
symbol not found: ap_hard_timeout
(/local/apache/libexec/libphp4.so)
symbol not found: ap_get_client_block
(/local/apache/libexec/libphp4.so)
symbol not found: ap_reset_timeout
(/local/apache/libexec/libphp4.so)
symbol not found: ap_table_get (/local/apache/libexec/libphp4.so)
symbol not found: ap_pstrdup (/local/apache/libexec/libphp4.so)
symbol not found: ap_table_add (/local/apache/libexec/libphp4.so)
symbol not found: ap_table_set (/local/apache/libexec/libphp4.so)
symbol not found: ap_send_http_header
(/local/apache/libexec/libphp4.so)
symbol not found: ap_log_error (/local/apache/libexec/libphp4.so)
symbol not found: ap_block_alarms
(/local/apache/libexec/libphp4.so)
symbol not found: ap_register_cleanup
(/local/apache/libexec/libphp4.so)
symbol not found: ap_unblock_alarms
(/local/apache/libexec/libphp4.so)
symbol not found: ap_getword (/local/apache/libexec/libphp4.so)
symbol not found: ap_uudecode (/local/apache/libexec/libphp4.so)
symbol not found: ap_getword_nulls_nc
(/local/apache/libexec/libphp4.so)
symbol not found: ap_setup_client_block
(/local/apache/libexec/libphp4.so)
symbol not found: ap_add_common_vars
(/local/apache/libexec/libphp4.so)
symbol not found: ap_add_cgi_vars
(/local/apache/libexec/libphp4.so)
symbol not found: ap_kill_timeout
(/local/apache/libexec/libphp4.so)
symbol not found: ap_update_mtime
(/local/apache/libexec/libphp4.so)
symbol not found: ap_set_last_modified
(/local/apache/libexec/libphp4.so)
symbol not found: ap_set_etag (/local/apache/libexec/libphp4.so)
symbol not found: ap_add_version_component
(/local/apache/libexec/libphp4.so)
symbol not found: ap_child_terminate
(/local/apache/libexec/libphp4.so)
symbol not found: ap_sub_req_lookup_uri
(/local/apache/libexec/libphp4.so)
symbol not found: ap_destroy_sub_req
(/local/apache/libexec/libphp4.so)
symbol not found: ap_run_sub_req
(/local/apache/libexec/libphp4.so)
symbol not found: ap_pstrndup (/local/apache/libexec/libphp4.so)
symbol not found: ap_table_setn (/local/apache/libexec/libphp4.so)
symbol not found: __eprintf (/local/apache/libexec/libphp4.so)
symbol not found: __eprintf (/local/lib/libldap.so.2)
symbol not found: __eprintf (/local/lib/liblber.so.2)
symbol not found: __eprintf (/store/lib/libcurl.so.2)
Any idea how to solve this? :)
(If you need more info, I'll be happy to provide the info, just tell me
what you need)
--
Thomas
--- End Message ---
--- Begin Message ---
Hello. I have a fairly "basic" problem, I think. I have
searched the usual documentions, but no luck so far.
I have installed PHP onto my Xitami server running under
Windows 98. I create a simple PHP file and try to
access it through the server, only to get the following:
"This PHP CGI-binary was compiled with
force cgi-redirect enabled. This means that a page only be
served if the REDIRECT_STATUS CGI variable is set,
e.g. via an Apache Action directive."
Very well; I have gone to the php.ini and set the
redirect to 0 (off). This should have fixed the problem,
theoretically, but no. Again, I got the above message.
So I guess I need to do something to that
cgi.redirect_status_env=; line which also appears
in the php.ini ?
Does this sound like a familiar situation to anybody?
(Let me guess: Very!) Anyhow, I'd appreciate
any pointers in the right direction. I'm not concerned
about security issues right now; I just want to make
a simple PHP document display on my Xitami server.
Whatever it takes....
Best regards;
Bill J.
[EMAIL PROTECTED]
--- End Message ---