Service nginx reload: unexpected error
Posted
by
Anna
on Server Fault
See other posts from Server Fault
or by Anna
Published on 2014-06-01T20:24:26Z
Indexed on
2014/06/01
21:30 UTC
Read the original article
Hit count: 287
I'm trying to install wordpress on my nginx server by following this tutorial: http://premium.wpmudev.org/blog/how-to-setup-your-own-nginx-powered-wordpress-server/
However, the last command at step 7 gave me a strange error: service nginx reload
A copy-paste from my terminal:
root@server:~# service nginx reload
Reloading nginx configuration: nginx: [emerg] unexpected "o" in /etc/nginx/sites-enabled/wordpress:7
nginx: configuration file /etc/nginx/nginx.conf test failed
When I nano into sites-enabled/wordpress, on the 7th line I can't find anything strange:
<!DOCTYPE html>
<html class=" ">
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# object: http://ogp.me/ns/object# article: http://ogp.me/ns/article# profile: http://ogp.me/ns/profile#">
<meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
Also, I don't see any obvious errors in my nginx.conf file, but maybe I'm not checking something?
The first couple of lines of the nginx config file:
user www-data;
worker_processes 4;
pid /var/run/nginx.pid;
events {
worker_connections 768;
# multi_accept on;
}
Any help is appreciated, thanks a lot in advance!
© Server Fault or respective owner