wordpress website AWS taking too long to load [closed] - wordpress

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I have a website running on wordpress (Bitnami).the server is on an AWS behind an elastic load balancer. However, when i hit the wordpress website, it is taking too long to respond.
There is another nodejs API that is running on the same AWS server (on port 4000). That is returning a response pretty fast. So, this would not be a DNS resoulution issue.
Any idea how i can debug the reason why the wordpress website is taking too long to load?

This will likely be a security group issue judging on the behaviour you're experiencing.
Ensure the following:
The Load Balancers security group allows inbound access (port 80 for HTTP, port 443 for HTTPS)
The instances security group allows inbound access from the load balancer (on the port the application should be loaded from).
Check the health of the host in the load balancer interface within the console.
If the database is external to the instance host (i.e. another server or RDS) then ensure it supports inbound access from the instance (port 3306 for MySQL).
If the database is running on the same server (the default for bitnami) ensure it is connecting to the host as localhost.

Related

About the the use of Nginx [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
I was learning nginx and as I found out that it is a load balancer helping to handle a loads of requests to a server. The question I wanted to ask is that as I also found out, nginx is best to be used when one server gets overloaded and we need to add up one more server. So, is it true that nginx is best to used ONLY when one server cannot handle the number of requests?
Although it looks like Nginx should be added only when you need to load balance between multiple servers, and IMO this decision is correct as sometimes it is good to avoid increasing the entropy if you can't manage it.
But apart from being a load balancer, Nginx is also widely used for:
Reverse proxy for multiple services [virtual hosts] (load balancing isn't mandatory)
Content caching (to avoid request hitting upstream servers everytime)
SSL termination
API Gateway (for security, rate limiting and routing)
Sometimes, also as a web server
so even if you aren't load-balancing you can get benefit from facilities provided by nginx like content caching, SSL termination, rate limiting, etc.
Later when need arises you can easily add more machines in the upstream to start load balancing.

Best approach to connect to SQL Server from a non-domain web host [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I want to connect to SQL Server using a domain account from a web host that is NOT in the domain. This is a plain vanilla ASP.NET web app. This off-domain site hits Reporting Services using domain credentials and I don't know why this isn't allowed for SQL connections.
We have a lot of internal apps (win form and web form) and this is the last one to convert to integrated security so we can manage permissions across the board via AD, but if I have to do it in SQL, then I can accept defeat.
Has anyone figured out how to do this or is it just not possible?
You can Connect to domain SQL Server 2005 from non-domain machine and later versions but this requires that you can connect to the domain from the remote machine.
You can connect to Reporting Services using domain credential because it uses NTLM for Windows Integrated authentication which goes through HTTP authentication. Direct connections to SQL Server don't use HTTP so this type of authentication isn't available.
You will need to join the SQL box to the Web App domain or the other way around or make a trust relationship between the domains
runas /netonly /user:domain\username "c:\path\ssms.exe"
look at this post here:
http://www.mssqltips.com/sqlservertip/3250/connect-to-sql-servers-in-another-domain-using-windows-authentication/

How to hide my website port number on website url [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 12 months ago.
Improve this question
My website has implemented by using JAVA. So we have taken VPS and installed Tomcat then deployed
My website is appearing like this
whenever I click www.mysite.com in url ... it is appearing as below.
http://mysite.com:8080/foldername/
But I would like to see my website as www.mysite.com
Can any one suggest me what to do .. should I do any changes in htaccess file ?
If you don't provide the port number in the URL your HTTP requests would be sent to port 80. You can set up a firewall rule to redirect requests headed towards port 80 to 8080.
If you don't want a port number in your URL, you have to use the default port number for HTTP, which is 80. If it's anything other than 80, you will be required to put the port number in the URL. That's all there is to it.
Now, if your question is "how do I host my Tomcat website on port 80", well there are plenty of answers to that question both on SA and teh intertubes. Just search.
If you wish to redirect all request on tomcat on default port you have to stop the IIS and use port 80 for your tomcat application or make the changes in IIS to redirect it.

Unicorn multiple machines setup [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have a good experience with Unicorn configuration with conjunction of Nginx, it works really well after optimizations and tuning procedures. But now I have got a question what is the best way to spread the load across multiple machines with Unicorns.
The question is you have 3 machines (Nginx load balancer, 2 APP servers with Unicorns), how do you manage load balancing of Unicorns with serving static assets.
Do you now any drawbacks with connection to Unicorn over TCP (timeouts, connection lost), is there any other way to upstream socket connection over the network (maybe port forwarding over SSH)? Unicorn designed to be stateless, but how do you manage the edge cases?
I don't want to serve static from balancer node, so would it be ok to setup Nginx on each of APP server and setup dumb Nginx balancer in front of them?
P.S. My current configuration is well-tested and can be found on Github, but the setup with Nginx+Unicorn on the same machine that already became a bottleneck.
UPDATE: Development is rigidly depends on the specific server configuration. Bottlenecks are going to happen not just because of developer's decisions, but also with the environment where he run it. Stackoverlow is full with highly marked Q&A related to the hard-to-know details about specific configuration. Alex who answered below works with Github I'm really appreciate to have a reply by such qualified person!
Don't access the Unicorns over TCP/network.
Your setup seems just fine, you can simply add a load-balancer in front of the APP servers, but I would suggest Keepalived (LVS ftw) as load-balancer instead of Nginx.
You can have them balance connections to the APP servers running Nginx+Unicorns over sockets.

SSH smoke & mirrors [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
Situation:
I've been given SSH access to a server running LAMP (Redhat) and the brief is to migrate files and database from current live server to this new development server for testing.
Further this SSH access is contained within a Protected Workspace, so basically I have to access this companies internal network and then I can access the server there through SSH.
Issue:
SSH - WTF?? :- In the murky world of media agency smoke and mirrors alas I'm not allowed to admit weakness and it appears that I won't have access to my familiar tools (filezilla + sequelpro)
I managed to logon to the server yesterday with Putty though have no idea how to achieve the mission:
Create a database
Import data to that database
Upload files
Set permission on files and folders
At what address will I be able to view the website?
Is there a kind soul out there who can point me in the right direction?
Thanks.
What's the problem with FileZilla? If its available on the server - run it, SSH has nothing to do with that. You'll probably want to have X server running on your computer though, and set up port forwarding in Putty to allow applications running through SSH to connect to it.
SSH is what it is: secured shell connection. Once you gained access through SSH you can do everything you could do using local console.

Resources