Re: Need help installing PHP (Linux) with MySQL and Apache

2002-10-29 Thread Andrea Forghieri
I have been successful (after days of trying) with Apache 2.0.43 ,
PHP 4.2.3 on Redhat 7.3

I compiled php with ./configure --with-mysql --with-apxs2=/apth/to/apxs
(apxs is under /path/to/apache2/bin)

After 'make' and 'make install'  you will find libphp4.so in
/path/to/apache2/modules

Then I added the following lines in httpd.conf

LoadModule php4_module modules/libphp4.so
AddType application/x-httpd-php php

SetOutputFilter PHP



Have fun
Andrea Forghieri


-
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: Need help installing PHP (Linux) with MySQL and Apache

2002-10-22 Thread John Coder
On Mon, 2002-10-21 at 13:07, Chip Rose wrote:
> I can't get PHP-4.2.3 compiled to work with MySQL and Apache, despite months 
> of trying.  Apache compiled ok, and so did MySQL -both work, on my Debian 
> Linux box.
> 
> I've tried various combos of installing the Deb packages, compiling from 
> source, and various combinations thereto.  I started out using 
> http://hotwired.lycos.com/webmonkey/00/44/index4a_page4.html?tw=programming 
> as a guide, in efforts to create a way of accessing MySQL via PHP Gui of some 
> sort.  I've been trying for months, on and off, using Redhat, Mandrake, and 
> now Debian3.0.  I've tried getting Escapade installed, but pages won't load 
> unless I change a line in httpd.conf, and then Apache won't run because it 
> complains of the changed line in httpd.conf, which was supposedly necessary 
> to get Escapade to run.
> 
> Typing ./httpd -l in my Apache bin directory shows that "mod_so.c" is an 
> enabled module.  My attempt to compile PHP-4.2.3 by typing 
> ./configure --with-mysql=/usr/bin/  resulted in the following error message
> configure: error: Cannot find header files under /usr/bin/
> 
> I've tried changing the path to MySQL headers, but still get same error msg.  
> I really don't know how to find these MySQL headers since I wouldn't know one 
> if I saw it.
> 
> Can someone help with a pointer/link?  I'd very greatly appreciate it..
 if Mysql was installed by rpm try pointing it to /var/lib/mysql. 
if compiled by yourself it's the directory you untarred and ran make/
make install.

John


-
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




Need help installing PHP (Linux) with MySQL and Apache

2002-10-21 Thread Chip Rose
I can't get PHP-4.2.3 compiled to work with MySQL and Apache, despite months 
of trying.  Apache compiled ok, and so did MySQL -both work, on my Debian 
Linux box.

I've tried various combos of installing the Deb packages, compiling from 
source, and various combinations thereto.  I started out using 
http://hotwired.lycos.com/webmonkey/00/44/index4a_page4.html?tw=programming 
as a guide, in efforts to create a way of accessing MySQL via PHP Gui of some 
sort.  I've been trying for months, on and off, using Redhat, Mandrake, and 
now Debian3.0.  I've tried getting Escapade installed, but pages won't load 
unless I change a line in httpd.conf, and then Apache won't run because it 
complains of the changed line in httpd.conf, which was supposedly necessary 
to get Escapade to run.

Typing ./httpd -l in my Apache bin directory shows that "mod_so.c" is an 
enabled module.  My attempt to compile PHP-4.2.3 by typing 
./configure --with-mysql=/usr/bin/  resulted in the following error message
configure: error: Cannot find header files under /usr/bin/

I've tried changing the path to MySQL headers, but still get same error msg.  
I really don't know how to find these MySQL headers since I wouldn't know one 
if I saw it.

Can someone help with a pointer/link?  I'd very greatly appreciate it..

Chip
[EMAIL PROTECTED]



-
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