Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Thread Tools Display Modes
  #1   (View Single Post)  
Old 4th January 2013
ershiba ershiba is offline
Loading, please wait...
Join Date: Dec 2012
Posts: 34
Default PHP package stability in OpenBSD

i am aware that this question might be somehow unrelated,

but i guess probably there are many if not some OpenBSD server administrator who runs PHP/PHP-FPM along with Apache/Nginx/Lighttpd webservers.
( where should i get advice from OpenBSD masters if not here? )

i am quite new, so i really appreciate your advice regarding running PHP/PHP-FPM along your webserver of choice in OpenBSD,

is there anything that we should particularly concern?

how bout the stability of PHP, or it should be something that be avoided at all cost?

and if there exists any particular method of installation / settings that followed by most OpenBSD administrator when they add PHP into their server?
Reply With Quote
  #2   (View Single Post)  
Old 4th January 2013
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
Join Date: May 2008
Location: USA
Posts: 6,811

Several months ago I began experimenting with php-fpm FastCGI appservers and nginx webservers under OpenBSD. The environment remains in the lab only and is not yet in production.

All app and web servers run chrooted. The environment is further secured with read-only access to .php code by the appservers, making it more difficult for arbitrary injected code to be executed. PHP on OpenBSD includes the Suhosin security features as well.

Running PHP chrooted requires having the complete set of executables and libraries within the chroot structure. I use a small script after upgrades to refresh the php chrooted environment:
cd /var/www
tar cf - `ls -d /etc/php* /usr/local/{lib,bin,sbin}/php*` | tar xpf -
tar cf - `ldd /usr/local/sbin/php* | grep usr | awk '{print $7}'` | tar xpf -
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Opera 12.12 fixes stability and security problems J65nko News 0 19th December 2012 10:56 AM
xsettingsd .. a new OpenBSD package daemonfowl News 0 1st April 2012 03:40 PM
OpenBSD: Installing package collections in bulk for KDE, Gnome, or XFCE jggimi Guides 0 6th September 2011 07:14 PM
Package Updates for OpenBSD 4.2 and 4.3 shep OpenBSD Packages and Ports 15 17th October 2009 02:39 PM
ZFS stability compared to Solaris tanked FreeBSD General 5 26th October 2008 05:43 PM

All times are GMT. The time now is 06:37 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick