If you are having trouble getting it all to install correctly, you might
resort to Apache Toolbox at:

http://www.apachetoolbox.com

This is an interactive script that will take your input as to what you
want to install and with what options. It will then download all
necessary files, configure and install them. You only need to do the
final compile and install on Apache. It works well for me.

On Sat, 2002-03-23 at 14:48, Andy Cheng wrote:
> Hello all,
> 
> Thanks for the help. I move my php test script to \var\www\html When I call 
> the php script from my browser, It shows me:
> 
> <?php phpinfo(); ?>
> 
> and not result of the phpinfo() function.  When I run "php phpinfo()" at the 
> shell command, it out puts the html result. What is problem, my Apache not 
> understand the php script?  Thanks
> 
> 
> >From: Jim Philips <[EMAIL PROTECTED]>
> >To: Andy Cheng <[EMAIL PROTECTED]>
> >Subject: RE: mysql/php on linux
> >Date: 18 Mar 2002 21:59:09 -0500
> >
> >You should not save php scripts in cgi-bin. They need to be in your
> >document root directory or a sub-directory of the rooot directory. In my
> >case, document root is:
> >
> >/usr/local/apache/htdocs
> >
> >If you need a test script, you can just run this:
> >
> ><?
> >
> >phpinfo();
> >
> >?>
> >
> >If it is in the document root directory, just point your browser to:
> >
> >localhost/(script name)
> >
> >If everything is installed right, you will get a page with information
> >about your php install.
> >
> >
> >On Mon, 2002-03-18 at 20:35, Andy Cheng wrote:
> > > Hi all,
> > > I too new to php and mysql, trying to get things works. I installed 
> >Redhat
> > > 7.2, Apache, mysql and php.  I copied a sample php script from the 
> >internet
> > > and save it as phptest.php in my cgi-bin. When calling it from my 
> >browser, I
> > > got Format error.  Did I not do it right?  Should I put it in my 
> >cgi-bin?
> > > Could some one send me a working php script and instruct me how to test 
> >it?
> > > Thanks
> > >
> > >
> > > >From: "Todd Williamsen" <[EMAIL PROTECTED]>
> > > >To: "'Andrew Hazen'" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
> > > >Subject: RE: mysql/php on linux
> > > >Date: Mon, 18 Mar 2002 08:50:28 -0600
> > > >
> > > >PHP
> > > >
> > > >http://www.php.net/manual/en/install.linux.php
> > > >
> > > >mySQL
> > > >
> > > >http://www.mysql.com/doc/L/i/Linux.html
> > > >
> > > >I never had any problems with mysql and PHP talking to each other on
> > > >Linux, and I am very wet behind the ears with Linux.  Maybe you can 
> >give
> > > >us an error messages you are receiving, and that will give all of us a
> > > >better understanding of what is going on.  If it?s the OS or Glib
> > > >libraries, you will get the same error over and over again.
> > > >
> > > >I don't use RedHat, so I don't know what they have in it, I use Caldera
> > > >OpenLinux 3.1 which is much better(from what I hear).  I have heard 
> >that
> > > >RedHat 7.2 is a bit quirky.
> > > >
> > > >Again, its all hear say.
> > > >
> > > >-----Original Message-----
> > > >From: Andrew Hazen [mailto:[EMAIL PROTECTED]]
> > > >Sent: Monday, March 18, 2002 8:31 AM
> > > >To: [EMAIL PROTECTED]
> > > >Subject: mysql/php on linux
> > > >
> > > >
> > > >Hi all,
> > > >
> > > >This is probably a boring repeat question, so maybe someone can just
> > > >point us to an existing response or file on the web:
> > > >
> > > >We are trying to set up a webserver with the following:
> > > >
> > > >
> > > >Linux Red Hat 7.2
> > > >MySQL ? newest
> > > >PHP 4.1 ? newest
> > > >
> > > >We can?t seem to get them all talking to each other, so we will just
> > > >start over from scratch. Can someone provide a step-by-step??
> > > >
> > > >Andrew Hazen
> > > >Database Developer
> > > >Jatech Solutions Inc.
> > > >160 Bartley Drive
> > > >Toronto, ON
> > > >M4A 1E1
> > > >www.jatech.ca
> > > >416-288-9833
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >---------------------------------------------------------------------
> > > >Before posting, please check:
> > > >    http://www.mysql.com/manual.php   (the manual)
> > > >    http://lists.mysql.com/           (the list archive)
> > > >
> > > >To request this thread, e-mail <[EMAIL PROTECTED]>
> > > >To unsubscribe, e-mail
> > > ><[EMAIL PROTECTED]>
> > > >Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
> > > >
> > > >
> > > >---------------------------------------------------------------------
> > > >Before posting, please check:
> > > >    http://www.mysql.com/manual.php   (the manual)
> > > >    http://lists.mysql.com/           (the list archive)
> > > >
> > > >To request this thread, e-mail <[EMAIL PROTECTED]>
> > > >To unsubscribe, e-mail
> > > ><[EMAIL PROTECTED]>
> > > >Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
> > > >
> > >
> > >
> > > _________________________________________________________________
> > > MSN Photos is the easiest way to share and print your photos:
> > > http://photos.msn.com/support/worldwide.aspx
> > >
> > >
> > > ---------------------------------------------------------------------
> > > Before posting, please check:
> > >    http://www.mysql.com/manual.php   (the manual)
> > >    http://lists.mysql.com/           (the list archive)
> > >
> > > To request this thread, e-mail <[EMAIL PROTECTED]>
> > > To unsubscribe, e-mail 
> ><[EMAIL PROTECTED]>
> > > Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
> > >
> >
> >
> 
> 
> 
> 
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
> 



---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to