Date: 06/30/00
- Next message: Clay Dowling: "[PHP-INST] PHP4 on OpenBSD"
- Previous message: Padraig Houlahan: "[PHP-INST] php deosn't work from .html files (fwd)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Several of us in the list have had trouble getting PHP4 to work on OpenBSD
2.6, or getting PHP with imap to work on OpenBSD 2.6 at all.
I am pleased to announce that I have successfully installed PHP4 on an
OpenBSD system. The trick seems to be to build the PHP module as a static
component of Apache, and to use 4.0.1. As a precaution, I also used the
OpenBSD build system.
To pull this off, first you need to install the sources from the CD-ROM.
Make sure you have the directory /usr/src/usr.sbin/httpd
Build PHP4.0.1, with the following options (minimally):
./configure --with-apache=/usr/src/usr.sbin/httpd
Make clean, make, then make install.
In /usr/src/usr.sbin/httpd, edit the Makefile.bsd-wrapper file. At the
end of the list of modules to include in configure, add the line
--activate-module=src/modules/php4/libphp4.a
If a file config.status exists, delete it. The existence of this file
will prevent the configuration from being properly rebuilt.
Change to /usr/src/usr.sbin, and issue the command "make httpd"
Make a backup copy of /usr/sbin/httpd and /usr/sbin/apachectl
cd to the /usr/src/usr.sbin/httpd directory, and type "make install".
If that proceeds without errors, stop and start your web server.
There do appear to be some differences between PHP3 and PHP4 in the way it
handles the MySQL connections (if you're using mysql). I had to change my
host name of localhost to "localhost:/var/mysql/mysql.sock". This is
probably because PHP4 is using its own copy of libmysql, rather than the
system copy, which knows where the socket lives.
Clay Dowling
-- PHP Install Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-install-unsubscribe <email protected> For additional commands, e-mail: php-install-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Clay Dowling: "[PHP-INST] PHP4 on OpenBSD"
- Previous message: Padraig Houlahan: "[PHP-INST] php deosn't work from .html files (fwd)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

