Hello guys,
Someone can tell if there is any in FreeBSD black magic during configuration php-fpm and apache or nginx in jail ?
I can't show website like wordpress or joomla or everything. I have been trying on Centos many times. I have the same config files. On Centos works like a charm even with Selinux enabled. On FreeBSD it doesn't work !!!
The funny thing is that when i put info.php to show settings there exist FPM/FastCGI but when i download for example wordpress i got issue:
Im looking into error.log
php-fpm
vhost apache:
I don't see any issues in configurations and as i said before it works like a charm on Centos !
This is inside a jail. Someone can tell me what is wrong with it ?? I was trying to do based on many tutorials, documentation, examples and nothing has worked.[/code]
# Edit
I forgot add note that it works when i use apache24 with php71 but doesn't want to work with php-fpm.
Someone can tell if there is any in FreeBSD black magic during configuration php-fpm and apache or nginx in jail ?
I can't show website like wordpress or joomla or everything. I have been trying on Centos many times. I have the same config files. On Centos works like a charm even with Selinux enabled. On FreeBSD it doesn't work !!!
The funny thing is that when i put info.php to show settings there exist FPM/FastCGI but when i download for example wordpress i got issue:
Code:
Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
Im looking into error.log
Code:
root@proton:/var/log # cat error.log
[Fri Nov 17 00:54:18.955135 2017] [proxy_fcgi:error] [pid 66312] [client 94.254.163.126:48249] AH01067: Failed to read FastCGI header, referer: http://proton.edu.pl/wordpress/
[Fri Nov 17 00:54:18.955237 2017] [proxy_fcgi:error] [pid 66312] (70014)End of file found: [client 94.254.163.126:48249] AH01075: Error dispatching request to : , referer: http://proton.edu.pl/wordpress/
root@proton:/var/log #
php-fpm
Code:
[bryn1u]
pm = dynamic
pm.start_servers = 5
pm.min_spare_servers = 5
pm.max_children = 10
pm.max_spare_servers = 10
php_admin_value[display_errors] = stderr
php_admin_value[log_errors] = On
listen = 127.0.0.1:9001
listen.mode = 0660
listen.owner = bryn1u
user = bryn1u
chdir = /
vhost apache:
Code:
<VirtualHost *:80>
ServerName proton.edu.pl
ServerAlias www.proton.edu.pl
DocumentRoot /usr/local/www/apache24/data
ServerAdmin bryn1u@proton.edu.pl
AddDefaultCharset off
CustomLog /var/log/access.log combined
ErrorLog /var/log/error.log
<LocationMatch "^/(.*\.php(/.*)?)$">
SetHandler "proxy:fcgi://127.0.0.1:9000"
</LocationMatch>
</VirtualHost>
<VirtualHost *:80>
ServerName bryn1u.proton.edu.pl
ServerAlias www.bryn1u.proton.edu.pl
DocumentRoot /home/bryn1u/domains/bryn1u.proton.edu.pl
ServerAdmin bryn1u@proton.edu.pl
DirectoryIndex index.php index.html
CustomLog /home/bryn1u/logs/bryn1u.proton.edu.pl-access combined
ErrorLog /home/bryn1u/logs/bryn1u.proton.edu.pl-error
AddDefaultCharset off
<LocationMatch "^/(.*\.php(/.*)?)$">
SetHandler "proxy:fcgi://127.0.0.1:9001"
</LocationMatch>
<Directory "/home/bryn1u/domains/bryn1u.proton.edu.pl">
Options +Indexes +ExecCGI +Includes
AllowOverride None
Require all granted
</Directory>
</VirtualHost>
This is inside a jail. Someone can tell me what is wrong with it ?? I was trying to do based on many tutorials, documentation, examples and nothing has worked.[/code]
# Edit
I forgot add note that it works when i use apache24 with php71 but doesn't want to work with php-fpm.