Re: [PHP] php installation verification

2004-06-03 Thread Ben Ramsey
Did you fix this problem yet?  The lines below are fine for your apache 
httpd.conf file.  The only thing that appears out of the ordinary is the 
location of libphp4.so.

In my setup (I'm also using Red Hat and Apache 2.0), when I compile PHP, 
it places libphp4.so in the modules directory (/etc/httpd/modules), 
which is where I would think it should be on your system, so try 
changing that line to:

LoadModule php4_module modules/libphp4.so
Of course, check to make sure the file is in that location first, as I 
could be way off.  Then, restart apache and try to access your test.php 
script.

Long P Nguyen wrote:
OK - I tried that and what came up on the browser was the content of the test.php file.
I checked in my httpd.conf file I do have the following:
AddType application/x-httpd-php .php
AddType application/x-http-php-source .phps
LoadModule php4_module libexec/libphp4.so
Any thoughts?
thank you.
--
Regards,
 Ben Ramsey
 http://benramsey.com
---
http://www.phpcommunity.org/
Open Source, Open Community
Visit for more information or to join the movement.
---
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] php installation verification

2004-06-03 Thread Nguyen, Long P (Mission Systems)
I removed the line AddType application/x-httpd-php .php
and add
Files *.php
SetOutputFilter PHP
SetInputFilter  PHP
/Files

restarted httpd and didn't work - what displayed on the browser was:
?php
phpinfo();
?

-Original Message-
From: R'twick Niceorgaw [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 02, 2004 4:51 PM
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] php installation verification


Quoting Nguyen, Long P (Mission Systems) [EMAIL PROTECTED]:

 could it be something in my httpd.conf file?

Remove the line AddType application/x-httpd-php .php
and add
Files *.php
SetOutputFilter PHP
SetInputFilter  PHP
/Files

HTH
R'twick
-- 
This is a signature


This message was sent using IMP, the Internet Messaging Program.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php installation verification

2004-06-03 Thread Ben Ramsey
Please reply to the list so that everyone can benefit from the conversation.
I am running Apache 2.0.49 and PHP 4.3.7, but that shouldn't make too 
much difference.

Did you check to make sure that libphp4.so is, in fact, in your modules 
directory?  Also, use the AddType statements instead of the 
SetOutputFilter and SetInputFilter statements.  Just make sure that 
you're using the AddType statements /after/ you load the module with 
LoadModule.  I do not believe they should come before the LoadModule 
statement in the httpd.conf file.

Here's how it looks in my file:
LoadModule php4_module modules/libphp4.so
AddType application/x-httpd-php php
AddType application/x-httpd-php-source phps

Nguyen, Long P (Mission Systems) wrote:
Ben,
I edited the httpd.conf file with the entry below and restarted the httpd and tried 
bringing up test.php and the only think displayed on the browser were the source code.
LoadModule php4_module modules/libphp4.so
Do you have apache v2.0.48 running with php v4.3.6?
Any thoughts?

-Original Message-
From: Ben Ramsey [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 03, 2004 9:31 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] php installation verification 

Did you fix this problem yet?  The lines below are fine for your apache 
httpd.conf file.  The only thing that appears out of the ordinary is the 
location of libphp4.so.

In my setup (I'm also using Red Hat and Apache 2.0), when I compile PHP, 
it places libphp4.so in the modules directory (/etc/httpd/modules), 
which is where I would think it should be on your system, so try 
changing that line to:

LoadModule php4_module modules/libphp4.so
Of course, check to make sure the file is in that location first, as I 
could be way off.  Then, restart apache and try to access your test.php 
script.

Long P Nguyen wrote:
OK - I tried that and what came up on the browser was the content of the test.php file.
I checked in my httpd.conf file I do have the following:
AddType application/x-httpd-php .php
AddType application/x-http-php-source .phps
LoadModule php4_module libexec/libphp4.so
Any thoughts?
thank you.

--
Regards,
 Ben Ramsey
 http://benramsey.com
---
http://www.phpcommunity.org/
Open Source, Open Community
Visit for more information or to join the movement.
---
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] php installation verification

2004-06-03 Thread Ben Ramsey
I also noticed that you're using .php and .phps in your AddType 
statement.  Take out the dot (.) so that it's just php and phps.  That 
may be the cause of the problem.

Ben Ramsey wrote:
Please reply to the list so that everyone can benefit from the 
conversation.

I am running Apache 2.0.49 and PHP 4.3.7, but that shouldn't make too 
much difference.

Did you check to make sure that libphp4.so is, in fact, in your modules 
directory?  Also, use the AddType statements instead of the 
SetOutputFilter and SetInputFilter statements.  Just make sure that 
you're using the AddType statements /after/ you load the module with 
LoadModule.  I do not believe they should come before the LoadModule 
statement in the httpd.conf file.

Here's how it looks in my file:
LoadModule php4_module modules/libphp4.so
AddType application/x-httpd-php php
AddType application/x-httpd-php-source phps

Nguyen, Long P (Mission Systems) wrote:
Ben,
I edited the httpd.conf file with the entry below and restarted the 
httpd and tried bringing up test.php and the only think displayed on 
the browser were the source code.

LoadModule php4_module modules/libphp4.so
Do you have apache v2.0.48 running with php v4.3.6?
Any thoughts?

-Original Message-
From: Ben Ramsey [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 03, 2004 9:31 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] php installation verification
Did you fix this problem yet?  The lines below are fine for your 
apache httpd.conf file.  The only thing that appears out of the 
ordinary is the location of libphp4.so.

In my setup (I'm also using Red Hat and Apache 2.0), when I compile 
PHP, it places libphp4.so in the modules directory 
(/etc/httpd/modules), which is where I would think it should be on 
your system, so try changing that line to:

LoadModule php4_module modules/libphp4.so
Of course, check to make sure the file is in that location first, as I 
could be way off.  Then, restart apache and try to access your 
test.php script.

Long P Nguyen wrote:
OK - I tried that and what came up on the browser was the content of 
the test.php file.

I checked in my httpd.conf file I do have the following:
AddType application/x-httpd-php .php
AddType application/x-http-php-source .phps
LoadModule php4_module libexec/libphp4.so
Any thoughts?
thank you.


--
Regards,
 Ben Ramsey
 http://benramsey.com
---
http://www.phpcommunity.org/
Open Source, Open Community
Visit for more information or to join the movement.
---
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] php installation verification

2004-06-03 Thread Nguyen, Long P (Mission Systems)
I think I know what I did wrong...

I should place the test.php file under the Document_Root directory and I should be 
bringing up the test.php file on the browser address as: http://localhost/test.php 
right???

What I was doing before was just going to the browser's File -- Open -- and 
specified the path to /tmp/php/test.php

Please let me know, thank you.


-Original Message-
From: Ben Ramsey [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 03, 2004 10:46 AM
To: Nguyen, Long P (Mission Systems)
Subject: Re: [PHP] php installation verification


I also noticed that you're using .php and .phps in your AddType 
statement.  Take out the dot (.) so that it's just php and phps.  That 
may be the cause of the problem.


Ben Ramsey wrote:
 Please reply to the list so that everyone can benefit from the 
 conversation.
 
 I am running Apache 2.0.49 and PHP 4.3.7, but that shouldn't make too 
 much difference.
 
 Did you check to make sure that libphp4.so is, in fact, in your modules 
 directory?  Also, use the AddType statements instead of the 
 SetOutputFilter and SetInputFilter statements.  Just make sure that 
 you're using the AddType statements /after/ you load the module with 
 LoadModule.  I do not believe they should come before the LoadModule 
 statement in the httpd.conf file.
 
 Here's how it looks in my file:
 
 LoadModule php4_module modules/libphp4.so
 AddType application/x-httpd-php php
 AddType application/x-httpd-php-source phps
 
 
 
 Nguyen, Long P (Mission Systems) wrote:
 
 Ben,
 I edited the httpd.conf file with the entry below and restarted the 
 httpd and tried bringing up test.php and the only think displayed on 
 the browser were the source code.

 LoadModule php4_module modules/libphp4.so

 Do you have apache v2.0.48 running with php v4.3.6?

 Any thoughts?



 -Original Message-
 From: Ben Ramsey [mailto:[EMAIL PROTECTED]
 Sent: Thursday, June 03, 2004 9:31 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] php installation verification

 Did you fix this problem yet?  The lines below are fine for your 
 apache httpd.conf file.  The only thing that appears out of the 
 ordinary is the location of libphp4.so.

 In my setup (I'm also using Red Hat and Apache 2.0), when I compile 
 PHP, it places libphp4.so in the modules directory 
 (/etc/httpd/modules), which is where I would think it should be on 
 your system, so try changing that line to:

 LoadModule php4_module modules/libphp4.so

 Of course, check to make sure the file is in that location first, as I 
 could be way off.  Then, restart apache and try to access your 
 test.php script.


 Long P Nguyen wrote:

 OK - I tried that and what came up on the browser was the content of 
 the test.php file.

 I checked in my httpd.conf file I do have the following:

 AddType application/x-httpd-php .php
 AddType application/x-http-php-source .phps

 LoadModule php4_module libexec/libphp4.so

 Any thoughts?

 thank you.



 

-- 
Regards,
  Ben Ramsey
  http://benramsey.com

---
http://www.phpcommunity.org/
Open Source, Open Community
Visit for more information or to join the movement.
---

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php installation verification

2004-06-03 Thread Ben Ramsey
Yes, you should be accessing it through http://localhost/test.php
That's most definitely the cause of the problem.
Long P Nguyen wrote:
I think I know what I did wrong...
I should place the test.php file under the Document_Root directory and I should be bringing up 
the test.php file on the browser address as: http://localhost/test.php right???
What I was doing before was just going to the browser's File -- Open -- and 
specified the path to /tmp/php/test.php
Please let me know, thank you.

--
Regards,
 Ben Ramsey
 http://benramsey.com
---
http://www.phpcommunity.org/
Open Source, Open Community
Visit for more information or to join the movement.
---
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] php installation verification

2004-06-03 Thread Nguyen, Long P (Mission Systems)
OK - thanks for all the help everyone!!


-Original Message-
From: Ben Ramsey [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 03, 2004 11:02 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] php installation verification


Yes, you should be accessing it through http://localhost/test.php
That's most definitely the cause of the problem.


Long P Nguyen wrote:
 I think I know what I did wrong...
 
 I should place the test.php file under the Document_Root directory and I should be 
 bringing up the test.php file on the browser address as: http://localhost/test.php 
 right???
 
 What I was doing before was just going to the browser's File -- Open -- and 
 specified the path to /tmp/php/test.php
 
 Please let me know, thank you.


-- 
Regards,
  Ben Ramsey
  http://benramsey.com

---
http://www.phpcommunity.org/
Open Source, Open Community
Visit for more information or to join the movement.
---

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php installation verification

2004-06-02 Thread Steve Douville
Open a file. Put this code in there:

?
phpinfo();
?

Save as test.php and point your browser to it.
- Original Message - 
From: Nguyen, Long P (Mission Systems) [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 02, 2004 4:33 PM
Subject: [PHP] php installation verification


 I am new to php and was tasked with installing php v.4.3.6.  I installed
it on redhat with apache v2.0.48.
 I read in the doc that you can create a test file called test.php with
some php tags such as ?phpinfo()?.
 Could someone post a test.php file as an example?
 Thanks for the help.




 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php installation verification

2004-06-02 Thread Daniel Clark
Save to your root directory as test.php (or something ending in php).

?php

phpinfo();

?

 I am new to php and was tasked with installing php v.4.3.6.  I installed
 it on redhat with apache v2.0.48.
 I read in the doc that you can create a test file called test.php with
 some php tags such as ?phpinfo()?.
 Could someone post a test.php file as an example?
 Thanks for the help.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] php installation verification

2004-06-02 Thread Nguyen, Long P (Mission Systems)
OK - I tried that and what came up on the browser was the content of the test.php file.

I checked in my httpd.conf file I do have the following:

AddType application/x-httpd-php .php
AddType application/x-http-php-source .phps

LoadModule php4_module libexec/libphp4.so

Any thoughts?

thank you.



-Original Message-
From: Steve Douville [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 02, 2004 4:39 PM
To: Nguyen, Long P (Mission Systems); [EMAIL PROTECTED]
Subject: Re: [PHP] php installation verification 


Open a file. Put this code in there:

?
phpinfo();
?

Save as test.php and point your browser to it.
- Original Message - 
From: Nguyen, Long P (Mission Systems) [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 02, 2004 4:33 PM
Subject: [PHP] php installation verification


 I am new to php and was tasked with installing php v.4.3.6.  I installed
it on redhat with apache v2.0.48.
 I read in the doc that you can create a test file called test.php with
some php tags such as ?phpinfo()?.
 Could someone post a test.php file as an example?
 Thanks for the help.




 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] php installation verification

2004-06-02 Thread Daniel Clark
Have you stopped and restarted the web server?

 OK - I tried that and what came up on the browser was the content of the
 test.php file.

 I checked in my httpd.conf file I do have the following:

 AddType application/x-httpd-php .php
 AddType application/x-http-php-source .phps

 LoadModule php4_module libexec/libphp4.so

 Any thoughts?

 thank you.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] php installation verification

2004-06-02 Thread Scot L. Harris
On Wed, 2004-06-02 at 16:47, Nguyen, Long P (Mission Systems) wrote:
 OK - I tried that and what came up on the browser was the content of the test.php 
 file.
 

 Open a file. Put this code in there:
 
 ?
 phpinfo();
 ?
 

Try:

?php
phpinfo();
?

-- 
Scot L. Harris
[EMAIL PROTECTED]

IF I HAD A MINE SHAFT, I don't think I would just abandon it.  There's
got to be a better way.
-- Jack Handley, The New Mexican, 1988. 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] php installation verification

2004-06-02 Thread Nguyen, Long P (Mission Systems)
Yes.


-Original Message-
From: Daniel Clark [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 02, 2004 4:51 PM
To: Nguyen, Long P (Mission Systems)
Cc: Steve Douville; [EMAIL PROTECTED]
Subject: RE: [PHP] php installation verification


Have you stopped and restarted the web server?

 OK - I tried that and what came up on the browser was the content of the
 test.php file.

 I checked in my httpd.conf file I do have the following:

 AddType application/x-httpd-php .php
 AddType application/x-http-php-source .phps

 LoadModule php4_module libexec/libphp4.so

 Any thoughts?

 thank you.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] php installation verification

2004-06-02 Thread Nguyen, Long P (Mission Systems)
I get the source display on the browser as:

?php
phpinfo();
?



-Original Message-
From: Scot L. Harris [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 02, 2004 4:53 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] php installation verification


On Wed, 2004-06-02 at 16:47, Nguyen, Long P (Mission Systems) wrote:
 OK - I tried that and what came up on the browser was the content of the test.php 
 file.
 

 Open a file. Put this code in there:
 
 ?
 phpinfo();
 ?
 

Try:

?php
phpinfo();
?

-- 
Scot L. Harris
[EMAIL PROTECTED]

IF I HAD A MINE SHAFT, I don't think I would just abandon it.  There's
got to be a better way.
-- Jack Handley, The New Mexican, 1988. 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] php installation verification

2004-06-02 Thread Daniel Clark
And you test.php file has? (note starting with ?php

?php

?

 Yes.


 Have you stopped and restarted the web server?

 OK - I tried that and what came up on the browser was the content of the
 test.php file.

 I checked in my httpd.conf file I do have the following:

 AddType application/x-httpd-php .php
 AddType application/x-http-php-source .phps

 LoadModule php4_module libexec/libphp4.so

 Any thoughts?

 thank you.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] php installation verification

2004-06-02 Thread Daniel Clark
Running Apache?  Windows?

 I get the source display on the browser as:

 ?php
 phpinfo();
 ?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] php installation verification

2004-06-02 Thread Nguyen, Long P (Mission Systems)
The content of my test.php file has:

?php
phpinfo();
?


-Original Message-
From: Daniel Clark [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 02, 2004 4:59 PM
To: Nguyen, Long P (Mission Systems)
Cc: [EMAIL PROTECTED]; Steve Douville; [EMAIL PROTECTED]
Subject: RE: [PHP] php installation verification


And you test.php file has? (note starting with ?php

?php

?

 Yes.


 Have you stopped and restarted the web server?

 OK - I tried that and what came up on the browser was the content of the
 test.php file.

 I checked in my httpd.conf file I do have the following:

 AddType application/x-httpd-php .php
 AddType application/x-http-php-source .phps

 LoadModule php4_module libexec/libphp4.so

 Any thoughts?

 thank you.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] php installation verification

2004-06-02 Thread Daniel Clark
Seems to me there was a problem with Apache 2 and PHP (some version).

 The content of my test.php file has:

 ?php
 phpinfo();
 ?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] php installation verification

2004-06-02 Thread Nguyen, Long P (Mission Systems)
redhat and apache

-Original Message-
From: Daniel Clark [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 02, 2004 5:02 PM
To: Nguyen, Long P (Mission Systems)
Cc: Scot L. Harris; [EMAIL PROTECTED]
Subject: RE: [PHP] php installation verification


Running Apache?  Windows?

 I get the source display on the browser as:

 ?php
 phpinfo();
 ?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] php installation verification

2004-06-02 Thread Nguyen, Long P (Mission Systems)
could it be something in my httpd.conf file?


below are the results of the installation:

[EMAIL PROTECTED] php-4.3.6]# make install
Installing PHP SAPI module:   apache2handler
/usr/local/apache/build/instdso.sh SH_LIBTOOL='/usr/local/apache/build/libtool' 
libphp4.la /usr/local/apache/modules
/usr/local/apache/build/libtool --mode=install cp libphp4.la /usr/local/apache/modules/
cp .libs/libphp4.so /usr/local/apache/modules/libphp4.so
cp .libs/libphp4.lai /usr/local/apache/modules/libphp4.la
libtool: install: warning: remember to run `libtool --finish /tmp/php/php-4.3.6/libs'
chmod 755 /usr/local/apache/modules/libphp4.so
[activating module `php4' in /usr/local/apache/conf/httpd.conf]
Installing PHP CLI binary:/usr/local/bin/
Installing PHP CLI man page:  /usr/local/man/man1/
Installing PEAR environment:  /usr/local/lib/php/
[PEAR] Archive_Tar- installed: 1.1
[PEAR] Console_Getopt - installed: 1.2
[PEAR] PEAR   - installed: 1.3.1
Wrote PEAR system config file at: /usr/local/etc/pear.conf
You may want to add: /usr/local/lib/php to your php.ini include_path
[PEAR] DB - installed: 1.6.2
[PEAR] HTTP   - installed: 1.2.2
[PEAR] Mail   - installed: 1.1.3
[PEAR] Net_SMTP   - installed: 1.2.3
[PEAR] Net_Socket - installed: 1.0.1
[PEAR] XML_Parser - installed: 1.0.1
[PEAR] XML_RPC- installed: 1.1.0
Installing build environment: /usr/local/lib/php/build/
Installing header files:  /usr/local/include/php/
Installing helper programs:   /usr/local/bin/
  program: phpize
  program: php-config
  program: phpextdist
[EMAIL PROTECTED] php-4.3.6]#



-Original Message-
From: Daniel Clark [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 02, 2004 5:02 PM
To: Nguyen, Long P (Mission Systems)
Cc: Scot L. Harris; [EMAIL PROTECTED]
Subject: RE: [PHP] php installation verification


Running Apache?  Windows?

 I get the source display on the browser as:

 ?php
 phpinfo();
 ?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] php installation verification

2004-06-02 Thread R'twick Niceorgaw
Quoting Nguyen, Long P (Mission Systems) [EMAIL PROTECTED]:

 could it be something in my httpd.conf file?

Remove the line AddType application/x-httpd-php .php
and add
Files *.php
SetOutputFilter PHP
SetInputFilter  PHP
/Files

HTH
R'twick
-- 
This is a signature


This message was sent using IMP, the Internet Messaging Program.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php