FreeBSD 4.4 w/ apache/mysql/php & no joy

FreeBSD 4.4 w/ apache/mysql/php & no joy

Post by Tim Petloc » Wed, 21 Nov 2001 04:25:53



I'm running FreeBSD 4.4 on an iWill KK 266 motherboard.

I have mysql installed and it seems to be working.  I had to put some
entries in my /etc/hosts file to get mysql to work but it does now.

Apache works too.  I downloaded the port of apache-1.3.22_4.tgz and
installed the package and it'll serve up web pages okay.  

I can't get PHP to work.  I've read and re-read documentation and searched
the web and can't find a way to get it to run.  The limited understanding
of PHP that I've got pieced together is that you have to tell apache about
it at the time its compiled.  I exactly followed the instructions at

http://www.php.net/manual/en/install.apache.php

I now have two installs of httpd.  One of them is at /usr/local/sbin/httpd
and the other is at /usr/local/apache/bin .  The one in /usr/local/sbin
starts up at boot.  I think I need the other one.

Both are useless to me because neither properly work with PHP.  I'm fairly
amateur at Unix but a foray back into windoze with the win32 versions of
these same things burned just as much time with no useful result.

What am I missing?

Reply to the group please because my hotmail account is hard to read under
BSD, java support's not working right yet.

Tim Petlock

 
 
 

FreeBSD 4.4 w/ apache/mysql/php & no joy

Post by Jason Bourn » Wed, 21 Nov 2001 22:14:52


Hello:
    This is a somewhat dated article but it worked for me. It is Linux
oriented, but with appropiate adjustments works fine on BSD. Caveat: I did
this with an older version of Apache/PHP and the pieces were all from about
the same time frame and known to work together. Note the --with-MySQL
directive. These instructions are for compiling Apache and PHP together from
source:

http://www.linux-mag.com/online/php_03.html

Hope it helps.


Quote:> I'm running FreeBSD 4.4 on an iWill KK 266 motherboard.

> I have mysql installed and it seems to be working.  I had to put some
> entries in my /etc/hosts file to get mysql to work but it does now.

> Apache works too.  I downloaded the port of apache-1.3.22_4.tgz and
> installed the package and it'll serve up web pages okay.

> I can't get PHP to work.  I've read and re-read documentation and searched
> the web and can't find a way to get it to run.  The limited understanding
> of PHP that I've got pieced together is that you have to tell apache about
> it at the time its compiled.  I exactly followed the instructions at

> http://www.php.net/manual/en/install.apache.php

> I now have two installs of httpd.  One of them is at /usr/local/sbin/httpd
> and the other is at /usr/local/apache/bin .  The one in /usr/local/sbin
> starts up at boot.  I think I need the other one.

> Both are useless to me because neither properly work with PHP.  I'm fairly
> amateur at Unix but a foray back into windoze with the win32 versions of
> these same things burned just as much time with no useful result.

> What am I missing?

> Reply to the group please because my hotmail account is hard to read under
> BSD, java support's not working right yet.

> Tim Petlock


 
 
 

FreeBSD 4.4 w/ apache/mysql/php & no joy

Post by Patrick M. Hause » Thu, 22 Nov 2001 00:00:03


Hi!


> Apache works too.  I downloaded the port of apache-1.3.22_4.tgz and
> installed the package and it'll serve up web pages okay.  
> I can't get PHP to work.  I've read and re-read documentation and searched
> the web and can't find a way to get it to run.  The limited understanding
> of PHP that I've got pieced together is that you have to tell apache about
> it at the time its compiled.  I exactly followed the instructions at
> http://www.php.net/manual/en/install.apache.php
> I now have two installs of httpd.  One of them is at /usr/local/sbin/httpd
> and the other is at /usr/local/apache/bin .  The one in /usr/local/sbin
> starts up at boot.  I think I need the other one.

Why did you install an additional copy of Apache?

Quote:> What am I missing?

You're missing the fact that life becomes much more enjoyable once you
start using the ports collection:

# cd /usr/ports/www/apache13 && make install clean
# cd /usr/ports/databases/mysql322-server && make install clean
# cd /usr/ports/databases/mysql322-client && make install clean
# cd /usr/ports/www/mod_php4 && make install clean

Ready to rock ;-)

If you installed the Apache package and the MySQL package already,
you have the equivalent of the first 3 commands above on your system
already. Check with pkg_info(1). Then you just need to install mod_php4.

HTH,
Patrick M. Hausen
Technical Director
--
punkt.de GmbH         Internet - Dienstleistungen - Beratung
Scheffelstr. 17 a     Tel. 0721 9109 -0 Fax: -100
76135 Karlsruhe       http://punkt.de

 
 
 

FreeBSD 4.4 w/ apache/mysql/php & no joy

Post by Kyle Cran » Fri, 23 Nov 2001 01:46:20


I have an article on my site with the basic steps I used to get them both
going from source.  It's not much, but the process worked well for me.

http://www.cranehome.org

It's the first article in the list.

Kyle


Quote:> I'm running FreeBSD 4.4 on an iWill KK 266 motherboard.

> I have mysql installed and it seems to be working.  I had to put some
> entries in my /etc/hosts file to get mysql to work but it does now.

> Apache works too.  I downloaded the port of apache-1.3.22_4.tgz and
> installed the package and it'll serve up web pages okay.

> I can't get PHP to work.  I've read and re-read documentation and searched
> the web and can't find a way to get it to run.  The limited understanding
> of PHP that I've got pieced together is that you have to tell apache about
> it at the time its compiled.  I exactly followed the instructions at

> http://www.php.net/manual/en/install.apache.php

> I now have two installs of httpd.  One of them is at /usr/local/sbin/httpd
> and the other is at /usr/local/apache/bin .  The one in /usr/local/sbin
> starts up at boot.  I think I need the other one.

> Both are useless to me because neither properly work with PHP.  I'm fairly
> amateur at Unix but a foray back into windoze with the win32 versions of
> these same things burned just as much time with no useful result.

> What am I missing?

> Reply to the group please because my hotmail account is hard to read under
> BSD, java support's not working right yet.

> Tim Petlock

 
 
 

1. Apache compile & Php & mysql

Hello.
How i can to compile apache for it works with php and how to compile php for
it works with apache and mysql ?

Regards.
--
---------------------------------------------------------------------
Aix,Linux,Humor,Zoco
http://web.madritel.es/personales2/jperezm
--------------------------------------------------------------------

2. stepping into the glibc code during debugging

3. Apache & mysql & php not working

4. 520 byte sectors - any ideas?

5. Mysql install on FreeBSd 4.4 box

6. booting without keyboard?

7. setting up freebsd webserver with php & mysql

8. Capital Letters in SCO ODT 3.0

9. Apache, PHP, & MySQL

10. BULL's apache, php & mysql,How to incorporate them

11. Apache, MySQL & PHP - Oh My!

12. What rpms to load so php & mysql will work with Apache?

13. Apache, PHP & MySQL Requirements