VPS: Openvz, 512mb, 50gb hd, 10mbit shared located in Kansas.
Problem: After entering in my username / password I experience a 2-5 minute delay before the login is processed. I have tried logging in from 3 different ISP's (AT&T, Comcast, T-mobile via Blackberry), 1 webserver (ssh), and HyperVM's Java client. Each produces the same result.
Also, apps such as yum and traceroute produce the same long delays ranging from 2-5 minutes as though the vps locks up or the node has zero resources.
When I use the command center via HyperVM I receive the same long delays. Rebuilding the VPS does nothing. O/S has no affect.
Despite long discussions with the VPS staff they insist there are no problems on their end and that no one else is experiencing this problem. What gives?
I have a site that has a members section requiring members to log in with a username/password through .htaccess & .htpasswd file. Just wondering, is there a way I can record their logins and ip addresses using PHP scripts or .htaccess? I just want to keep track of the logins so I can see which login is being abused and keeping track of them.
We are being required to turn off all non-ssl logins to our server. I have turned on ssl redirection, but that only works when access by domain.
if a user types in the direct port number either http://domain.com:2086 or http://xxx.xxx.xxx.xxx:2086 they can still get access to the non-ssl login page.
I need to be able to disable all port access to non-ssl login pages for ports 2086,2082 and 2095.
My servers are running CSF+LFD and i have tried removing the ports from the configuration, but i still can gain access.
I have DenyHosts to ban an IP after 5 failed ssh logins, and send me an e-mail when it happens. Ordinarily I average around 3 banned hosts a week.
I've gotten ten today. Four of them happened with a couple minutes of each other.
I'm just wondering if this is widespread, as if something new was just unleashed? Or is it just dumb (un)luck? I'm not really concerned; every account has a strong password.
I'm merely curious about whether or not other people have seen a surge in brute-force attempts?
(This machine is just hosting a couple of my sites, which get almost no hits... It's not as if people are specifically targeting me. It's just them guessing "alice" and "bob" type usernames.)
I got an email from my server telling me "tty1" has logged into root. Can anyone tell me what that means? Is this some sort of hack? Usually it tells me which IP logged when someone logs in not "tty1".
For some reason on a box I have, it takes 25 seconds from the time I hit enter for a usernames password for it to login via SSH. I am running CentOS 4.4
Is there something I can check to see why it is taking so long and/or fix this?
I have six dedicated servers on a VPR. I use one of these as the Database server and the other five connects to that server to read the Database.
When I setup my scripts for the first time I used the external IP to connect to the DB server. Everything worked perfect for these weeks:
mysql_connect('174.xxx.xxx.xx', 'user', 'pass');
Since three days ago I finally received the internal IPs of my servers and now I use the internal IP of the DB server:
mysql_connect('10.0.0.1:3306', 'user', 'pass');
When I did this last change this my database started to collapse. Queries stuck on a bottleneck every 10 minutes. Here's an example:
40468 simon 10.0.0.7:47002 pkindigo_db Query 115 Locked update `captured` set hp_left = '79', status = 'normal', att1pp = '25', att2pp = '30', att3p 40523 simon 10.0.0.2:58080 pkindigo_db Query 115 Locked update `captured` set experience = '5120', level = '16', hp_left = '58', hp = '58', status = ... (tons of locked queries before) ...
As you may see table is locked since 115 seconds for a simple update... after some hours this ends on a "#1135 - Can't create a new thread (errno 13); if you are not out of available memory, you can consult the manual for a possible OS-dependent bug" and even some of my tables finally crashing.
I think that my Database stuck because of a DNS lookup delay. When I had this problem before using the external IPs, I added skip-name-resolve and the problem was fixed. But now with the internal IPs it seems that's not enough.
I host my site on webcity and have done for 6-7months. Most of the time, I publish my web and the changes appear virtually immediately.
Some weeks ago, the lag between publishing and appearing began to take hours. I advised webcity support and the next day back to normal.
Yesterday, it started again. I emailed webcity and their reposnse was - it's your cache. I rang webcity and again was advised - it's your cache (or something your ISP is doing).
I don't believe it is cache. I can refresh the page, close the browser, reboot the computer, clear all temp files (run CC Cleaner) - no difference.
I'm running Apache 2.4.4 Win32 on a Windows 2008 server. When trying to optimize a website I noticed a random reoccurring 2550ms delay in Time To First Byte. A file could have a TTFB of 200ms several times but suddenly it would get 2750ms. This could be a static file (image, html, js) or php. I've measured using ApacheBench (locally and remotely), webpagetest.org and bytecheck.com. After much trial and error I found the problem was with mod_rewrite. Disabling this and everything is fine.
I have setup a blank/new install with only basic config change (Listen, ServerRoot etc) to replicate result without anything else interfering. Following is the rewrite section I add to config.
Code: <IfModule mod_rewrite.c> RewriteEngine on RewriteRule (^/Pictures.*) /$1 [L] </IfModule>
After Apache has started I execute "ab http://my.example.com/Pictures/Thumbnails/tmb_400X400_FFFFFF_660.jpg" and always get the delay. If I execute again it's normal. If I wait at least 30 seconds I get the delay. Following is a section from error.log with trace8 logging.
Code: [Tue Mar 12 23:28:56.123519 2013] [rewrite:trace3] [pid 7624:tid 888] mod_rewrite.c(468): [client 69.x.y.90:36279] 69.x.y.90 - - [my.example.com/sid#42c748][rid#26df0d0/initial] applying pattern '(^/Pictures.*)' to uri '/Pictures/Thumbnails/tmb_400X400_FFFFFF_660.jpg'
[Code] ....
As you see from line 3 to line 4 the time skips 2550ms. When the TTFB is normal then the log is identical except time doesn't change from line 3 to line 4. If I delete the rewrite section in config then TTFB is always normal, no matter what.
When I testet on the live server the time for fully loaded increase from 3800-4000ms to 8500-10500ms when mod_rewrite is enabled. And that is about 30 requests (php+css+js+images). So the impact is significant.
What can this be? I'm having a hard time believing it's a bug. Isn't mod_rewrite used a lot? I'm running Ubuntu (linux) at home, I'm going to install Apache there and see if I get the same result.
I am using apache proxypass to proxy to 4 different ports (java/jsp applications) with the following configurations (for each):
<VirtualHost *:80> ProxyPreserveHost On ProxyRequests Off ServerName *****.org ProxyPass / http://*****.org:8080/ retry=0 ProxyPassReverse / http://*****.org:8080/ </VirtualHost>
Everything seems work fine until an awkward delay / connection timeout occurs. The web application hangs for about 5 to 15 seconds and starts working normally after that period. It's certainly not the application's issue because everything is fine when using IP address to access it.
When I enabled the debug log in apache, I found out that every time the server seems to hang, the following error appears in the apache error log and the number of apache child processes keep on increasing (ps aux | grep apache).
[Thu Apr 11 10:20:41 2013] [debug] proxy_util.c(1818): proxy: grabbed scoreboard slot 4 in child 13208 for worker proxy:reverse [Thu Apr 11 10:20:41 2013] [debug] proxy_util.c(1837): proxy: worker proxy:reverse already initialized [Thu Apr 11 10:20:41 2013] [debug] proxy_util.c(1934): proxy: initialized single connection worker 4 in child 13208 for (*) [Thu Apr 11 10:20:41 2013] [debug] proxy_util.c(1818): proxy: grabbed scoreboard slot 3 in child 13208 for worker http://*****.org:8080/ ..... Also, the access log (access.log) completely stops during that hang period.
This debug message keeps on repeating as long as Apache/web-application is not responding. The application starts to work normally after that duration and the number of apache child process decrease to the normal number.
Apache version : 2.2.16 (Debian) OS : Debian GNU/Linux 6.0 root@server:~# apache2 -V Server version: Apache/2.2.16 (Debian) Server built: Nov 30 2012 08:58:36
You contact a company for a quote, however this company has not replied in days, so you contact again and it takes them a few more days to finally respond; this is a pretty common scenario.
I emailed 3 companies 3 days ago. One replied within 6 hours with a quote, and the other two still have yet to respond, guess which company I am most likely to go with?
So do you get put off by a lack of a sales team / delays? To me its like they don't want my service.
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.
I want to shift my mail to Google Apps (standard version). Currently my DNS is pointed towards 1and1 dedicated servers (having problems with 1and1 mail services). Want to keep hosting with them but change the Email to Google apps.
The Registrar of the domain is Netfirms, Inc.
My current Settings for nameservers in Nefirms CP are: ns29.1and1.com ns30.1and1.com
Google Instructed me to verify first by creating a CNAME, which I did in Netfirms control panel.
'googlexxxxx.mydomain.com' Pointing to 'google.com'
DONE.
Google gave me the MX records to enter in the Netfirms panel.
ASPMX.L.GOOGLE.COM ALT1.ASPMX.L.GOOGLE.COM
DONE.
It's been more than 24 hours, neither MX updated not that CNAME lookup 'googlexxxxx.mydomain.com is propogating.
What I am supposed to do here? I am waiting here for last 24 hours. I think that I have to set up these settings with my registrar (Netfirms) rather than it has to do something with 1and1?
I'm using cpanel and google apps. I made mail in google apps mail@mydomain.com
I set up MX entries. When I sending mail from e.g. yahoo or hotmail to mail@mydomain.com I can receive it. But when I'm sending mail from php contact skript which is located at my site I cannot receive mail, like it doesn't exist. why?
attending to clients and their email inbox limits is occuring more frequently i'd prefer to minimize this chore, especially now i have some clients using IMAP it means the server fills up rapidly.
google apps -just for handling email- seems attractive (6GB free) compared to increasing the monthly fee for extra server space which seems to be kind of expensive at my webhost.
i would actually prefer to keep using the Webmail interfaces offered on the servers but i dont think my clients will change their bad habits of filling up their inbox, and lets not forget the increasing levels of SPAM.
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.
I currently got signed up with Hawkhost and I love the interface so far. I bought all my domain names through Name Cheap. I wanted to see what you guys thought would be the best set up...
I would like to use Google Apps to host my email and not hawkhost.
I have two options: I can have hawkhost host my DNS or NameCheap. Do you guys think it would be better to let Namecheap host my DNS and just point the www record to my website?
Just curious what your guys were on letting the webhost host the DNS and if there were any cons with that.
I'm sure hawkhost is reliable, but I just don't like putting all my eggs in one basket and would prefer to have Google host my email...