php-install Digest 4 Mar 2003 07:46:45 -0000 Issue 1275

Topics (messages 10257 through 10261):

HELP-- PHP wouldn't work with Apache/W2K
        10257 by: Jip Kongruengkit
        10258 by: Rich Gray
        10259 by: Jip Kongruengkit

Cookie
        10260 by: Nathaniel P. Wilkerson

PHP and SERVER variables
        10261 by: Sharat Hegde

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 all,

I have installed PHP 4.3.1 on Apache 1.3.27 on Windows2000 Server, and I've
created a test file with just <? php phpinfo(); ?>, but when I tried to view
that file via my browser, I got a blank screen.  And when I did 'view
source' in the browser, I was able to see the source code of the PHP script.

According to the FAQ, this means that the web server did not send the script
to PHP for interpretation, but I have double checked the Apache
configuration against the PHP installation instructions many many times, and
there doesn't seem to be anything wrong.

Here are the steps that I followed when installing PHP:
1. Extracted the files to c:\php
2. Copied php4ts.dll, php4apache.dll, and all files in c:\php\dlls to
c:\winnt\system32
3. Copied php.ini-optimized to c:\winnt and renamed it php.ini
4. In php.ini, set extension_dir = c:\php\extensions\
5. In php.ini, set doc_root = c:\Inetpub\wwwroot\php\ (this is also where I
put my test file)
6. Gave php.ini read permission to Everyone.

Is there anything that I missed or did wrong?  Thanks for any help.



--- End Message ---
--- Begin Message ---
> Hi all,
> 
> I have installed PHP 4.3.1 on Apache 1.3.27 on Windows2000 
> Server, and I've
> created a test file with just <? php phpinfo(); ?>, but when I 
> tried to view
> that file via my browser, I got a blank screen.  And when I did 'view
> source' in the browser, I was able to see the source code of the 
> PHP script.
> 
> According to the FAQ, this means that the web server did not send 
> the script
> to PHP for interpretation, but I have double checked the Apache
> configuration against the PHP installation instructions many many 
> times, and
> there doesn't seem to be anything wrong.
> 
> Here are the steps that I followed when installing PHP:
> 1. Extracted the files to c:\php
> 2. Copied php4ts.dll, php4apache.dll, and all files in c:\php\dlls to
> c:\winnt\system32
> 3. Copied php.ini-optimized to c:\winnt and renamed it php.ini
> 4. In php.ini, set extension_dir = c:\php\extensions\
> 5. In php.ini, set doc_root = c:\Inetpub\wwwroot\php\ (this is 
> also where I
> put my test file)
> 6. Gave php.ini read permission to Everyone.
> 
> Is there anything that I missed or did wrong?  Thanks for any help.

Er ... did you configure Apache?

Rich

--- End Message ---
--- Begin Message ---
Title: RE: [PHP-INST] HELP-- PHP wouldn't work with Apache/W2K

Sorry all, I forgot to mention these steps:

In Apache's config file (httpd.conf), I did the following:
- inserted ScriptAlias /php/ "c:/php/"
- inserted AddType application/x-httpd-php .php
- inserted Action application/x-httpd-php "/php/php.exe"
- inserted LoadModule php4_module c:/php/sapi/php4apache.dll
- inserted AddModule mod_php4.c

-----Original Message-----
From: Rich Gray [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 03, 2003 11:55 PM
To: Jip Kongruengkit; [EMAIL PROTECTED]
Subject: RE: [PHP-INST] HELP-- PHP wouldn't work with Apache/W2K


> Hi all,
>
> I have installed PHP 4.3.1 on Apache 1.3.27 on Windows2000
> Server, and I've
> created a test file with just <? php phpinfo(); ?>, but when I
> tried to view
> that file via my browser, I got a blank screen.  And when I did 'view
> source' in the browser, I was able to see the source code of the
> PHP script.
>
> According to the FAQ, this means that the web server did not send
> the script
> to PHP for interpretation, but I have double checked the Apache
> configuration against the PHP installation instructions many many
> times, and
> there doesn't seem to be anything wrong.
>
> Here are the steps that I followed when installing PHP:
> 1. Extracted the files to c:\php
> 2. Copied php4ts.dll, php4apache.dll, and all files in c:\php\dlls to
> c:\winnt\system32
> 3. Copied php.ini-optimized to c:\winnt and renamed it php.ini
> 4. In php.ini, set extension_dir = c:\php\extensions\
> 5. In php.ini, set doc_root = c:\Inetpub\wwwroot\php\ (this is
> also where I
> put my test file)
> 6. Gave php.ini read permission to Everyone.
>
> Is there anything that I missed or did wrong?  Thanks for any help.

Er ... did you configure Apache?

Rich


--- End Message ---
--- Begin Message --- I have PHP installed on Win2k IIS5.0 and I am trying to run the following script:

Here's the main code that is being executed:

setcookie('lang', $_POST['lang'], time()+3600, '/');

header('Location: index.php');

What should happen is that the cookie is set [setcookie('lang',
$_POST['lang'], time()+3600, '/')] and then the redirect happens
[header('Location: index.php')].

For some reason the server will not set the cookie in my browser, any ideas?


--- End Message ---
--- Begin Message ---
Hello,

I just upgraded from PHP3 to PHP4 on Apache 1.3.x on Windows NT. I need to
access the PHP and SERVER variables on my PHP 4 installation. My code is as
follows:

<?php
        echo $SERVER_SOFTWARE;
        echo $PHP_SELF;
?>

However, I get the following error:

Notice: Undefined variable: SERVER_SOFTWARE in c:\program files\apache
group\apache\htdocs\test\test1.php on line 2

Notice: Undefined variable: PHP_SELF in c:\program files\apache
group\apache\htdocs\test\test1.php on line 3

Can you help out?

Thanks,
Sharat

*********************************************************************
Disclaimer: The information in this e-mail and any attachments is
confidential / privileged. It is intended solely for the addressee or
addressees. If you are not the addressee indicated in this message, you may
not copy or deliver this message to anyone. In such case, you should destroy
this message and kindly notify the sender by reply email. Please advise
immediately if you or your employer does not consent to Internet email for
messages of this kind.
*********************************************************************

--- End Message ---

Reply via email to