[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
MySQL and PHP4 install - quick and dirty
>a quick and dirty overview to getting mysql and php4
>running on a fresh 2.9 install?
# First - it's good to update your ports tree:
cd /usr/ports
export CVSROOT="anoncvs@anoncvs1.ca.openbsd.org:/cvs"
export CVS_RSH="/usr/bin/ssh"
cvs up -r OPENBSD_2_9 -Pd
cd /usr/ports/databases/mysql
make install
pkg_add /usr/ports/packages/i386/All/mysql-server-3*
set shlib dirs in /etc/rc.conf to...
shlib_dirs="/usr/local/lib/{pth,mysql}"
(yes exactly like that with quotes and curly-braces, no spaces)
cd /usr/ports/www/php4
export FLAVOR="mysql"
make install
/usr/local/bin/php4-enable
cp /usr/local/share/doc/php4/php.ini-dist /var/www/conf/php.ini
READ THE PORTS-INSTALL MESSAGES it will give you when it's done installing
each package. There are a couple more steps/tweaks in there that I forget
right now, but it will tell you.