Nginx virtual host: PHP5-FPM-Sock error

I am trying to set up a virtual host for a new ubuntu/php5.5/nginx installation

etc/nginx/sites_available/mydomain.com:< /p>

server {
listen 80 default_server;
root /home/www/mydomain.com/public/;
index index.php index. html
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
server_name mydomain.com;

location ~ \.php${
try_files $uri =404;
fastcgi_index index.php;
fastcgi_pass php5-fpm-sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_read_timeout 240;
include /etc/nginx/fastcgi_params;
}
}

etc / hosts file:

127.0.0.1 mydomain.com

The symbolic link in the symbolic link in the “sites-enabled” folder:

sudo ln -s / etc/nginx/sites-available/mydomain.com /etc/nginx/sites-enabled/mydomain.com

this

service nginx restart 

Failed, var/log/nginx/error.log gives

no port in upstream "php5-fpm-sock" in /etc/nginx/sites-enabled/mydomain.com:12

What could be wrong?

missing fpm address path:

< pre>nano /etc/nginx/conf.d/php5-fpm.conf

Edit:

upstream php5-fpm-sock {
server unix:/var/run/php5-fpm.sock;
}

I am trying to set up a new ubuntu/php5.5/nginx installation Virtual host

etc/nginx/sites_available/mydomain.com:

server {
listen 80 default_server;
root /home/www/mydomain.com/public/;
index index.php index.html
access_log /var/log/nginx/access.log;
error_log /var/log /nginx/error.log;
server_name mydomain.com;

location ~ \.php${
try_files $uri =404;
fastcgi_index index.php;
fastcgi_pass php5-fpm-sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_read_timeout 240;
include /etc/nginx/fastcgi_params;
}
}

etc/hosts file:

127.0.0.1 mydomain.com

“sites-enabled Symbolic links in symbolic links in the folder:

sudo ln -s /etc/nginx/sites-available/mydomain.com /etc/nginx/sites-enabled/ mydomain.com

This

service nginx restart

Failed, var/log/nginx/error.log gives

p>

no port in upstream "php5-fpm-sock" in /etc/nginx/sites-enabled/mydomain.com:12

What could be wrong ?

Missing fpm address path:

nano /etc/nginx/conf.d/ php5-fpm.conf

Edit:

upstream php5-fpm-sock {
server unix:/var/run/php5-fpm .sock;
}

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 4645 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.