Nginx failed after ./build nginx

Fred.

Verified User
Joined
Sep 5, 2009
Messages
220
Can anyone please help me?
Nginx failed after ./build nginx
and ngx_http_spdy_module is in there.
nothing changed :confused:

Code:
Enabling nginx in systemd...
Using 109.**.161.92 for your server IP
Using 109.**.161.92 for your server IP
Checking to ensure /etc/nginx/ssl.crt/server.ca is set.
Using 109.**.161.92 for your server IP
Using 109.**.161.92 for your server IP
Restarting nginx.
Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.
[root@server01 custombuild]# systemctl status nginx.service
nginx.service - The nginx HTTP and reverse proxy server
   Loaded: loaded (/etc/systemd/system/nginx.service; enabled)
   Active: failed (Result: exit-code) since zo 2015-04-12 23:53:17 CEST; 25s ago
  Process: 70454 ExecStartPre=/usr/sbin/nginx -t -c /etc/nginx/nginx.conf (code=exited, status=1/FAILURE)
 Main PID: 11823 (code=exited, status=0/SUCCESS)

apr 12 23:53:17 server01.example.com systemd[1]: Starting The nginx HTTP and reverse proxy server...
apr 12 23:53:17 server01.example.com nginx[70454]: nginx: [emerg] the "spdy" parameter requires ngx_http_spdy_module in /etc/nginx/nginx-vhosts.conf:27
apr 12 23:53:17 server01.example.com nginx[70454]: nginx: configuration file /etc/nginx/nginx.conf test failed
apr 12 23:53:17 server01.example.com systemd[1]: nginx.service: control process exited, code=exited status=1
apr 12 23:53:17 server01.example.com systemd[1]: Failed to start The nginx HTTP and reverse proxy server.
apr 12 23:53:17 server01.example.com systemd[1]: Unit nginx.service entered failed state.
 
Last edited:
It doesn't seem that ngx_http_spdy_module is compiled-in. Please check your /usr/local/directadmin/custombuild/custom/nginx/configure.nginx file (and let us know the content of it, if you're unable to find the cause).
 
It looks like the file doesn't exist. if I type nano /usr/local/directadmin/custombuild/custom/nginx/configure.nginx

but it exists in my file manager with the right name.
I made a new file with nano /usr/local/directadmin/custombuild/custom/nginx/configure.nginx

and put this inside

Code:
#!/bin/sh
./configure \
    "--user=nginx" \
    "--group=nginx" \
    "--prefix=/usr" \
    "--sbin-path=/usr/sbin" \
    "--conf-path=/etc/nginx/nginx.conf" \
    "--pid-path=/var/run/nginx.pid" \
    "--http-log-path=/var/log/nginx/access_log" \
    "--error-log-path=/var/log/nginx/error_log" \
    "--with-ipv6" \
    "--without-mail_imap_module" \
    "--without-mail_smtp_module" \
    "--with-http_ssl_module" \
    "--with-http_realip_module" \
    "--with-http_stub_status_module" \
    "--with-http_gzip_static_module" \
    "--with-http_dav_module" \
    "--with-cc-opt='-D FD_SETSIZE=32768'" \
    "--with-http_spdy_module"

then I did

Code:
[root@server01 custombuild]# ./build nginx
File already exists
MD5 Checksum on nginx-1.6.2.tar.gz passed.
File already exists
MD5 Checksum on nginx.boot passed.
File already exists
MD5 Checksum on nginx.boot.freebsd passed.
File already exists
MD5 Checksum on nginx.boot.debian passed.
Found /usr/local/directadmin/custombuild/nginx-1.6.2.tar.gz
Extracting /usr/local/directadmin/custombuild/nginx-1.6.2.tar.gz...
Configuring nginx-1.6.2
./build: line 14182: /usr/local/directadmin/custombuild/custom/nginx/configure.nginx: Permission denied

*** There was an error while trying to configure Nginx. Check the custom/nginx/configure.nginx file
[root@server01 custombuild]#
 
It looks like it's in /usr/local/directadmin/custombuild/custom/nginx/conf/configure.nginx instead of /usr/local/directadmin/custombuild/custom/nginx/configure.nginx

but I have it in both locations now.
 
Back
Top