User Contributed Notes 5 notes

A brief update: As of OpenBSD 5.7 (2015) the installation process is extremely easy. Apache httpd was replaced by Nginx, which has since been further replaced by OpenBSD's own server, aptly named 'httpd'.

'httpd' is installed by default, everything else you can still get from packages, with a couple name changes (including Apache and Nginx.) You will be asked which version to install - at the time of writing, versions 5.3.29p1 thru 5.6.5 are available.

#pkg_add php#pkg_add php-fpm#pkg_add pear

----OpenBSD disables most services by default; a blank '_flags' line overrides default 'NO' value. pkg_scripts are located in /etc/rc.d/To start at boot, edit "/etc/rc.conf.local":

I am user that is just migrating to open source and thought I would take openbsd for a spin. This article, by Gregory L. Magnusson, really helped me to get a working apache-php-mysql server going on openbsd.http://www.devx.com/security/Article/28059/0/page/1

I just finished spinning my wheels with PHP/Apache on OpenBSD 3.3, and it took a Google to fix my problem. I followed the instructions by (0429196301 at netcabo dot pt) written on Sep 19, 2003 and kept being fed a segmentation fault when I tried to start httpd.

Then I read the page cited below that suggested playing with the order of the LoadModules, and put the PHP first. I followed that recommendation and httpd started without problems!

"Change around the order of the Apache modules, this is one of thedrawbacks to the module API for Apache 1.3 is that the order is veryimportant. I would try making the PHP 4 module first, Perl module secondand FP module last. "

Also you should add "-a /var/www/dev/log" to the syslogd_flagsfor propper logging of php-extensions like imap.so and createa /var/www/etc/master.passwd with an www-user-entry and runpwd_mkdb -d /var/www/etc /var/www/etc/master.passwd for propperuse of libc-client.a functions in imap.so.