Welcome! Log In Create A New Profile

Advanced

php-fpm chroot issues

Posted by Aaron Martinez 
Aaron Martinez
php-fpm chroot issues
February 14, 2014 03:48PM
Hi All,

I'm trying to install Piwigo version: 2.6.1 on OpenBSD 5.4 stable with
nginx 1.4.1, PHP version: 5.3.27,
MySQL version: 5.1.70 and php-fpm chrooted.


I have successfully done this without php-fpm being rooted, but for
security I'm trying to segregate my sites.

Here are the errors i'm getting in the logs:

2014/02/14 14:17:58 [error] 3371#0: *16 FastCGI sent in stderr: "PHP
message: PHP Warning:
include(/var/www/piwigo/include/smarty/libs/plugins/function.html_options.php):
failed to open stream: No such file or directory in
/_data/templates_c/p6jhns^eccdaec59014a38fe07618ca820aded387b09ba6.file.install.tpl.php
on line 52
PHP message: PHP Warning: include(): Failed opening
'/var/www/piwigo/include/smarty/libs/plugins/function.html_options.php' for
inclusion (include_path='.:/pear/lib:/var/www/pear/lib') in
/_data/templates_c/p6jhns^eccdaec59014a38fe07618ca820aded387b09ba6.file.install.tpl.php
on line 52
PHP message: PHP Fatal error: Call to undefined function
smarty_function_html_options() in
/_data/templates_c/p6jhns^eccdaec59014a38fe07618ca820aded387b09ba6.file.install.tpl.php
on line 304" while reading response header from upstream, client:
75.150.73.57, server: piwigo.entiret.com, request: "GET /install.php
HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "piwigo.domain.com"

I tried adding /var/www/piwigo/includes/smarty/libs and
/var/www/piwigo/includes/smarty/libs/plugins as well as
/includes/smarty/libs and /includes/smarty/libs/plugins to my php
include_path but that didn't help.

Any help greatly appreciated, my php-fpm config is below.

Aaron

/etc/php-fpm.conf:

error_log = /var/log/php-fpm.error.log
; alert, error, warning, notice, debug
; log_level = error
; log_level = debug
log_level = notice

[piwigo]
chroot = /var/www/piwigo

user = www
group = www

listen = 127.0.0.1:9000

listen.owner = www
listen.group = www
listen.mode = 0666

listen.allowed_clients = 127.0.0.1

pm = dynamic
pm.max_children = 25
pm.start_servers = 5
pm.min_spare_servers = 5
pm.max_spare_servers = 10

php_admin_value[memory_limit] = 256M
php_admin_value[safe_mode] = off
php_admin_value[register_globals] = off
php_admin_value[magic_quotes_gpc] = off
;php_admin_value[session.save_path] = /tmp
php_admin_value[suhosin.get.max_value_length] = 5172
;php_admin_value[include_path] = include/smarty/libs/plugins
;php_admin_value[disable_functions] = dir,chdir,opendir,readdir
php_value[session.save_handler] = files

--

---
You received this message because you are subscribed to the Google Groups "highload-php-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to highload-php-en+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 268
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready