Hi Jason you know that may be the problem. I have
been avoiding doing that as I did not want to screw things up any
further.
This is the curious thing however. I started
reading the documentation on the apache server and there was a test script that
I ran from the document page and it just printed the script code out to the
netscape browser. This is the same thing that happened when I put the #! cgi
script symbols (can't remember the exact line as I am in windows right now)
at the top of the php script.
So my problem does not seem to be isolated to php.
I am beginning to think that something is wrong with the apache setup
indeed. It may be a path problem.
I am not sure but feel free to offer your
comments. I am learning a lot so I may struggle with this a little more before
doing a recompile or a reinstall.
Message: 3
From: "Jason Dale" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: Re: PHP code not working in netscape browser Date: Sat, 7 Dec 2002 13:02:12 +0200 Reply-To: [EMAIL PROTECTED] Hi Andrew , Did you compile your own version of Apache from Source ? could it perhaps be that at compile time you did not enable PHP support ? Regards , Jason ----- Original Message ----- From: "Andrew Carrington" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, December 06, 2002 1:23 AM Subject: PHP code not working in netscape browser > Hi my name is Andrew and this is the problem that I am having. > I installed the server version of Redhat Linux 7.1. The > problem I am having is that when I set up a test.php file with > the usual test function I am not getting anything being > recognized by the browser. > > This is the file contensts and below that you will see what I > have done so far in an attempt to fix whatever the problem > might be. > > test.php > file put in var/www/html directory > Server class installation > ............................................................................ .............................. > > <HTML> > <HEAD><TITLE>TESTING PHP</TITLE> > </HEAD> > <BODY> > <? > /* > * PRINT PHP INFO > */ > > > > phpinfo(); > echo "HELLO WORLD!"; > > ?> > </BODY> > </HTML> > > ............................................................................ ...................................................... > > What I have done. > > I made sure all the module and Addtype directives were > uncommented in my httpd.conf file and the relevant lines look > like what you see below > > > <IfDefine HAVE_PHP4> > LoadModule php4_module modules/libphp4.so > </IfDefine> > > <IfDefine HAVE_PHP4> > AddModule mod_php4.c > </IfDefine> > > > ServerName localhost > > # DocumentRoot: The directory out of which you will serve your > # documents. By default, all requests are taken from this > directory, but > # symbolic links and aliases may be used to point to other > locations. > # > DocumentRoot "/var/www/html" > > > # And for PHP 4.x, use: > # > <IfModule mod_php4.c> > AddType application/x-httpd-php .php .php4 .php3 > .phtml > AddType application/x-httpd-php-source .phps > </IfModule> > > > Beyond this I updated my Kernel and all the new packages as a > last resort two days ago. > > I also put /usr/lib/php in the ld.so.conf file and then ran > the ldconfig command to force the libraries to link. > > The ld.so.conf file now looks like this > > /usr/lib > /usr/kerberos/lib > /usr/X11R6/lib > /usr/lib/qt-2.3.0/lib > /usr/lib/mysql > /usr/lib/php > > > No luck. > > The tests I ran on the three individual packages are these. I > can restart the apache server and run a syntax check on it. > > I can connect to mysql database which is one of the modules > loaded with the php. > > I can query the version number of the php instalation and get > the information on its configuration using php -i > > However when I run a syntax check the system hangs. > > So individually all three packages seem to be working up to a > point. If the syntax hang is the clue can someone solve it for > me. > > Somebody help. I do not want to go and do a reinstallation > using the custom class options as this will wip out my udate > changes I made to the system using the update agent over a > modem (yes you may now begin to laugh) as I only have the 7.1 > CDs. > > This should not be so difficult . > Andrew F. Carrington > Phone/Fax: 618 655 0795 > email: [EMAIL PROTECTED] |