[solved] having trouble starting nginx

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

[solved] having trouble starting nginx

Postby permitivity » Thu Jan 23, 2014 5:49 am

Hello,
I just have a simple webpage I want to host. I installed and start nginx like this:

$this->bbcode_second_pass_quote('', '
')pacman -Sy nginx php-fpm

systemctl start php-fpm
systemctl start nginx


I get this error:

$this->bbcode_second_pass_quote('', '[')root@alarm system]# systemctl start nginx
Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.
[root@alarm system]#

[root@alarm system]# systemctl status nginx.service
nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; disabled)
Active: failed (Result: exit-code) since Wed 2014-01-22 23:43:06 CST; 1min 5s ago
Process: 6689 ExecStartPre=/usr/bin/nginx -t -q -g pid /run/nginx.pid; daemon on; master_process on; (code=exited, status=1/FAILURE)


I've made this work before without much issues. Any ideas what might be wrong? Here's my config file under /etc/nginx/nginx.conf.

$this->bbcode_second_pass_code('', '
worker_processes 1;

events {
worker_connections 1024;
}

http {
include mime.types;
default_type application/octet-stream;
sendfile on;

keepalive_timeout 65;

server {
listen 80; #if you have re-instated pogoplug software 80 is in use, use 8080 instead
server_name pogoplug;
autoindex on;

client_max_body_size 10G; # set max upload size
fastcgi_buffers 64 4K;

location / {
root /srv/http;
index index.php index.html index.htm;
}

location ~ \.php$ {
include fastcgi_params;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /srv/http$fastcgi_script_name;
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
}
}
}
')
Last edited by permitivity on Sun Feb 02, 2014 7:55 am, edited 1 time in total.
permitivity
 
Posts: 141
Joined: Mon Feb 18, 2013 3:08 am

Re: having trouble starting nginx

Postby grayman4hire » Fri Jan 24, 2014 11:22 pm

@permitivity,

If you're looking for a simple HTTP server, I would recommend mongoose.

I have a pre-compiled version if you're interested.

gray
grayman4hire
 
Posts: 350
Joined: Sat Sep 29, 2012 12:03 am
Location: SF, CA

Re: having trouble starting nginx

Postby WarheadsSE » Fri Jan 24, 2014 11:27 pm

It's not that hard to get working. Have a look at the logs, and `journalctl -u nginx.service`. You might need to start php-fpm before nginx.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: having trouble starting nginx

Postby permitivity » Sun Feb 02, 2014 7:55 am

ok, I got it. The spacing in the nginx.conf file was all wrong.
permitivity
 
Posts: 141
Joined: Mon Feb 18, 2013 3:08 am


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 3 guests