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