![]() |
|
|||||||
| OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|||
|
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? |
|
||||
|
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: Code:
#!/bin/sh
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 -
__________________
OpenBSD LiveCDs/LiveDVDs |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Opera 12.12 fixes stability and security problems | J65nko | News | 0 | 19th December 2012 09: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 04:43 PM |