Hello folks,
The past couple of weeks I spend converting from being a Linux guy to becoming a FreeBSD guy. After I've had a really nice time with FreeBSD I felt that it's finally time to stop playing around and moving one of my web servers from an Ubuntu server to a FreeBSD server.
I setup Nginx 1.8.0, PHP-FPM 5.6 and MySQL 14.14. Getting the first few static HTML pages working was no problem at all and just a matter of minutes. Then I wanted to migrate a MediaWiki but I didn't succeed so far. No matter what I try all I end up with is a blank page when navigating to the corresponding URL.
I'm out of ideas and I really need your help, guys.
As already mentioned serving static HTML pages is no problem. Furthermore I verified that PHP is working correctly by creating a new virtual host and an index.php that just executes phpinfo(). That works as expected too. But the virtual host for the mediawiki just returns a blank page (but it succeeds to supply the favicon, interestingly).
Here's my /usr/local/etc/nginx/nginx.conf:
And here's the server{} section for the virtual host serving the MediaWiki /usr/local/etc/nginx/vhosts/wiki.ugfx.org:
Any thoughts on this? Did I miss something obvious?
I verified that permissions are set correctly. /usr/local/www/wiki.ugfx.org belongs to the user www and the group www. That was set recursively. After I got really desperate I even set permissions to 777 (recursively) but nothing changed.
The Nginx error log file (/var/log/nginx.error.log) shows some weird message I've never seen before. Not sure how to interpret that:
I made sure that both the user and the group in the php-fpm.conf were set to www.
Any other comments are of course also welcomed. I am still learning
The past couple of weeks I spend converting from being a Linux guy to becoming a FreeBSD guy. After I've had a really nice time with FreeBSD I felt that it's finally time to stop playing around and moving one of my web servers from an Ubuntu server to a FreeBSD server.
I setup Nginx 1.8.0, PHP-FPM 5.6 and MySQL 14.14. Getting the first few static HTML pages working was no problem at all and just a matter of minutes. Then I wanted to migrate a MediaWiki but I didn't succeed so far. No matter what I try all I end up with is a blank page when navigating to the corresponding URL.
I'm out of ideas and I really need your help, guys.
As already mentioned serving static HTML pages is no problem. Furthermore I verified that PHP is working correctly by creating a new virtual host and an index.php that just executes phpinfo(). That works as expected too. But the virtual host for the mediawiki just returns a blank page (but it succeeds to supply the favicon, interestingly).
Here's my /usr/local/etc/nginx/nginx.conf:
Code:
user www;
worker_processes 2;
error_log /var/log/nginx.error.log info;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
access_log /var/log/nginx.access.log;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
# GZIP compression
gzip on;
gzip_comp_level 5;
gzip_min_length 256;
gzip_proxied any;
gzip_vary on;
gzip_disable "msie6";
gzip_types
text/plain
text/css
text/xml
text/javascript
application/xml
application/javascript
application/x-javascript;
# Include virtual hosts
include /usr/local/etc/nginx/vhosts/*;
}
And here's the server{} section for the virtual host serving the MediaWiki /usr/local/etc/nginx/vhosts/wiki.ugfx.org:
Code:
server {
server_name wiki2.ugfx.org;
root /usr/local/www/wiki.ugfx.org;
index index.php;
client_max_body_size 5m;
client_body_timeout 60;
location / {
try_files $uri $uri/ @rewrite;
}
location @rewrite {
rewrite ^/(.*)$ /index.php?title=$1&$args;
}
location ^~ /maintenance/ {
return 403;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass unix:/var/run/php-fpm.sock;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
try_files $uri /index.php;
expires max;
log_not_found off;
}
location = /_.gif {
expires max;
empty_gif;
}
location ^~ /cache/ {
deny all;
}
location /dumps {
root /usr/local/www/wiki.ugfx.org/local;
autoindex on;
}
}
Any thoughts on this? Did I miss something obvious?
I verified that permissions are set correctly. /usr/local/www/wiki.ugfx.org belongs to the user www and the group www. That was set recursively. After I got really desperate I even set permissions to 777 (recursively) but nothing changed.
The Nginx error log file (/var/log/nginx.error.log) shows some weird message I've never seen before. Not sure how to interpret that:
Code:
280 2016/01/30 18:43:07 [notice] 6372#0: signal 15 (SIGTERM) received, exiting
281 2016/01/30 18:43:07 [notice] 6373#0: exiting
282 2016/01/30 18:43:07 [notice] 6374#0: exiting
283 2016/01/30 18:43:07 [notice] 6373#0: exit
284 2016/01/30 18:43:07 [notice] 6374#0: exit
285 2016/01/30 18:43:07 [notice] 6372#0: signal 20 (SIGCHLD) received
286 2016/01/30 18:43:07 [notice] 6372#0: worker process 6374 exited with code 0
287 2016/01/30 18:43:07 [notice] 6372#0: signal 23 (SIGIO) received
288 2016/01/30 18:43:07 [notice] 6372#0: signal 23 (SIGIO) received
289 2016/01/30 18:43:07 [notice] 6372#0: signal 20 (SIGCHLD) received
290 2016/01/30 18:43:07 [notice] 6372#0: worker process 6373 exited with code 0
291 2016/01/30 18:43:07 [notice] 6372#0: exit
292 2016/01/30 18:43:07 [notice] 7234#0: using the "kqueue" event method
293 2016/01/30 18:43:07 [notice] 7234#0: nginx/1.8.0
294 2016/01/30 18:43:07 [notice] 7234#0: OS: FreeBSD 10.2-RELEASE-p9
295 2016/01/30 18:43:07 [notice] 7234#0: kern.osreldate: 1002000, built on 1001000
296 2016/01/30 18:43:07 [notice] 7234#0: hw.ncpu: 2
297 2016/01/30 18:43:07 [notice] 7234#0: net.inet.tcp.sendspace: 32768
298 2016/01/30 18:43:07 [notice] 7234#0: kern.ipc.somaxconn: 128
299 2016/01/30 18:43:07 [notice] 7234#0: getrlimit(RLIMIT_NOFILE): 58284:58284
300 2016/01/30 18:43:07 [notice] 7235#0: start worker processes
301 2016/01/30 18:43:07 [notice] 7235#0: start worker process 7236
302 2016/01/30 18:43:07 [notice] 7235#0: start worker process 7237
303 2016/01/30 18:43:07 [notice] 7235#0: signal 23 (SIGIO) received
304 2016/01/30 18:43:29 [info] 7237#0: *4 client closed connection while waiting for request, client: xx.xx.xx.xx, server: 0.0.0.0:80
305 2016/01/30 18:53:31 [info] 7237#0: *10 kevent() reported that client 218.55.21.53 closed keepalive connection (54: Connection reset by peer)
306 2016/01/30 18:56:37 [info] 7237#0: *14 client closed connection while waiting for request, client: xx.xx.xx.xx, server: 0.0.0.0:80
307 2016/01/30 18:56:57 [info] 7237#0: *16 client closed connection while waiting for request, client: xx.xx.xx.xx, server: 0.0.0.0:80
308 2016/01/30 18:57:33 [notice] 7237#0: signal 15 (SIGTERM) received, exiting
309 2016/01/30 18:57:33 [info] 7237#0: kevent() failed (4: Interrupted system call)
310 2016/01/30 18:57:33 [notice] 7237#0: exiting
311 2016/01/30 18:57:33 [notice] 7236#0: signal 15 (SIGTERM) received, exiting
312 2016/01/30 18:57:33 [info] 7236#0: kevent() failed (4: Interrupted system call)
313 2016/01/30 18:57:33 [notice] 7236#0: exiting
314 2016/01/30 18:57:33 [notice] 7235#0: signal 15 (SIGTERM) received, exiting
315 2016/01/30 18:57:33 [notice] 7237#0: exit
316 2016/01/30 18:57:33 [notice] 7236#0: exit
317 2016/01/30 18:57:33 [notice] 7235#0: signal 20 (SIGCHLD) received
318 2016/01/30 18:57:33 [notice] 7235#0: worker process 7237 exited with code 0
319 2016/01/30 18:57:33 [notice] 7235#0: worker process 7236 exited with code 0
320 2016/01/30 18:57:33 [notice] 7235#0: exit
321 2016/01/30 18:58:18 [notice] 647#0: using the "kqueue" event method
322 2016/01/30 18:58:18 [notice] 647#0: nginx/1.8.0
323 2016/01/30 18:58:18 [notice] 647#0: OS: FreeBSD 10.2-RELEASE-p9
324 2016/01/30 18:58:18 [notice] 647#0: kern.osreldate: 1002000, built on 1001000
325 2016/01/30 18:58:18 [notice] 647#0: hw.ncpu: 2
326 2016/01/30 18:58:18 [notice] 647#0: net.inet.tcp.sendspace: 32768
327 2016/01/30 18:58:18 [notice] 647#0: kern.ipc.somaxconn: 128
328 2016/01/30 18:58:18 [notice] 647#0: getrlimit(RLIMIT_NOFILE): 58284:58284
329 2016/01/30 18:58:18 [notice] 648#0: start worker processes
330 2016/01/30 18:58:18 [notice] 648#0: start worker process 652
331 2016/01/30 18:58:18 [notice] 648#0: start worker process 653
332 2016/01/30 18:58:18 [notice] 648#0: signal 23 (SIGIO) received
I made sure that both the user and the group in the php-fpm.conf were set to www.
Any other comments are of course also welcomed. I am still learning