RE: apache2 php5 mysql4 problems

2005-11-22 Thread Brian E. Conklin
 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Robert Munn
 Sent: Monday, November 21, 2005 4:27 PM
 To: freebsd-questions@freebsd.org
 Subject: apache2 php5 mysql4 problems
 
 
 I have been successfuly running apache2 as a web server with php5 as a
 module.  Recently I needed access to a database so I tried  to upgrade
 my system by adding mysql4 as the database server.
 
 I had installed apache2  and php5 from the ports. Previously I would
 install php5-extensions to build the mysql module for php.
 
 After failing get the resulting php to recognize the mysql_ database
 calls in php I noticed that the php5-extensions no longer build the
 mysql extensions.

Install php5-mysqli from ports. This will install the correct php5 module for
MySql 4.1 and above and setup your php.ini to load it.

 
 I have tried various things.  The most successful was to configure php
 with the --with-mysql option. However this did not completelty solve
 my problem. While database access was enabled from a php script, when
 I use  the same codee in a web page to access the same database, my
 browser pops up a window asking if I want to save the file to disk or
 search for a program to deal with the file (suggestion Dreamweaver
 since it a .php file).
 
 Does anybody have the sequence of build commands for making a apache2
 - php5 - mysql, a working web server environment?
 
 I am running 5.4
 
 With thanks
 
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]
 
=
Mason General Hospital
901 Mt. View Drive
PO Box 1668
Shelton, WA 98584
http://www.masongeneral.com
(360) 426-1611
=
This message is intended for the sole use of the individual and entity
to whom it is addressed and may contain information that is privileged,
confidential and exempt from disclosure under applicable law. If you
are not the addressee nor authorized to receive for the addressee, you
are hereby notified that you may not use, copy, disclose or distribute
to anyone this message or any information contained in the message. If
you have received this message in error, please immediately notify the
sender and delete the message.

Replying to this message constitutes consent to electronic monitoring
of this message.

Thank you.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: apache2 php5 mysql4 problems

2005-11-21 Thread Jack Cheung
Just curious:
When you installed the php5-extensions, did you do a make config?
Also, my /usr/local/etc/apache2/Includes/php.conf has following 2 lines:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

If you have those 2 AddType lines in your conf file, does your
/usr/local/apache2/httpd.conf
contains the line Include etc/apache2/Includes/*.conf?
Also, did you restart Apache2 ?

On 11/21/05, Robert Munn [EMAIL PROTECTED] wrote:

 I have been successfuly running apache2 as a web server with php5 as a
 module. Recently I needed access to a database so I tried to upgrade
 my system by adding mysql4 as the database server.

 I had installed apache2 and php5 from the ports. Previously I would
 install php5-extensions to build the mysql module for php.

 After failing get the resulting php to recognize the mysql_ database
 calls in php I noticed that the php5-extensions no longer build the
 mysql extensions.

 I have tried various things. The most successful was to configure php
 with the --with-mysql option. However this did not completelty solve
 my problem. While database access was enabled from a php script, when
 I use the same codee in a web page to access the same database, my
 browser pops up a window asking if I want to save the file to disk or
 search for a program to deal with the file (suggestion Dreamweaver
 since it a .php file).

 Does anybody have the sequence of build commands for making a apache2
 - php5 - mysql, a working web server environment?

 I am running 5.4

 With thanks


 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]




--
GnuPG: 1024D/1F48375F
http://www.jackcheung.com/jack_pub.gpg
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]