Description of problem:
Nginx X does not start with default configuration on 28 Server.
Version-Release number of selected component (if applicable):
# rpm -qa | grep nginx
nginx-filesystem-1.12.1-5.fc28.noarch
nginx-1.12.1-5.fc28.x86_64
nginx-mimetypes-2.1.48-3.fc28.noarch
How reproducible:
100% on a new installation. I tried installing on 27 then upgrading and it worked just fine.
Steps to Reproduce:
1. Install Nginx package on fresh install (mine is in a KVM VM with 2GB RAM, 10 GB disk, probably doesn't matter)
2. sudo systemctl enable nginx
3. sudo systemctl start nginx
Actual results:
Nginx does not start.
[root@myserver ~]# systemctl enable nginx
[root@myserver ~]# systemctl start nginx
[root@myserver ~]# systemctl status nginx
● nginx.service - The nginx HTTP and reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
Drop-In: /usr/lib/systemd/system/nginx.service.d
└─php-fpm.conf
Active: failed (Result: exit-code) since Thu 2018-05-03 05:56:15 PDT; 5s ago
May 03 05:56:15 myserver.test systemd[1]: Starting The nginx HTTP and reverse proxy server...
May 03 05:56:15 myserver.test nginx[7610]: nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied)
May 03 05:56:15 myserver.test nginx[7610]: 2018/05/03 05:56:15 [warn] 7610#0: could not build optimal types_hash, you should increase either types_hash_max_size: 1024 or types_hash_bucket_size: 64; ignor>
May 03 05:56:15 myserver.test nginx[7610]: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
May 03 05:56:15 myserver.test nginx[7610]: 2018/05/03 05:56:15 [emerg] 7610#0: mkdir() "/var/lib/nginx/tmp/client_body" failed (13: Permission denied)
May 03 05:56:15 myserver.test nginx[7610]: nginx: configuration file /etc/nginx/nginx.conf test failed
May 03 05:56:15 myserver.test systemd[1]: nginx.service: Control process exited, code=exited status=1
May 03 05:56:15 myserver.test systemd[1]: nginx.service: Failed with result 'exit-code'.
May 03 05:56:15 myserver.test systemd[1]: Failed to start The nginx HTTP and reverse proxy server.
Expected results:
Nginx is started and an example web server is accessible on port 80, at least via localhost until the firewall rules are changed.
Additional info:
Description of problem: Nginx X does not start with default configuration on 28 Server. Version-Release number of selected component (if applicable): # rpm -qa | grep nginx nginx-filesystem-1.12.1-5.fc28.noarch nginx-1.12.1-5.fc28.x86_64 nginx-mimetypes-2.1.48-3.fc28.noarch How reproducible: 100% on a new installation. I tried installing on 27 then upgrading and it worked just fine. Steps to Reproduce: 1. Install Nginx package on fresh install (mine is in a KVM VM with 2GB RAM, 10 GB disk, probably doesn't matter) 2. sudo systemctl enable nginx 3. sudo systemctl start nginx Actual results: Nginx does not start. [root@myserver ~]# systemctl enable nginx [root@myserver ~]# systemctl start nginx [root@myserver ~]# systemctl status nginx ● nginx.service - The nginx HTTP and reverse proxy server Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled) Drop-In: /usr/lib/systemd/system/nginx.service.d └─php-fpm.conf Active: failed (Result: exit-code) since Thu 2018-05-03 05:56:15 PDT; 5s ago May 03 05:56:15 myserver.test systemd[1]: Starting The nginx HTTP and reverse proxy server... May 03 05:56:15 myserver.test nginx[7610]: nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied) May 03 05:56:15 myserver.test nginx[7610]: 2018/05/03 05:56:15 [warn] 7610#0: could not build optimal types_hash, you should increase either types_hash_max_size: 1024 or types_hash_bucket_size: 64; ignor> May 03 05:56:15 myserver.test nginx[7610]: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok May 03 05:56:15 myserver.test nginx[7610]: 2018/05/03 05:56:15 [emerg] 7610#0: mkdir() "/var/lib/nginx/tmp/client_body" failed (13: Permission denied) May 03 05:56:15 myserver.test nginx[7610]: nginx: configuration file /etc/nginx/nginx.conf test failed May 03 05:56:15 myserver.test systemd[1]: nginx.service: Control process exited, code=exited status=1 May 03 05:56:15 myserver.test systemd[1]: nginx.service: Failed with result 'exit-code'. May 03 05:56:15 myserver.test systemd[1]: Failed to start The nginx HTTP and reverse proxy server. Expected results: Nginx is started and an example web server is accessible on port 80, at least via localhost until the firewall rules are changed. Additional info: