php-install Digest 4 Apr 2002 10:43:16 -0000 Issue 776

Topics (messages 6549 through 6553):

php session handling with Apache on Windows 2000
        6549 by: Lee, Ford

Re: [PHP-WIN] RE: [PHP-INST] XSLTransformation via Sablotron
        6550 by: Phillip Fox

getting php as cgi working
        6551 by: php

problems
        6552 by: Jason Lau

Need help
        6553 by: cristian craciunoiu

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 ---
I've installed Apache 1.3.23 on Windows 2000 and PHP 4.1.2 on it. I
can't seem to get any session variables set using any of
$_SESSION/$HTTP_SESSION_VARS/session_register() methods to work. My temp
file is valid and track_vars is turned on. I can see that in the temp
folder my session vars are stored in files but nothing is being written
to it. Therefore, my session vars don't get carried across state.
Anybody who came across this and solved it? If you can let me know, that
would be greatly appreciated. thank you.


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

On Tue, 2 Apr 2002, Steve at Puddletown wrote: 
> The result is that Sablotron itself (command line) works fine but this
> code produces
> following error "XML parser error 4: not well-formed (invalid token)".
> 
> I would appreciate any hint. Thanx alot.
> 

You need to add 'file://' before your path information for both the XML 
and XSL files. This solution is mentioned in the second note on step #5 on 
the page refrenced in your email.

The code should look like this:
  // Perform the transformation
  $out = xslt_process($xsltHandle, 'file://'.getcwd().'test.xml', 'file://'.getcwd(). 
'test.xsl');

I was able to get the code you code to work by using the line above, but 
with the original code you sent I got a diffirent error.

I've got PHP Version 4.1.1 (in Module mode), and Apache/1.3.23 on Windows 
2000 Professional.

I think that since the XSLT extension is still experimental the error 
messages are not quite acurate yet, but with this addition to your code 
you should be in business. You might also like to check bugs.php.net for 
some notes on this (XSLT) bug.

XSLT rocks!

Let me know if you have any more questions,



--> Phillip Fox -- [EMAIL PROTECTED]
      405.773.WORX -- 1.888.772.WORX  --  http://www.TheWorxCo.Net/



--- End Message ---
--- Begin Message ---
Hello,
        I am running the module version of php(4.0.5) AND have a cgi
version compiled.  The cgi version is php 4.1.1(compiled with
--enable-discard-path) and this is on a sunOS 5.8 box. I am trying to run
a setuid wrapper that calls a .php4 script.  Whenever I enter
the url to the .cgi wrapper it appears to echo the binary as opposed to
executing it?  If I execute the cgi from the command line it
works fine.  Also if I change the file that the cgi wrapper is pointing to
to a .sh file it runs fine via command line or a url
through apache.  If I enter the url directly to the .php4 in the url it
works and is parsed by the cgi version of php.  Because of
these symptoms I beleive it has something to do with my apache
configuration?  However below I am pasteing the cgi wrapper code,
the apache configuration, and the unf.php4 file that the wrapper points
to.  I hope that someone will be kind enough to
help me out.

//cgi wrapper after gcc i would then chmod 4755.
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
int main(void){
        setuid(1001);
        setgid(10);
system("/path/to/cgi-bin/unf.php4");
}


//I have tried many different types of configurations with the following
apache directives.
//my current settings that should be relevant are below.

AddHandler cgi-script .cgi .pl
Action application/x-httpd-php /usr/local/bin/php
AddType application/x-httpd-php .php .php4

//then where the virtual host is defined I have this.
//i have replaced the directory path and real domain name with
/path/to/mydomain

<VirtualHost www.mydomain.com>
    <Directory "/path/to/mydomain/public_html/cgi-bin">
        AllowOverride None
        Options ExecCGI
        Order allow,deny
        Allow from all
    </Directory>
    ScriptAlias /cgi-bin/ "/path/to/mydomain/public_html/cgi-bin/"
    ServerAdmin [EMAIL PROTECTED]
    DocumentRoot /path/to/mydomain/public_html
    ServerName www.mydomain.com
    ErrorLog /path/to/mydomain/public_html/logs/error_log
    CustomLog /path/to/mydomain/public_html/logs/access_log common
</VirtualHost>


//finally I will post the code to the unf.php4 file that is being called
by the wrapper
//removing the -q has no effect


#!/usr/local/bin/php -q
<?
echo "got here";
system('id');
?>


ive looked all over for an answer to this problem, google, php.net
devshed.com phpbuilder, #php on efnet and openprojects.net, php-general
list, you guys are my last resort.  So if no one can help could someone
give me some other places where i can try to get help for this
problem? Thank you in advance.

~serj

--- End Message ---
--- Begin Message ---
Hi,
I'm having problems in compiling php4.1.2
can someone help me ?
using linux redhat 6.1
thanks

Jason

debug.log
=======
CONFIGURE:   './configure' '--with-apxs=/usr/sbin/apxs'
'--with-pgsql=/usr/include/pgsql' '--with-mysql=/usr/' '--with-gd=/usr/' '--
with-ftp' '--enable-track-vars' '--enable-versioning'
'--enable-magic-quotes' '--enable-track-vars' '--enable-gd-native-ttf'
'--with
-ttf=/usr/' '--with-xml' '--with-imap' '--with-imap-ssl' '--with-kerberos'
'--with-jpeg-dir=/usr/lib/'
CC:         gcc
CFLAGS:     -g -O2
CPPFLAGS:    -DLINUX=2 -DUSE_EXPAT
CXX:
CXXFLAGS:
INCLUDES:    -I/usr/include/apache  -I$(top_builddir)/Zend -I/include -I/usr
//include -I/usr/include/imap -I/usr//include/mysql
LDFLAGS:     -Wl,-rpath,/usr//lib -L/usr//lib -Wl,-rpath,/usr/kerberos/lib -
L/usr/kerberos/lib -Wl,-rpath,/usr/lib/pgsql -L/usr/lib/
pgsql
LIBS:       -lpq -lmysqlclient -lcrypt -lpam -lgd -ljpeg -lcrypt -lresolv -l
m -ldl -lnsl  -lresolv -lcrypt -lgssapi_krb5 -lkrb5 -lk5
crypto -lcom_err
DLIBS:      -lcrypto -lssl -lc-client
SAPI:       apache
PHP_RPATHS:  /usr//lib /usr/kerberos/lib /usr/lib/pgsql
uname -a:   Linux ns1.net2webhost.com 2.2.19-6.2.15 #1 Wed Feb 27 11:05:02
EST 2002 i686 unknown

gcc -o
conftest -g -O2  -DLINUX=2 -DUSE_EXPAT  -Wl,-rpath,/usr//lib -L/usr//lib -Wl
,-rpath,/usr/kerberos/lib -L/usr/kerberos/lib -Wl
,-rpath,/usr/lib/pgsql -L/usr/lib/pgsql
conftest.c -lpq -lmysqlclient -lcrypt -lpam -lgd -ljpeg -lcrypt -lresolv -lm
 -ldl -lnsl  -lr
esolv -lcrypt -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err 1>&5
/usr/bin/ld: cannot open -lgssapi_krb5: No such file or directory
collect2: ld returned 1 exit status

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

Hi,
My name is Cristian.
I need an advice:
  I have win98 se, with pws server from original 98se kit.
  I have instaled php-4.1.2-installer, I have modified the registry in 
HKEY_LOCAL_MACHINE /System /CurrentControlSet /Services /W3Svc
/Parameters /ScriptMap. with .php value c:\php\php.exe and HKEY_CLASSES_ROOT 
new key.. like in
manual. In pws manager I have mapped the directory with the .php file. with 
read, execute
and scripts checked.
When I click the .php file the dos window begin and close and nothing else 
the script that
I have put in the file don't apper. this is the .php file:
<html>
<head>
<title>Example</title>
</head>
<body>
<?php
echo "Hi, I’m a PHP script!";
?>
</body>
</html>

what is the problem?
Thak you for everything.


_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com

--- End Message ---

Reply via email to