apache13_modssl + mod_php4 + php4-extenstions + mysql323-* +myphpadmin = ...

Ted Mittelstaedt tedm at toybox.placo.com
Thu Feb 3 01:13:13 PST 2005

> -----Original Message-----
> From: owner-freebsd-questions at freebsd.org
> [mailto:owner-freebsd-questions at freebsd.org]On Behalf Of Ken Hawkins
> Sent: Wednesday, February 02, 2005 12:55 PM
> To: Ken Hawkins
> Cc: Ken Hawkins; <freebsd-questions at freebsd.org>
> <freebsd-questions at freebsd.org>
> Subject: Re: apache13_modssl + mod_php4 + php4-extenstions + mysql323-*
> +myphpadmin = ...
> ok a bit of tearing around yields this:
> [web1:etc/apache/logs] root# find /usr \* -print | xargs grep -l
> bindtextdomain
> grep: /usr/bin/suidperl: No such file or directory
> /usr/local/man/man3
> /usr/local/man/whatis
> /usr/local/lib/perl5/site_perl/5.8.5/mach/auto/Locale/gettext/g
> ettext.so
> /usr/local/lib/perl5/site_perl/5.8.5/mach/Locale/gettext.pm
> /usr/local/lib/libintl.a
> /usr/local/lib/libintl.so
> [web1:etc/apache/logs] root# find /usr \* -print | xargs grep -l
> mysql_pconnect
> grep: /usr/bin/suidperl: No such file or directory
> /usr/local/lib/php/20020429/mysql.so
> /usr/local/include/php/ext/mysql/php_mysql.h
> where I am failing the functions are there I think that i have
> hosed my
> php.ini file which the include_path is:
> include_path            =
> ./:/usr/local/lib/php/:/usr/local/share/pear/bootstrap/:/usr/lo
> cal/www/data/psw/include/:/usr/local/www/data/psw/mods:/usr/loc
> al/www/data/mod:/usr/local/www/data/psw/polls/:/usr/local/www/d
> ata/polls
> ; UNIX: "/path1:/path2"  Windows: "\path1;\path2"
> what should the entries be for this? I take it that the install from a
> port will not overwrite the php.ini file if it is found and
> this could be
> a hangover from an old install. anyone know what the
> include_path should
> look like?

Hi Ken,

  I just got done installing Horde/IMP and I hate to tell you but
php.ini doesen't even exist.  From the looks of it the ports people
got together and worked out an alternative way of specifying variables
for php instead of using php.ini.  Probably to avoid the problems
that you mentioned of ports overwriting php files.

> any help is greatly appreciated as I am ready to tear it out and go
> again....

Well, here's how I did it:

1) Install apache

cd /usr/ports/www/apache13-modssl
webmail# make install
cd /usr/local/etc/apache/ssl.csr
openssl req -new > server.csr
cd /usr/local/etc/apache/ssl.key
openssl rsa -in ../ssl.csr/privkey.pem -out server.key
cd /usr/local/etc/apache/ssl.crt
openssl x509 -in ../ssl.csr/server.csr -out server.crt -req -signkey
../ssl.key/server.key -days 365
 vi /usr/local/etc/apache/httpd.conf
    around line 1124 in the:
## SSL Virtual Host Context

group, comment out ServerName new.host.name  (apache can determine it's
own name on boot)
and change ServerAdmin to xxx at yyyzzz

 cd /etc
 vi rc.conf

add in:


reboot server to make sure it starts

2) Install mysql

cd /usr/ports/databases/mysql40-server
make "OVERWRITE_DB=yes" install

this installs both the server and the client libraries and links them

Mod /etc/rc.conf and add:


3) Install  PHP4

 cd /usr/ports/databases/php4-mysql
make install

this installs php4 and ties it into the SQL server

The httpd.conf file must also be modified to add the following:

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

4)...from this point on everything else is IMP/Horde specific.  but I
now you could install myphpadmin and it would work fine now.


More information about the freebsd-questions mailing list