The DigitalPimp
Ben Pfountz |
NOTE: These instructions will setup and install the PHP port, both the apache module and the command line interface.
cd /usr/ports/textproc/libxml2 make clean make rmconfig make [chose default options] make deinstall make install make clean
NOTE: using this port will install both the CLI as well as the apache module. If you are not going to use the CLI, then use /usr/ports/www/mod_php5.
cd /usr/ports/lang/php5 make clean make rmconfig Adjust Makefile.ext to work with mysql5 via the BROKEN_WITH_MYSQL option. make
You can now apply any patches to PHP that may be necessary. I am adding the upload statistics patch found at http://pdoru.from.ro/.
. make deinstall make install make clean
cd /usr/ports/lang/php5-extensions make clean make rmconfig make [chose calendar, ctype, exif, gd, mysql, mysqli, pcntl, pcre, posix, session, sockets, tokenizer, xml, zlib] make deinstall make install [chose default options for gd] make clean You may wish to adjust your vim syntax file to handle .phps files in the same way as .php files: /usr/local/share/vim/vim62/filetype.vim |
|