Re: mysql/php on linux
/sbin/service httpd restart Then tail /var/log/httpd/error_log should show [notice] Apache/1.3.22 (Unix) (Red-Hat/Linux) mod_ssl/2.8.5 OpenSSL/0.9.6b PHP/4.0.6 mod_perl/1.26 configured -- resuming normal operations or something like that Ken Andy Cheng wrote: > Hi all, > > I am using RH linux 7.2. I do have these lines: > > AddType application/x-httpd-php .php > > LoadModule php_module modules/mod_php.so > > AddModule mod_php.c > > AddModule mod_php4.c > > > in my httpd.conf. I think Windows version's of http.conf is different. > How do I check if the module is load or installed? > > >> From: Dustin Rabe <[EMAIL PROTECTED]> >> To: Andy Cheng <[EMAIL PROTECTED]> >> Subject: RE: mysql/php on linux >> Date: Sat, 23 Mar 2002 11:57:53 -0800 (PST) >> >> Try adding this to your http.conf file in apache. >> >>ScriptAlias /php/ "c:/php/" >>AddType application/x-httpd-php .php >>Action application/x-httpd-php "/php/php.exe" >> >> My Best, >> >> Dustin Rabe >> >> --- Andy Cheng <[EMAIL PROTECTED]> 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: >> > >> > >> > >> > 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 > > > > > _ > Send and receive Hotmail on your mobile device: http://mobile.msn.com > > > - > 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
RE: mysql/php on linux
Hi all, I am using RH linux 7.2. I do have these lines: AddType application/x-httpd-php .php LoadModule php_module modules/mod_php.so AddModule mod_php.c AddModule mod_php4.c in my httpd.conf. I think Windows version's of http.conf is different. How do I check if the module is load or installed? >From: Dustin Rabe <[EMAIL PROTECTED]> >To: Andy Cheng <[EMAIL PROTECTED]> >Subject: RE: mysql/php on linux >Date: Sat, 23 Mar 2002 11:57:53 -0800 (PST) > >Try adding this to your http.conf file in apache. > >ScriptAlias /php/ "c:/php/" >AddType application/x-httpd-php .php >Action application/x-httpd-php "/php/php.exe" > >My Best, > >Dustin Rabe > >--- Andy Cheng <[EMAIL PROTECTED]> 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: > > > > > > > > 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 _ Send and receive Hotmail on your mobile device: http://mobile.msn.com - 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
RE: mysql/php on linux
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: > > > > 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 > > > > > > > > > > > > > > >
RE: mysql/php on linux
Sounds like php isn't compiled correctly. Make sure the module for php is installed in apache -Original Message- From: Andy Cheng [mailto:[EMAIL PROTECTED]] Sent: Saturday, March 23, 2002 1:48 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: mysql/php on linux 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: 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: > &g
RE: mysql/php on linux
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: 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 unsub
Re: mysql/php on linux
On Tuesday 19 March 2002 11:35, you 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 FWIW I too am very wet behind the ears in Linux, but I installed Mandrake 8.1 and have MySql, PHP4, and Apache server all talking to each other without any configuring by me. Other than what I had to select during installation of course. If you choose to go that way make sure you select the 'expert' install option. You do not have to be very expert to use it. And BTW I also am able to use Postgres too as I want to learn about both of these excellent products. Good luck Bob - 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
RE: mysql/php on linux
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 its 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 cant 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
RE: mysql/php on linux
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 its 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 cant 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
Re: mysql/php on linux
There is a tool that will automate the installation process, if you like. It can be found at: http://www.apachetoolbox.com/ You tell it what you want and with what features. Then it proceeds to download the files, configure, make and install them. It works quite well in my experience. On Mon, 2002-03-18 at 09:31, Andrew Hazen wrote: > 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 cant 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