Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Installing SilverStripe /

Getting SilverStripe up and running on your computer and on your web server.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

[SOLVED] SS 3.0.3 on MediaTemple DV4.0 502 Error


Reply


8 Posts   1842 Views

Avatar
zenmonkey

Community Member, 532 Posts

28 November 2012 at 1:51pm

I've just done a base install of 3.0.3 on a new MediaTemple DV, the install worked fine, but once I logged in SiteTree and Listview throw 502 Bag Gateway errors

Avatar
zenmonkey

Community Member, 532 Posts

28 November 2012 at 6:59pm

Edited: 28/11/2012 7:00pm

After much wringing of hands, bashing of heads here is the answer

I'm going to post this for anyone else (you'll need root access and to ssh in)

in your /etc/ngibx/nginx.conf add the following lines to the http directive

proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;

then restart nginx

/etc/init.d/httpd restart

Avatar
badjedi

Community Member, 25 Posts

6 December 2012 at 1:14pm

I am having same problem - but its not working, I have tried running that command from both root SSH access and the SSH specific to domain.

I m using Media temple DV Account.

ive edited the etc/nginx/nginx.conf file to be:

#user nginx;
worker_processes 1;

#error_log /var/log/nginx/error.log;
#error_log /var/log/nginx/error.log notice;
#error_log /var/log/nginx/error.log info;

#pid /var/run/nginx.pid;

events {
worker_connections 1024;
}

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

#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';

#access_log /var/log/nginx/access.log main;

sendfile on;
#tcp_nopush on;

#keepalive_timeout 0;
keepalive_timeout 65;
#tcp_nodelay on;

#gzip on;
#gzip_disable "MSIE [1-6]\.(?!.*SV1)";

proxy_buffer_size 128k;
   proxy_buffers 4 256k;
   proxy_busy_buffers_size 256k;

server_tokens off;

include /etc/nginx/conf.d/*.conf;
}

Is this right?

Avatar
zenmonkey

Community Member, 532 Posts

6 December 2012 at 1:37pm

That's what mine looks like mine except I added the three lines after server_tokens And teh changes are to the root setting and NOT the indiviudal domain (individual domain files get overwritten). You may need to reboot httpd as well. And make sure the account is running PHP as FastCGI Application.

If you uplaoded the files or installed it with PHP running as something other than FastCGI you may have screwed up the permision so you'd need to re-upload and install.

And you are running on DV4 with plesk11, its not an older account?

Avatar
hp777

Community Member, 12 Posts

28 March 2013 at 6:24am

Off topic but I also host on MT can you add youtube/Vimeo links with Media link (Oembed feature). I have not been able to get this working. I've tried a bunch of things, But I do not get any errors, it just fails to convert the link to iframe embed code. Can tell if it is related to MT DV4 server

Avatar
zenmonkey

Community Member, 532 Posts

28 March 2013 at 6:26am

I haven't tried using th oembed on any of my MT sites. Sorry

Avatar
zenmonkey

Community Member, 532 Posts

26 April 2014 at 6:50am

Did you ever find an solution to the oembed, I'm running into it now. The server doesn't follow the redeirect directive from YouTube and Vimeo. It just gets a 302 and stops following through.

Avatar
hp777

Community Member, 12 Posts

26 April 2014 at 7:03am

Sorry No. I wish I had figured it out. I'm not using SS because of it. Not sure if it has to do with xml or tmp directory. I did't see any errors in logs
If you figure it out please post!