SuiteCRM - Multiple server setup - mysql

Looking to confirm the last bit regarding DMZ.
Servers as follows:
- 1 x Ubuntu Server 16.02 - Internal MYSQL SERVER
- 1 X Ubuntu Server 16.02 - Internal Only Apache2 Webserver,
- 1 x Ubuntu Server 16.02 - Sat in DMZ for access via vpn/mobile clients.
We have 2 instances of Suite running, a live system and a development system.
each with its own MYSQL DB.
The MYSQL Server is currently internal but with various security lock downs in place for specific access only from both webservers only.
SuiteCRM Internally all fine but I am concerned then when I come to do the external Web Server that the URL for Suite is embedded into the mysql db and that I will have problems.

As mentioned above. This setup is now all working as I described above.
I had 2 issues, 1 was an incorrect Apache site/host config and the second was file permissions from the working copied website to the DMZ machine.
After I updated permissions as per the SuiteCRM site, all worked fine.

Related

Wordpress: MySQL Database and UNC Share

I am about to install WordPress on a Windows 2008 server - two load balanced servers with a UNC share. Web browsing using the server is out of the question (IT security policy) so using the Microsoft Web Platform Installer is also a non starter. I will therefore have to install it manually.
So far I have installed PHP (routine), but I now need to install MySQL and create a database. However, with these being two separate servers, what effect is this going to have on the database - will this require a database on each server? Will they remain in sync? Can the database itself be put in the UNC share?
In short, can anyone advise me whether this is possible and how to go about it?
Thanks
Install MySQL and create the database on the server which is supposed to have it - preferably a 3rd one or on the UNC. In the MySQL config, enable network connections via my.cnf, specifically the bind-address.
Both the PHP boxes should connect to that one MySQL db (using it's LAN ip address). (And yes, they would remain in sync since they connect to the same db.)

Web server and MySQL server on different machines, causing latency on websites

I am currently running a virtualized environment for my web and db server. When I access the web server or the MySQL server individually, they are both fast. I also have websites running on the web server that do not require the db server and those all load quickly. However, when I access my hosted website that requires the web server to call from the db server, there is about a 5-7 second latency for every page load. This has been confirmed with both a very simple site and with a Word Press setup as well. Here is the config:
Web server - CentOS 6.5, Apache 2.2.15
DB server - CentOS 6.5, MySQL 5.1.73
My question is, are the servers continuously authenticating with one another (and thus causing latency) on every single db call? If that is the case, does anyone know how to permanently authenticate between the two?
I might be way off on this assumption and authentication could have nothing to do with it. I am completely open to any and all ideas at this point. Thank you very much.
V/R,
Tony
To me it seems to be a network issue.
and obviously the db-server will need authentication every time there is a hit.

Load balancing on wordpress - 2 LAP web servers 1 Mysql DB - How?

Here is the problem: my client wants to setup a load-balancing wordpress server to handle the increasing number of visitors.
2 Web servers will have setting below:
Load balancer x 1
Server #1: Linux, Apache, PHP 5, Wordpress 3.8.1
Server #2: Linux, Apache, PHP 5, Wordpress 3.8.1
Server #3: Linux, MySQL
Load balancer will direct traffic to web server #1, and #2, and #1 and #2 will connect to #3 MySQL to get information.
Notes:
It is a must, so no need to consider another "Wordpress performance enhancement" solution.
I understand that it will also has single point of failure, but it is fine. My client just wants that.
My questions:
I will change the wp-config.php file to point to #3 database. Is it ok? Are there any potential problem?
I will also mount the /upload directory to share by two web servers, both writable. Is it fine?
Session problem: how to share session between wordpress? Somewhere on the web I read that the /tmp folder should be shared also, is it true? If I want to save session to database, will it also work?
Apart from the questions above, did I miss other steps that are critical to success? What should I pay attention to also?
Thanks in advance for your help. All other result on the web are just using rackspace, AWS and other service, which is not what I need.
Here is my notes on how to setup my own Load Balancing servers without other cloud services.
Wordpress Load balancing: 2 web servers 1 MySQL without any Cloud services

jboss as 7 - running multiple instances in the same linux server - standalone vs domain

I downloaded the jboss tar file.
Copied into my test server.
Did untar and installed it at $HOME/jboss/
Now, I need to have three instances running at the same time - Dev, QA, UAT - on a SINGLE server.
Is the Domain mode for this situation?
My conclusion was that it is not. That Domain mode is to manage JVMs across multiple servers.
For example, if I wanted QA to be in server1 and server2.
Is that correct?
However, my need is NOT to manage JBOSS instances across multiple servers.
Given that should I be using standalone mode?
If so, how would I run three instances of JBOSS (Dev, QA and UAT) concurrently.
I tried the instructions given here (Approach 2) : https://community.jboss.org/wiki/MultipleInstancesOfJBossAS7OnTheSameMachine
But I keep getting the errors like this:
MSC00001: Failed to start service jboss.serverManagement.controller.management.http: org.jboss.msc.service.StartException in service jboss.serverManagement.controller.management.http: Address already in use /127.0.0.1:9990
Is there any simple tutorial that I can follow.
I see this questions asked multiple times, but none of them seem to have a satisfactory answer.... that I find helpful. Is this a black art that lowly developers should not attempt in their home alone?
SGB
To get multiple jboss instances running on linux, in JBOSS_HOME/standalone/configuration/standalone.xml, I changed a single line from :
<socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
to the following...
<socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:100}">
NOTE:
The reason I was having problem was because I had setup my JBOSS_HOME in my .bash_profile as per the jboss installation instructions. I needed to remove this so that both instances would not use the same JBOSS_HOME.
Slight Change in above comment.
bash$ ./standalone.sh -Djboss.socket.binding.port-offset=10000
This will start the server port as 18080.
default port is 8080 + 10000 will give 18080.
It's easier to add "-Djboss.socket.binding.port-offset=1000" while starting standalone.sh, e.g.:
./standalone.sh -Djboss.socket.binding.port-offset=1000
This will start jboss on ports +1000 to the standard ones (so 8080 will become 18080). No need to change xml files.
If you are using Jboss on Intellij, you would like to add the offset into server configuration, just go to Run --> Edit configuration:

SQL Server mirroring connection doesnt work

I have 2 servers srv-erp1 and srv-erp3. I made them mirror on each other. All setup is done by lots of tutorials and examples.
But when I call
ALTER DATABASE MIRROR_TEST SET PARTNER = 'TCP://srv-erp3:5022'
It`s response is:
The server network address "TCP://srv-erp3:5022" can not be reached or
does not exist. Check the network address name and that the ports for
the local and remote endpoints are operational.
I go to cmd on srv-erp3 and use netstat -an... this port is listening.
I go to cmd on srv-erp1 and use telnet srv-erp3 5022...and its ok to connect.
All firewalls are turned off. The only difference in config of srvrs is that srv-erp1 is on Windows Server 2003 R2 x64, and srv-erp3 is on Windows 2008 R2 x64
What can be the reason of this problem?
Regards, Dmitry.
I have such problem, the solution was using certificates. My problem appeared because my servers were not in one domain.