Mismatch In Time Between The Server And Apps
Jun 16, 2009
Thought of sharing this with all.
Issue:
Php function was returning wrong time. There was a difference of 1 hour between the server time and the php time. Due to this ,most of the functions on the site were not working properly.
Fix :
For checking the php time, put the following code in a file, say time.php
Code:
<?php
$time = time();
$result = date(”Y-m-d (D) H:i:s”,$time);
echo “Current date and local time on server = $result “;
?>
Execute the php script.
Code:
[root@localhost ~]# php -a time.php
Interactive mode enabled
Current date and local time on server = 2017-01-30 (Mon) 18:04:25
To get the server time , issue the following command :
Code:
[root@localhost ~]# date
Mon Jan 30 17:04:25 IST 2017
You can see the difference of one hour between the server time and the php time.
For fixing this, you need to install the PECL timezonedb module.
Code:
[root@localhost ~]# pecl install timezonedb
At the end , you might see the following message :
==========================
Build process completed successfully
Installing ‘/usr/local/lib/php/extensions/no-debug-non-zts-20060613/timezonedb.s o’
install ok: channel://pecl.php.net/timezonedb-2009.6
configuration option “php_ini” is not set to php.ini location
You should add “extension=timezonedb.so” to php.ini
==========================
So , add the line ” extension=timezonedb.so” to the php.ini file and restart apache.
There shouldn’t be any mismatch in time now.
View 1 Replies
ADVERTISEMENT
Nov 11, 2008
This is a rare issue i have on a RHEL 5.2 + cPanel server.
Server time is:
Tue Nov 11 17:02:51 CST 2008
Squirrelmail time show:
Code:
Last Refresh:
Tue, 5:02 pm
So, that is correct too..
But email arrives with -4 hours time, example:
webmaster@xxx.com 1:03 pm testing email
I already rebooted httpd, exim, and imap server, and the server itself too.. and problem stills.
View 11 Replies
View Related
Sep 25, 2008
I can't get access to a certain site. I always get the page with:
network time out - server at *** takes to long to respons. More people have noticed this and apparently it only happens to people with certain specific providers. And not all the time. Some times they DO get access eventy to they belong to the same ISP. So I guess an ISP isn't blocking access to it otherwise it would be permenantly/The site administrator insists that certain ISP's are blocking his site. He's hosting it on his own server. The domain belongs is registered at namecheap.com.
If an ISP is blocking this site (if that's possible?), that would lead to that 'network timeout' page wouldn't it?
What is the most likely reason for getting a timeout page anyway?
View 7 Replies
View Related
Dec 11, 2008
I'm having trouble getting an SSL certificate setup on a domain through WHM. I was originally getting a "Modulus mismatch, key file does not match certificate." error. I contacted RapidSSL and they had me generate a new CSR for the domain and forwarded a new cert. I'm still getting the same error, which makes me think it's a server-side issue.
I have checked and re-checked the cert text to make sure I'm not putting in any extra whitespaces or anything. I know the cert must be somewhat valid because when I put it into WHM and click outside the cert box it automatically pulls up what account it is for (domain, username, ip).
Does anyone know what would cause this?
View 4 Replies
View Related
Jun 25, 2008
If I have set up google apps for domain, do I need any MTA/SMTP server running on my server?
View 3 Replies
View Related
May 25, 2009
I am getting problem in cPanel installation, i tried 5-6 times but no success.
please find the log of the cpanel installation
...3....2....1..Fetching http://httpupdate.cpanel.net/cpanelsync/RELEASE/cpanel/ base/backend/webdisk.vbs (0)....@208.109.109.239......connected......receiving.. .100%......Done
md5sum mismatch (actual: cbd901252be59b37d33ffbd5440c888a) (expected: d0f0b90167 9da0932c023931f38ccecb)....
View 4 Replies
View Related
Apr 7, 2009
Trying to restore db for my friend, was able to back up db via ssh using the username and pwd, but while restoring db in a new host get : Password mismatch error,
View 0 Replies
View Related
Jun 26, 2007
I have just bought a switch Cisco 3750. However, when I plugged in the uplink. The link is set to half-duplex only (auto-negoiation).
Below is the error in the "Diagnostic Log" of the log:
03:54:52: %CDP-4-DUPLEX_MISMATCH: duplex mismatch discovered on FastEthernet1/0/18 (not full duplex), with sw6.hkg3.asianetcom.net GigabitEthernet0/21 (full duplex).
I have tried to set the port to "Full" in Cisco. But, the link drops immediately. Could anyone tell me how to fix that?
View 2 Replies
View Related
Jun 28, 2008
If I am using Google Apps for Domain, how can I send mail from my physical server (like from scripts)?
View 6 Replies
View Related
Feb 6, 2013
The server is going down from time to time, every 12 days or so the site hosted there is no longer accesible, everything starts with the site slowing don and down and then is not longer reachable, what we do is to request a power cycle, and with this we start all over again till next power cycle, so on so on, of course, here are my server details and more info on this:
- MySQL - 5.1.41-3ubuntu12.10
- Apache - 2.2.14-5ubuntu8.4
- PHP - 5.3.2-1ubuntu4.9
- operating system: Ubuntu Server 10.04 LTS
After some time emailing the support guys to barely check about what's going on, we received an email with a few things:
1.- found a few errors that likely would cause issues with Apache. The first error is:
[Mon Feb 04 05:03:10 2013] [error] mod_fcgid: fcgid process manager died, restarting the server and the next error is:
[Mon Feb 04 14:32:34 2013] [error] server reached MaxClients setting, consider raising the MaxClients setting ...
Both these errors seem to indicate that you have a process that is running out of control on your server. We were unable to determine what script on your site is running caused your connections to be maxed out however it does appear that before these errors were generated there was a WordPress plugin referenced in your access logs...
2.- Additionally during our review we did find that your error log for mercadodedinerousa.com is 45 GB's which is excessively large and can cause problems when Apache is trying to write a such a large file.
3.- The majority of the errors being logged are:
[Wed Feb 06 12:12:31 2013] [error] [client 200.76.90.5] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: /var/www/vhosts/mercadodedinerousa.com/httpdocs/index.pl, referer: [URL]
View 6 Replies
View Related
May 3, 2008
I'm having a bit of a problem with my SSL certificate and can't seem to work out how to get around it.
Trying to install a RapidSSL certificate to one of my websites but for some reason when i enter the certificate into cPanel it says:
modulus mismatch, key file does not match certificate. Please use the correct key file ..
View 3 Replies
View Related
Jul 10, 2008
Scenario: I have a website, www.site.com, hosted on an ensim 4 box. The MX records for that zone point to google apps for mail services. Some of the alerting tools my client use are too stupid and don't support SSL or TLS, so they don't work with the pop/smtp services google apps uses.
Can I setup this ensim box to utilize it's smtp server to send mail as user@site.com even though the mail is hosted by google apps?
I guess it's kinda like e-mail spoofing.
View 2 Replies
View Related
Apr 17, 2014
I want to use Gmail to host my email. I have already confirmed my domain and now I can successfully send emails via my domain.
However in order to receive emails I need to add/update the MX records on my server. I did that (I think) but now, 24h later, the records don't seem to be updated yet.
For instance intodns.com still shows that there is only one MX record: [URL] ....
This is my setup where you can clearly see the MX records required by Google:
I changed the TTL to some minutes but still the changes don't seem to be propagated.
The screenshots are taken from "Website & Domains" -> my domain -> DNS - that should be the right thing to change, correct?
View 1 Replies
View Related
Jan 6, 2008
I got report from webceo that I have some issues. May someone help me fix this?
DNS Lookup: 0.22 sec
Connect time: 0.33 sec
Host ping: 0.10 sec
That mean too slow with the other sites!
View 4 Replies
View Related
Mar 27, 2009
I have big problem, In my HyperVM i've change time to EUROPA/Sarajevo but in WHM still going 24 hours in forward. Please help me to resolve this. This is very important...
View 5 Replies
View Related
May 25, 2009
i have 1 decent server hosted by netriver, managed by PSM, for the past 3 weeks, my server down every night at the same time, during the day the load was really low ( below 1 ) and suddenly just before 3 oclock in the morning it goes up upto 2000 and the system crash, and need to reboot, then it will back to normal again, PSM doesnt know what causing it and just advised me to install PRM ( which i tried before and really give me headache ), what you guys think causing it ?
View 6 Replies
View Related
Dec 22, 2008
with the ssh command to change my server time from Virginia, USA to the Pacific Northwest where I live.
View 5 Replies
View Related
Apr 9, 2008
how can i change the server's time?
lets say the current time is with L.A and i want it to change to Tehran-IRAN.
View 9 Replies
View Related
Jul 20, 2008
After being with KnownHost for a while, I decided to make the jump to a real Dedicated Server. KnownHost does offer a Hybrid Server -- but it isn't a real Dedicated Server. So I gave up my Hybrid at KH to experience the real thing.
After much research, I selected ManageMyBox (MMB)-- their current special is awesome with a managed Dual Core AMD with lots of disk space and generous bandwidth. My only concern about MMB was some of the discussion threads about their support, but if you read long enough, you will find the same support issues at all hosting companies.
I just wanted to let you guys know that so far in day two with MMB, I'm ecstatic to report that my server was set up correctly from the very beginning in less than the 24-48 hours they advertise (mine was less than 24 , and I have alrerady opened a support ticket to get another software installed -- and within 30 minutes, the software was installed and the ticket closed. This all happened tonight -- a Saturday night.
I'm not getting paid to post this -- but I do believe in giving credit where credit is due. I will report followups if things do take a turn for the worse, but so far, its not just good -- it's GREAT!
View 0 Replies
View Related
Jul 30, 2008
Week ago I decided to rent another dedicated box , install CentOS 5 64Bit and use LiteSpeed as a web server. What seemed to be trivial at start became nightmare later.
I was unable to compile PHP 5 with --with-litespeed and --with-curl directives. If I removed one of them it was ok but together it didn't work.
Tried to search forums but nothing helped, so I decided to go back to Centos 5 32bit and try there. It compiled OK.
So I'm in trouble now. I wanted to have server with 64bit OS + LiteSpeed because of its speed, system resources consumption and good DOS protection.
I asked several questions about advantages of 64bit over 32bit OS and the most important thing was how much issues can I expect on 64bit OS (libraries availability). Almost every reply said that it's without issues to go with 64bit OS. My experiences say it's not as easy as I expected.
I didn't find any good protection against DOS for Apache so far, mod_evasive doesn't work as I expected. What do you recommend ? Should I stay with apache on Centos 64bit + apache with everything installed via yum (should work OK) or go with CentOS 5 32bit + LiteSpeed there ? LiteSpeed I'm talking about is Enterprise edition.
View 0 Replies
View Related
Apr 12, 2008
i have a reseller package with a small company for like almost a year but now is full so decide to get a 2 servers from The Planet and now i all ready have 2 servers one is for sell hosting and my other is for install a script like youtube for a site videos .
Ok now im new with servers and i need to setup my domain with the server now can you guys tell me step by step how i can get it work because i all ready try to do it and don't work im very frustrate
First i get the domain from godaddy now lets work with this example domain [ mydomain.com ] how i can add this domain to setup my servers
i have 2 servers
server1 this is for star selling hosting
server2 this is for my video script
Now how i can setup this 2 server with my domain and the dns step by step and this things so i can star selling hosting
View 4 Replies
View Related
Apr 27, 2008
In WHM I'm trying to sync the server time with the time server. It displays the new time but it doesn't actually apply the new time to the server.
Also via ssh when I run
rdate -s rdate.cpanel.net
it says
rdate: rdate: could not set system time: Operation not permitted
I'm on a virtuozzo VPS.
View 3 Replies
View Related
Nov 26, 2007
I have to reboot this server each day. It seems to crash (or freeze if you call it) around 11:55 pm server time (central US). How do I trace the cause of this? I installed CSF / LFD in replacement of APF/BFD.
This is a centos 3.9 / cpanel 11 box.
crontab -e shows nothing out of the default ordinary
/var/log/messages shows this
Nov 23 19:14:00 server sshd(pam_unix)[29523]: authentication failure; logname= uid=0 euid=0 tty=NODEVssh ruser= rhost=a2.f5.5646.static.theplanet.com
Nov 23 19:14:02 server sshd(pam_unix)[29533]: authentication failure; logname= uid=0 euid=0 tty=NODEVssh ruser= rhost=a2.f5.5646.static.theplanet.com user=gopher
Nov 23 19:14:02 server sshd(pam_unix)[29541]: authentication failure; logname= uid=0 euid=0 tty=NODEVssh ruser= rhost=a2.f5.5646.static.theplanet.com user=gopher
Nov 23 19:14:02 server sshd(pam_unix)[29553]: authentication failure; logname= uid=0 euid=0 tty=NODEVssh ruser= rhost=a2.f5.5646.static.theplanet.com user=gopher
Nov 23 19:14:02 server sshd(pam_unix)[29570]: check pass; user unknown
Nov 23 19:14:02 server sshd(pam_unix)[29570]: authentication failure; logname= uid=0 euid=0 tty=NODEVssh ruser= rhost=a2.f5.5646.static.theplanet.com
Nov 23 19:14:05 server sshd(pam_unix)[29580]: check pass; user unknown
Nov 23 19:14:05 server sshd(pam_unix)[29580]: authentication failure; logname= uid=0 euid=0 tty=NODEVssh ruser= rhost=a2.f5.5646.static.theplanet.com
Nov 23 19:14:08 server sshd(pam_unix)[29584]: check pass; user unknown
Nov 23 19:14:08 server sshd(pam_unix)[29584]: authentication failure; logname= uid=0 euid=0 tty=NODEVssh ruser= rhost=a2.f5.5646.static.theplanet.com
Nov 23 19:14:11 server sshd(pam_unix)[29588]: check pass; user unknown
Nov 23 19:14:11 server sshd(pam_unix)[29588]: authentication failure; logname= uid=0 euid=0 tty=NODEVssh ruser= rhost=a2.f5.5646.static.theplanet.com
Nov 23 19:14:13 server sshd(pam_unix)[29592]: check pass; user unknown
Nov 23 19:14:13 server sshd(pam_unix)[29592]: authentication failure; logname= uid=0 euid=0 tty=NODEVssh ruser= rhost=a2.f5.5646.static.theplanet.com
Nov 23 19:14:16 server sshd(pam_unix)[29596]: check pass; user unknown
Nov 23 19:14:16 server sshd(pam_unix)[29596]: authentication failure; logname= uid=0 euid=0 tty=NODEVssh ruser= rhost=a2.f5.5646.static.theplanet.com
Nov 23 19:14:19 server sshd(pam_unix)[29600]: check pass; user unknown
Nov 23 19:14:19 server sshd(pam_unix)[29600]: authentication failure; logname= uid=0 euid=0 tty=NODEVssh ruser= rhost=a2.f5.5646.static.theplanet.com
Nov 23 19:14:22 server sshd(pam_unix)[29605]: check pass; user unknown
Nov 23 19:14:22 server sshd(pam_unix)[29605]: authentication failure; logname= uid=0 euid=0 tty=NODEVssh ruser= rhost=a2.f5.5646.static.theplanet.com
Nov 23 19:14:25 server sshd(pam_unix)[29614]: check pass; user unknown
Nov 23 19:14:25 server sshd(pam_unix)[29614]: authentication failure; logname= uid=0 euid=0 tty=NODEVssh ruser= rhost=a2.f5.5646.static.theplanet.com
Nov 23 19:14:27 server sshd(pam_unix)[29618]: check pass; user unknown
Nov 23 19:14:27 server sshd(pam_unix)[29618]: authentication failure; logname= uid=0 euid=0 tty=NODEVssh ruser= rhost=a2.f5.5646.static.theplanet.com
Nov 23 19:14:30 server sshd(pam_unix)[29622]: authentication failure; logname= uid=0 euid=0 tty=NODEVssh ruser= rhost=a2.f5.5646.static.theplanet.com user=mailnull
Nov 23 19:14:33 server sshd(pam_unix)[29631]: authentication failure; logname= uid=0 euid=0 tty=NODEVssh ruser= rhost=a2.f5.5646.static.theplanet.com user=nfsnobody
Nov 23 19:14:36 server sshd(pam_unix)[29635]: authentication failure; logname= uid=0 euid=0 tty=NODEVssh ruser= rhost=a2.f5.5646.static.theplanet.com user=rpcuser
Nov 23 19:14:38 server sshd(pam_unix)[29639]: authentication failure; logname= uid=0 euid=0 tty=NODEVssh ruser= rhost=a2.f5.5646.static.theplanet.com user=rpc
Nov 23 19:14:41 server sshd(pam_unix)[29643]: authentication failure; logname= uid=0 euid=0 tty=NODEVssh ruser= rhost=a2.f5.5646.static.theplanet.com user=gopher
View 3 Replies
View Related
Apr 14, 2007
How can we know that how long it takes our server to respond, in terms of Microseconds. Is it take long time while processing an Ms Access database or SQL Server, Sending flash movies to client.
For example, I can accomplish a task while reading data from server database , also I can accomplish it using an image or flash movie.
Which way should be efficient for my visitors, I am using a paid hosting plan.
Also I have another question.
How could I know that a web hosting provider company's server is a fast machine than other company. I have options like "WebHost Company1" & "WebHost Company2"
I host the same website on both servers, while I request some page in a client machine, How could I measure the efficency & speed of the server, I am sure both servers will not send content to client with same speed.
due to any reasons, may be 1 server has more traffic, has slow hardware, has longer route.
Also which technology is faster, ASP, ASP.Net, PHP, coldfusion. Is there some way to measure these facts about a webserver.
In these cases, how could I choose best server. How to made decession about that.
View 6 Replies
View Related
Aug 9, 2007
I have a dedicated server specs: AMD 3500+ 64 Bit CPU, 1 GB Ram, 160 GB Sata Drive. For 1 month, CPU load average reaches 40-50 value. This happens about 5-6 times in a day. When I stop httpd service for 30 seconds everything goes normal. I think this is not a DoS attack because it comes systematic, I dont believe no one makes this regularly except bots.
Maybe its a system service or a cronjob but it stops when I turn off httpd service?
How can I be sure about what's making this regularly load?
I also did set up a script which mail me when load average of system goes crazy and restart httpd service. But instant restart is not working to stop load increase.
View 12 Replies
View Related
Jan 18, 2008
What can be disabled (Mail related) if the only domains on the server use google apps "gmail" for mail? I only really need roots mail. Anyone tried this yet, I figured I asked before I use trial and error.
antirelayd
exim
imap
pop
View 0 Replies
View Related
Sep 30, 2009
We've always used open source linux servers up until now. For a variety of reasons we're contemplating adding one windows box.
Is there much practical difference for the average small business between 2003 and 2008?
What's the difference between "authenticated" and "unauthenticated" windows servers?
How is most administration and regular tasks done? I'm used to sshing into my linux servers-- I'm assuming for windows this is gui based? What's the standard software used for this?
View 2 Replies
View Related
Mar 30, 2009
Is there anyone here who is with server.lu dedicated servers.
I have submitted some ticket via my.server.lu - and have not got any respons since 26.03.2009 - 20.59.
Is that normal?
Would then like to say, that I in no way, is dissatisfied with the services provided. It is only the response time I ask for.
View 14 Replies
View Related
Jun 9, 2009
I have a dedicated server that I am renting that appears to randomly respond very slowly for some reason (pings are between 90-4000ms with about 75% packet loss).
This has been happening lately (about once a week for the past 4 weeks) and I thought I had originally found the cause of the problem but it appears I haven't.
Originally, when this problem was happening we were getting an abnormally high about of traffic but a reboot always fixed the issue. I've checked every where I can think of but I cannot find anything out of the ordinary.
ight now we're averaging less than 2Mbps in traffic, the CPU load is less than 0.75, the memory usage is at 55% with no swap being used, Apache connections are normal, no active SSH, FTP, or mail connections, I've restarted all services which had no impact, I've checked the access and error logs but can't see anything out of the ordinary.
I have a ticket open with the data center but I'm trying to figure this out on my own to fix whatever is causing this so I can move my data over to a new server we just got setup over the weekend in a local data center.
View 7 Replies
View Related