Tomcat Not Connecting Properly To The Database
Mar 25, 2008I desperately need someone to help with a tomcat installation on a dedicated server. I have tomcat working properly but the app is not connecting properly to the database.
View 1 RepliesI desperately need someone to help with a tomcat installation on a dedicated server. I have tomcat working properly but the app is not connecting properly to the database.
View 1 RepliesOn my server, users can connect to any database as long as they have the database user and password. This makes it easier to hack any database on the server.
What I want to do is to make the users can only connect to their own databases and not other's.
I tried changing the localhost ip address but it didn't work ( I assume I didn't do it the right way)
I've now VPS with CentOS and on Hypervm.
Can I connect to it using VPN or other client application as Desktop? or only Shell?
and if I want to setup on it ftp client like FileZella to get my files from the previous host directly what should I do?
I know the wget command but I think it for a single file and of course can't get php files so I think in ftp client application.
I'm having a problem connecting to SSH/Shell on my server. I get the Login Prompt, but when i enter the User/Pass i just get "SSH-2.0-OpenSSH_3.6.1p2", everything under that is blank.
I've restarted the SSH Server and made sure the account i was using was set to use Normal Shell (not jailed). What could be the problem?
I've purchased a NL Master reseller (about to purchase one in the US) and then a small VPS to see what more I could do, after transferring my site over to the VPS from the NL server I thought I'd come up with the idea with selling master reseller accounts, (both from NL and US master reseller services) the reason I came up with is because the VPS isn't to large to really do anything but seems perfect to keep a database, payment portal, WHMCS, my site, and hopefully all of my client information. What i want to do is somehow connect all 3 together so that when i do create a new client in LxAdmin I can select witch server I want to create it on and what package/permissions and what not, all from the VPS.
Example: LxAdmin -> create client -> fills out form basically similar that to the one in WHM
Resellers/VPS run CentOS Linux
WHM: 11.24.2
cPanel: 11.24.4-R35075
CENTOS 5.2 i686 virtuozzo
So basic question, is all this possible ? this including domains/email/ftp/ect.
We are currently having a server with serverloft and as we are in the trial phase have just a few trial websites hosted on it. Now since today we have a curious issue on one of our website
It is not being accessible via a particular network of computers even though till yesterday this network of computers was able to connect to the website.
The website is working fine from all other computers and networks that we are trying to access it from. Now my question is how is this possible. The DNS is configured correctly as the website is being accessed by other networks and has been hosted on this server for quite some time
Also this same network of computers was able to access this website until a few hours ago No changes have been made to any IP firewall or any other server settings at our end.
When we run a tracert from this network it says Unable to resolve target system name
I dont know if the blame lies with the ISP as till yesterday this network was able to access everything fine
I got HYPERVM Dedicated Server, i have create a VPS on it with LxAdmin Panel
But i am not able to reach to the domain added on LxAdmin panel,
1) Name Servers are setup correctly at registrar
2) DNS have been setup properly
I can even ping
ping mydomain.com -t
And it leaves ping to my server IP
THE PROBLEM is Port 80 is closed in VPS
Here is screenshot from HYPERVM of VPS panel where is shows port 80 is down
[url]
I even tried this command -
telnet mydomain.com 80
Connecting To mydomain.com...Could not open connection to the host, on
port 80: Connect failed
My Server Hosting provider is not willing to help me in this regards.
how can i open PORT 80?
I have a hosting company and maybe for my level this is a stupid question.
Well i have a server that have full up to 70%.
I order a new server,but how i will connect it with the first server which my company domain is there?
For example,clients which will go to server 2,and change the dns of their domains to ns1.mycompany.com and ns2.mycompany.com(which host in the 1 server)how will running up?
what i must do?
May i have to register ns3.mycompany.com and ns4.mycompany.com with the ips of the new server?
i have a windows shared hosting with Go-daddy, created the database and all is fine, but not sure about the DB name.
the name of the Database Host? is it local host?
shall i add any suffix to the DB name?
When traffic to my website gets heavy, connecting to the server really slows down. But, when connected, the site loads very fast and smooth. So why does it take like 4-12 seconds to connect to my server when traffic is heavy, and once connected it runs fast and smooth? I run Apache 2.2.3 on Debian 4. HostnameLookups is set to OFF. I have turned off all of the modules that I don't need, too. It also has MySQL 5.0 installed and is being used.
View 10 Replies View RelatedI got my backup server yesterday. It's connected to the second NIC on my main server, where I have all of my domains/accounts.
The server provider gave me a password and a ip address to the backup server, 192.168.x.x
I have tried to log in to the backup server with ssh and ftp from my main server.
Nothing happens, I can't connect.
Am I doing something wrong? I thought it just was to log in to my main server, and then ssh or ftp to the backup server.
I have two servers (one for apache and one for SQL) where both are in the same DC. I looked at the BW graph and saw that the SQL server has pulled approx 4TB BW on the internet the last 30 days.
Since both are in the same DC, it would be better to run it via the network since it has free lan traffic compared to wasting a lot of "internet BW".
I'm currently using sqlservername.domain.com in the SQL connection string, but when I tried with the IP, the php script stalls for 30 seconds and then reports: "Can't connect to MySQL server on 'hostname' (4)".
Could this be a iptables issue? I also tried to add the apache IP in the "Additional MySQL Access Hosts" from cPanel, but that didn't help much.
Servers:
Apache - 10.1.0.xxx
SQL - 10.1.1.xxx
If I'm not mistaken, if the subnet isn't set to 255.255.255.0, both servers should be within range.
i have a mysql databse on 1 server hosted by a company and i want to connect to that databse from a website hosted on another server by another company.
i have chnaged my php connect script from 'localhost' to the ip of the name server on port 3306, i know this isnt right..
how do i find the ip of my website and port of the db?
I need to block a specific IP:
93.6.224.242
It adds fine when I do:
iptables -A INPUT -s 93.6.224.242 -j DROP
However, the IP is still accessing files and pages on the site according to Apache:
When I ban other IP's they are blocked from accessing anything on the server (e.g. it wouldn't even reach Apache level because of firewall), but this IP just isn't banning properly.
ERROR:
Error connecting to IMAP server: localhost.
111 : Connection refused
I keep getting this error message from Squirelmail when i try to login can someone help me out.
I have a dedicated server and a domain I bought from godaddy. The dedicated server currently runs from an IP. So if I were to visit 79.xxx.xxx.xxx/whm, I would be able to access WHM. However, how do I change the IP to go to a domain? So when I go to the domain xxxxx.com/whm I go to the server's whm, and so that I can use the domain to host my site.
View 13 Replies View RelatedI seem to be having problems every 20 accounts i create through clientexec work fine than i whole bunch dont i seem to be able to fix it by using a new hash key.
However it happened again at 44 accounts i dot have any idea what to do! i get a error log saying this.
If it helps all the signups are over 2 days.
Sorry, we could not create the account. The following error was
produced: The package was not found on the server.
Here is the list of plans found on the server:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
[url]
<html xmlns
<head>
<link rel
<meta http-equiv
<title>cPanel® 11</title>
</head>
<body>
<div id
<div id
</div>
<div id
<form action
<input type
<table width
<tr>
<td align
</tr>
<td>Username</td>
<td><input type
<tr class
<td>Password</td>
<td> </td>
</table>
</form>
<br />
</div>
© cPanel, Inc. 2006-2008
</body>
</html>
I have Mysql installed on my Home server with Java server, and I have php WEB site hosted with Let's say Godaddy or whatever. I need to connect this WEB to my MYSQL. How can i do that?
View 6 Replies View RelatedI'm facing some odd issues with 2 servers located in the same datacenter.
One server is the HTTP server, and every 5 minutes it works, then for 5 minutes Server One and Server Two (MySQL) hate each other and refuse to talk to each other. Not only can neither not connect to each others MySQL, but also neither can ping each other.
The odd thing is, Server Three can however connect to the Server Two MySQL with no problems during this period. It seems to be just the communication between Server One and Server Two that keeps getting halted.
I've tried "service iptables stop" to disable the firewall, and changing SELinux to disabled, but neither have fixed it.
Some accounts on cpanel were suspended then when reactivated the databases didnt connect for some time.
All sites apart from one came back up but one database was corrupted and had to be restored but now the site isnt connecting to it.
I have a problem connecting to my win2003 server from my work. The thing is that everything is turned off. I dont have administration rights. The remote connection in win xp doesnt work, telnet also dont work. Im behind proxy, all ports are closed. Is there any way, to install software on my server or smth else, so somehow i could connecti to my server remotely? I need to be able to connect to gui interface or maybe just be able to start programs, which crashed.
View 12 Replies View RelatedI am using SSL on my site but am having trouble in getting it to work correctly. I want to make it mandatory that the sections in <webaddress>/members and <webaddress>/admin are protected by SSL. I currently have the following in the httpd.conf file:
SSLEngine on
SSLCertificateFile /usr/local/home/pm42/finalcert.pem
SSLCertificateKeyFile /usr/local/home/pm42/privkey.pem
SSLCertificateChainFile /usr/local/home/pm42/finalcert.pem
but I dont know what to do next.
I installed VNC on my VPS using a guide I found here. I installed KDE. It all works but when I view the VPS through VNC on my windows PC the text on the screen appears to be squares as if its a non supported language.
[url]
I've uploaded a screenshot to better help you understand what I mean.
I set up my own SMTP server on IIS.
Most of the time it sends and recieves the email OK.
From time to time, the mails bounce. For example if I send to someone at Hanmail (major korean provider) then it always bounces. Similarly, sometimes people say they sent an email to the server and it bounced back to them.
I guess something is not set up right, maybe MX record or some other mysterious thing. How can I troubleshoot/solve this?
I MUST fix this so I will be back to check on this thread often,
As title suggests I'm looking to make sure my hosting is set up to respond with valid PTR information so my server generated emails aren't flagged as spam.
I have full SSH access to the machine at root level.
Running a CentOS machine but there are also other virtual hosts using a shared ip.
I have a slight problem with a cron job I have setup.
I wanted to save a copy of iptables every hour to a folder, so I created a script... here it is:
Code:
varDate=`date +%y%m%d`
varTime=`date +%H%M`
filename="IPtablesBackup-$varDate-$varTime"
iptables-save -c > /etc/IPtablesBackup/$filename
and called is Backup-Script.sh
Now if I just execute the script will in root ./Backup-Script.sh I get a new file with the correct filename and iptables info is saved ! Great ! So then I thought, how can I setup this automatically every hour.
Which leads me on to my problem. I inputted "crontab -e" added this line
Code:
59 * * * * /etc/IPtablesBackup/Backup-Script.sh
The problem is the script is run, I know because it creates a new file with the correct time and date, however the file is empty?
I have set Backup-Script.sh to 777 and owner and group are both root?
A client recently moved one of their domains to one&one (night mare I know) he then asked us to repoint the domain name to our servers using out name servers.
We have done this and it is not resolving to our server.
The problem is that the site is no longer showing and their emails are down.
I used a domain dossier and the DNS record looks like it should be changed but I'd like some confirmation on this.