Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support installing easyengine on existing server #101

Closed
showcasefloyd opened this issue Dec 31, 2013 · 8 comments
Closed

Support installing easyengine on existing server #101

showcasefloyd opened this issue Dec 31, 2013 · 8 comments

Comments

@showcasefloyd
Copy link

No description provided.

@showcasefloyd
Copy link
Author

Actually I got this to work, after I discover that you need wp-cli installed. I guess I missed it in your documentation or something. Anyhow, after the install runs I get another message

nginx: [emerg] unknown log format "rt_cache" in /etc/nginx/sites-enabled/test2.mysever.box:6
nginx: configuration file /etc/nginx/nginx.conf test failed
[ Tue Dec 31 14:23:12 EST 2013 ] Unable To Reload Nginx

@showcasefloyd
Copy link
Author

Okay now I'm getting a 502 error when I try to access wp-admin

2013/12/31 14:45:23 [error] 29923#0: *6 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.17.198, server: test2.myserver.box, request: "GET /wp-login.php?redirect_to=http%3A%2F%2Ftest2.myserver.box%2Fwp-admin%2F&reauth=1 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "test2.myserver.box"

Help please. It seems like this thing is full of bugs

@rahul286
Copy link
Member

rahul286 commented Jan 1, 2014

@showcasefloyd did u tried easyengine setup on fresh server only?

@rahul286
Copy link
Member

rahul286 commented Jan 1, 2014

It looks like your PHP-FPM is not accepting connections.

Try service php5-fpm restart.

Also check if php5 process are running when you tried opening a page.

@ghost ghost assigned MiteshShah Jan 1, 2014
@MiteshShah
Copy link
Member

@showcasefloyd

Its seems like nginx and/or php is not installed with easyengine (ee system install)

nginx: [emerg] unknown log format "rt_cache" in /etc/nginx/sites-enabled/test2.mysever.box:6
nginx: configuration file /etc/nginx/nginx.conf test failed
[ Tue Dec 31 14:23:12 EST 2013 ] Unable To Reload Nginx

rt_cache Fix:

Add following lines in your nginx.conf

vim /etc/nginx/nginx.conf
log_format rt_cache '$remote_addr - $upstream_cache_status [$time_local] '
                '"$request" $status $body_bytes_sent '
                '"$http_referer" "$http_user_agent"';
nginx -t && service nginx reload

502 Bad Gateway:

Make sure your php listen on 9000 port

vim /etc/php5/fpm/pool.d/www.conf
listen = 127.0.0.1:9000

@showcasefloyd
Copy link
Author

Hey guys,

Thanks for the feedback. I believe most of my issues were because I was not starting with a fresh install.

I already had an instance of Nginx and php5-fpm running before I download your script.

Although EasyEngine is really great, I think you should consider this in your install script. Not everyone can (or wants to) start with a fresh install. In my case I have a production machine running with a live web site on it that I can really just take off line.

I have another quick question can I use this set up to run NGINX as a reverse proxy server against an Apache2 instance. I read this was advisable since then NGINX only has to serve static content and Apache can continue to run in the background doing the PHP heavy lifting.

What changes would I need to make to this set up to get to to work.

Thanks so much,

Floyd

@rahul286
Copy link
Member

@showcasefloyd your suggestion is nice and at some point we really wish to create a script which will install easyengine on existing machines.

For clarity - I am changing title of the issue to: "Support installing easyengine on existing server"

For records, old title was: "Keeps bombing out at the end / Git error?"

@rahul286 rahul286 added this to the Later milestone Feb 18, 2014
@rahul286
Copy link
Member

Original issue is similar to #8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants