HTTPD That Accesses Memcache Without A CGI
Jul 21, 2009
Is it possible to setup say NGINX or Lighttpd and setup a script that accesses a memcache memory space with a key and then returns a 1 or a 0.
So
1. AJAX call gets sent to server with a POST header containing a SHA1 Hash Key and a Session Key.
2. NGINX Server routes the request to a bash or a compiled C file with the arguments argv[0] = HASH.
3. The script file then accesses the memory space and finds the result and then returns, either the result or a 0.
4. The NGINX server sends the result to a user with MINIMAL http headers.
Now anything involving the C or Bash file is up to me and that's fine, but I'm wondering how to setup the HTTPD program to perform the operation.
Do I need to setup a CGI?
If so, then what's the fastest/lightest interpreted language for this?
Should I even setup a CGI or should I just install Apache with Perl support or something?
View 0 Replies
ADVERTISEMENT
Jul 24, 2009
I'm wondering what kind of web server load that people are dealing with when it comes to their web (Apache, IIS, Lighttpd, nginx, etc.) server.
What information I'm curious about: How many raw accesses your web server is dealing with in a given month, and what kind of hardware you have to serve those accesses?
If you have multiple servers, pick the one that has the most accesses in a month.
My results:
My server gets ~2,500,000 accesses a month (about 1 per second) on Apache. The server is a AMD Athlon 64 3800+, 1GB RAM. Hardware handles those requests with no problems.
View 0 Replies
View Related
Apr 10, 2007
a log file analysis program that can tell me the exact time an ip address accesses my server and how many times that particular ip address hits the server.
Does anybody know of a package that supports this, or is it even possible?
View 3 Replies
View Related
Mar 12, 2008
Is there some way to trigger a script or send an email if someone from a specified IP or IP range (e.g. 125.125.125.%) accesses an account, or any URL on the server? Perhaps by placing something within .htaccess or httpd.conf or something of that nature.
For instance, an email "$IP is visiting the URI $REQUEST_URI" would be sent, or a PHP script that sends the email would be triggered (though in that case, I'd need some way to tell the script the IP and URI).
And in a related matter, is there any way (perhaps some existing software) to filter the access logs of an account to find all requests by a certain IP address?
View 6 Replies
View Related
Jul 18, 2014
Samba accesses can be restricted to certain IP / ranges through the access tab in the Plesk Samba extension screen.This builds the /etc/samba/ smb. conf.include file with entered information.All well and good so far.
This file contains the standard 'do not modify...' text, so making manual changes directly here is undesirable. In Plesk are some Linux commands such as /usr/local/psa/bin/php_handler through which permitted changes can be made from the command line.
Is there a similar command included which would allow a shell script to make changes in a supported manner like the /usr/local/psa/bin/php_handler file does? any changes the script makes can be seen in the Plesk Panel and unless admin changes them through the panel will be persistent.
View 2 Replies
View Related
Jul 29, 2008
I installed memcached-1.2.2
and
php-4.3.9-3.22.9
when i run the command i got these errors #memcached -d -u root
bind(): Address already in use
failed to listen
View 0 Replies
View Related
Aug 3, 2008
With my hosting account I have access to both memcache and xcache at the same time which at this point I am utilizing both but I have to decide which plugin for wordpress I would like to install since they are both have the same file name and would need to be installed in the same directory.
Currently I am running the memcache plugin and not the xcache because my host says it will perform better under higher load being that memcache is installed on a separate server with 16GB of RAM.
They feel using the xcache plugin would really on be beneficial during times of little strain on the server but not during heavy load.
so what do you think? Like I said both caching systems are installed and running but which plugin should I make wordpress utilize? memcache or xcache?
FYI - I do have times when I have 600 to 800 concurrent connections
View 2 Replies
View Related
Feb 26, 2008
Is it possible to set up a dedicated box between a fileserver and the web running memcache to lower IO on the fileserver?
Something like this:
fileserver -> memcache -> web
I would guess the memcache box would use some kind of proxy software like squid to do this.
View 9 Replies
View Related
Jan 5, 2008
If anyone is familiar with memcache... I could really use your help.
I've installed memcache, added the extension to php.ini and it's all showing up when I do phpinfo...
However, when I try to run memcache, I always get that I cannot connect and when I try 'memcached' or 'memcache' from the command line, it always says it can not recognize it.
View 14 Replies
View Related
Jul 30, 2008
I installed memcache but i dont know how to execute and i got the error like this displayed below.
# memcached -d -u root
bind(): Address already in use
failed to listen
memcached-1.2.2
libevent-1.3e
php-4.3.9-3.22.9
httpd-2.0.52-38.ent.2
bind-9.2.4-30.el4
I am using Red Hat Enterprise Linux ES release 4 (Nahant Update 7)
# uname -a
Linux server 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:27:17 EDT 2006 i686 i686 i386 GNU/Linux
View 8 Replies
View Related
Aug 27, 2007
would I be able to install any additional php modules NOT listed in Cpanel (example memcache, ffmpeg, etc.) on a Cpanel server? If possible, how do I do it?
View 6 Replies
View Related
Feb 15, 2008
I am just reading a bit about the memcache module. Does anyone have an opinion if this is suitable for installation on a regular shared hosting server?
View 2 Replies
View Related
Feb 6, 2007
i am using seperate server for sql .But my httpd server failed many time when i checked maximum number of httpd connection then my sql server using too many connection what is the reason of this problem . Is my sql server using as a slave in a ddos attack or sql server need http connection?
View 2 Replies
View Related
Sep 1, 2007
I trying:
Code:
[root@serwer /]# httpd restart
/usr/sbin/httpd restart: httpd not running, trying to start
/usr/sbin/httpd restart: httpd could not be started
Code:
[root@serwer /]# /etc/rc.d/init.d/httpd configtest
Syntax OK
Help
View 7 Replies
View Related
Apr 1, 2009
Cpanel with Cent os
i have creat my new user and upload his files on it. but when i try this link:
http://ip/~user
i have this error and my friend say that your httpd have problem. but its my new server. how can i solve it ?
404 Not Found
The server can not find the requested page:
ip/~user (port 80)
Please forward this error screen to 69.197.166.71's WebMaster.
Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8b mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.8 Server at 69.197.166.71 Port 80
i try it with his doamin and i have same error.
View 3 Replies
View Related
Nov 23, 2008
I have 1764 pid started by httpd daemon. I think for some reason the httpd pid is not closing for me. How do i make sure that all of the httpd pid are closing.
View 2 Replies
View Related
Aug 18, 2008
I know that there are a lot of posts about this but... i have a problem w my apache... it was working fine until today... i get this e-mail from WHM whenever httpd fails... and its pretty often:
Quote:
httpd failed @ Mon Aug 18 16:23:13 2008. A restart was attempted automagically.
Failure Reason: Timeout while trying to connect to service
I wanna know how to check in the error log the entries of just today. because when i put "cat error_log" i start receiving things from last week and this is happening today...
i've tried /scripts/rebuildhttpdconf and then restarted, but still the same.
View 7 Replies
View Related
Jul 17, 2009
I just got apache installed on my box and the process is running. However when I enter my ip address on firefox, nothing loads up and I get a timeout error.
View 8 Replies
View Related
Jul 25, 2009
I did a Graceful Server Reboot, but it seems httpd service not running yet,
I got this error after try to restart Apache..
"
Restarting Apache Web Server
Waiting for httpd to restart..............finished.
httpd (/usr/local/cpanel/whostmgr/bin/whostmgr ./reshttpd) running as root with PID 3319
httpd has failed, please contact the sysadmin.
"
and my Log:
[root@XXXXX ~]# tail -f /usr/local/apache/logs/error_log
Failed to start up concurrent users module!
[Sat Jul 25 20:39:51 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/loca l/apache/bin/suexec)
[Sat Jul 25 20:39:52 2009] [warn] pid file /usr/local/apache/logs/httpd.pid over written -- Unclean shutdown of previous Apache run?
[Sat Jul 25 20:39:52 2009] [crit] (28)No space left on device: Unable to create or access scoreboard (anonymous shared memory failure)
shmget() failed: No space left on device ....
View 14 Replies
View Related
Jul 24, 2009
I just stop httpd service for server maintainance , and disable its monitoring from whm services, but after some time it again start even i disable httpd monitoring and service.
View 6 Replies
View Related
Apr 19, 2009
My httpd server continuosly failing i have to set or restart it manually how can i set auto incase if its restart failed.
View 11 Replies
View Related
Apr 16, 2009
I moved a domain of mine from one of my CentOS servers on my SoHo LAN, to one of my CentOS cPanel/WHM servers. Since the SoHo machine had been handling this domain's mail for almost 2 years (300+ mb of mail), I decided to continue running it from home.
The Apache daemon was stopped on said SoHo box following DNS propagation to the cPanel machine, but Apache was automatically started again after having to reboot the SoHo server. Before I got a chance to kill Apache, I got some weird entries showin' up in the access_logs.
www.####.com ip54520165.adsl-surfen.hetnet.nl - - [15/Apr/2009:23:30:20 -0700] "CONNECT 205.188.179.233:443 HTTP/1.0" 302 286 "-" "-"
www.####.com ip54520165.adsl-surfen.hetnet.nl - - [15/Apr/2009:23:37:05 -0700] "CONNECT 205.188.176.230:443 HTTP/1.0" 302 286 "-" "-"
www.####.com ip54520165.adsl-surfen.hetnet.nl - - [15/Apr/2009:23:43:30 -0700] "CONNECT 205.188.153.99:443 HTTP/1.0" 302 285 "-" "-"
www.####.com ip54520165.adsl-surfen.hetnet.nl - - [16/Apr/2009:00:10:01 -0700] "CONNECT 205.188.153.100:443 HTTP/1.0" 302 286 "-" "-"
I ask simply because I don't recall seeing a "CONNECT" entry in my logs before, and I've been at this for awhile. That or I've just not paid any attention. And what's with the SSL port?
I guess I'm just a little confused as to what was trying to be accomplished here...it hasn't returned since.
View 3 Replies
View Related
Apr 22, 2009
right ive got a server thats getting battered at the moment by lots of apache processes, ive moved sql off to a seperate box (with private lan so thats fine) but now i need to optimize/replace apache with something less intensive on resources, only problem is im using plesk on this server so i am not sure if i can change the webserver app?
using apache 2.2 with prefork mpm
server specs
Athlon 64 3200+
4gb DDR2
120Gb HD
View 13 Replies
View Related
Oct 31, 2009
How can I prevent the httpd from timeout so much? the server recovers which is prefectly fine but there seems to be a problem some where.
httpd failed @ Sat Oct 31 17:47:53 2009. A restart was attempted automagically.
Service Check Method: [tcp connect]
Failure Reason: Timeout while trying to get data from service
View 14 Replies
View Related
Jun 18, 2009
had alot of trouble installing YUM
but anyways...
Restarting Apache Web Server
Waiting for httpd to restart..............finished.
httpd (/usr/local/cpanel/whostmgr/bin/whostmgr ./reshttpd) running as root with PID 20104
httpd has failed, please contact the sysadmin.
View 14 Replies
View Related
Oct 28, 2009
Trying to troubleshoot an exploit where the code redirecting people to exploit sites is not in the website. I think a module is being loaded dynamically, but I am not seeing the entry point in the access logs. I restart httpd and the problem goes away temporarily.
Anyone see anything fishy?
==================
HTTPD MODULES
==================
[root@xxx ~]# httpd -L
<Directory (core.c)
Container for directives affecting resources located in the specified directories
Allowed in *.conf only outside <Directory>, <Files> or <Location>
<Location (core.c)
Container for directives affecting resources accessed through the specified URL paths
Allowed in *.conf only outside <Directory>, <Files> or <Location>
<VirtualHost (core.c)
Container to map directives to a particular virtual host, takes one or more host addresses
Allowed in *.conf only outside <Directory>, <Files> or <Location>
<Files (core.c)
Container for directives affecting files matching specified patterns
Allowed in *.conf anywhere and in .htaccess
when AllowOverride isn't None
<Limit (core.c)
Container for authentication directives when accessed using specified HTTP methods
Allowed in *.conf anywhere and in .htaccess
when AllowOverride isn't None
<LimitExcept (core.c)
Container for authentication directives to be applied when any HTTP method other than those specified is used to access the resource
Allowed in *.conf anywhere and in .htaccess
when AllowOverride isn't None
<IfModule (core.c)
Container for directives based on existance of specified modules
Allowed in *.conf anywhere and in .htaccess
when AllowOverride isn't None
<IfDefine (core.c)
Container for directives based on existance of command line defines
Allowed in *.conf anywhere and in .htaccess
when AllowOverride isn't None
<DirectoryMatch (core.c)
Container for directives affecting resources located in the specified directories
Allowed in *.conf only outside <Directory>, <Files> or <Location>
<LocationMatch (core.c)
Container for directives affecting resources accessed through the specified URL paths
Allowed in *.conf only outside <Directory>, <Files> or <Location>
<FilesMatch (core.c)
Container for directives affecting files matching specified patterns
Allowed in *.conf anywhere and in .htaccess
when AllowOverride isn't None
AuthType (core.c)
An HTTP authorization type (e.g., "Basic")
Allowed in *.conf only inside <Directory>, <Files> or <Location> and in .htaccess
when AllowOverride includes AuthConfig
AuthName (core.c)
The authentication realm (e.g. "Members Only")
Allowed in *.conf only inside <Directory>, <Files> or <Location> and in .htaccess
when AllowOverride includes AuthConfig
Require (core.c)
Selects which authenticated users or groups may access a protected space
Allowed in *.conf only inside <Directory>, <Files> or <Location> and in .htaccess
when AllowOverride includes AuthConfig
Satisfy (core.c)
access policy if both allow and require used ('all' or 'any')
Allowed in *.conf only inside <Directory>, <Files> or <Location> and in .htaccess
when AllowOverride includes AuthConfig
AddDefaultCharset (core.c)
The name of the default charset to add to any Content-Type without one or 'Off' to disable
Allowed in *.conf anywhere and in .htaccess
when AllowOverride includes FileInfo
AcceptPathInfo (core.c)
Set to on or off for PATH_INFO to be accepted by handlers, or default for the per-handler preference
Allowed in *.conf anywhere and in .htaccess
when AllowOverride includes FileInfo
AccessFileName (core.c)
Name(s) of per-directory config files (default: .htaccess)
Allowed in *.conf only outside <Directory>, <Files> or <Location>
DocumentRoot (core.c)
Root directory of the document tree
Allowed in *.conf only outside <Directory>, <Files> or <Location>
ErrorDocument (core.c)
Change responses for HTTP errors
Allowed in *.conf anywhere and in .htaccess
when AllowOverride includes FileInfo
AllowOverride (core.c)
Controls what groups of directives can be configured by per-directory config files
Allowed in *.conf only inside <Directory>, <Files> or <Location>
Options (core.c)
Set a number of attributes for a given directory
Allowed in *.conf anywhere and in .htaccess
when AllowOverride includes Options
DefaultType (core.c)
the default MIME type for untypable files
Allowed in *.conf anywhere and in .htaccess
when AllowOverride includes FileInfo...
View 2 Replies
View Related
Mar 4, 2008
i have two servers behind certain switch,
the two servers are with low load,
but the one is good response,and another one is slow,
i try to restart the httpd,the problem is here still,
are there any method that i can optimize the httpd and check out why it is ?
they all run with whm/cpanel
View 4 Replies
View Related
Apr 28, 2008
I have 3.0 pentium with 2Gb RAM... It's the first time I use plesk and this is strange...
top - 23:20:00 up 2:42, 1 user, load average: 9.87, 13.60, 10.29
Tasks: 149 total, 29 running, 120 sleeping, 0 stopped, 0 zombie
Cpu(s): 93.9% us, 6.1% sy, 0.0% ni, 0.0% id, 0.0% wa, 0.0% hi, 0.0% si
Mem: 2064724k total, 1208656k used, 856068k free, 46252k buffers
Swap: 522104k total, 0k used, 522104k free, 354784k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2354 mysql 20 0 290m 90m 4500 S 12.6 4.5 21:08.10 mysqld
29098 apache 20 0 44140 23m 4352 R 8.0 1.2 0:02.20 httpd
28621 apache 20 0 41560 23m 4360 R 7.3 1.1 0:06.38 httpd
28855 apache 20 0 43992 23m 4356 R 7.3 1.2 0:06.28 httpd
29252 apache 20 0 34672 15m 3344 R 7.3 0.8 0:00.22 httpd
27117 apache 20 0 44632 24m 4692 S 6.6 1.2 0:19.58 httpd
28517 apache 20 0 44196 23m 4500 R 6.6 1.2 0:10.76 httpd
28930 apache 20 0 44272 23m 4504 R 6.6 1.2 0:06.16 httpd
28994 apache 20 0 42756 22m 4396 R 6.6 1.1 0:03.12 httpd
29026 apache 20 0 43584 23m 4700 R 6.6 1.1 0:04.04 httpd
29173 apache 20 0 41212 22m 3708 R 6.6 1.1 0:01.86 httpd
29194 apache 20 0 41056 21m 3756 R 6.6 1.1 0:01.08 httpd
29229 apache 20 0 38132 18m 3668 R 6.6 0.9 0:01.04 httpd
29232 apache 20 0 42876 22m 4344 R 6.6 1.1 0:01.08 httpd
29236 apache 20 0 36708 17m 3728 R 6.6 0.9 0:00.74 httpd
28564 apache 20 0 44300 23m 4712 R 6.0 1.2 0:08.96 httpd
28926 apache 20 0 44228 23m 4408 R 6.0 1.2 0:04.44 httpd
29063 apache 20 0 43588 22m 4336 R 6.0 1.1 0:03.40 httpd
29073 apache 20 0 43944 23m 4388 R 6.0 1.2 0:03.94 httpd
29172 apache 20 0 41056 21m 3752 R 6.0 1.1 0:01.50 httpd
29192 apache 20 0 44704 24m 4408 R 6.0 1.2 0:03.20 httpd
29237 apache 20 0 37100 18m 3660 R 6.0 0.9 0:00.64 httpd
29254 apache 20 0 33432 14m 3340 R 6.0 0.7 0:00.18 httpd
29228 apache 20 0 35056 16m 3656 S 5.3 0.8 0:00.36 httpd
29105 apache 20 0 44744 24m 4452 R 4.7 1.2 0:04.74 httpd
29106 apache 20 0 43908 23m 4548 R 4.7 1.2 0:05.36 httpd
29193 apache 20 0 35124 16m 3652 R 4.7 0.8 0:00.68 httpd
29195 apache 20 0 43324 22m 4332 S 4.7 1.1 0:01.36 httpd
28551 apache 20 0 44240 23m 4596 R 4.0 1.2 0:10.64 httpd
28727 apache 20 0 44012 23m 4492 S 4.0 1.2 0:08.70 httpd
29223 apache 20 0 44048 23m 4428 S 3.3 1.2 0:01.26 httpd
29224 apache 20 0 43236 22m 4328 S 2.0 1.1 0:01.06 httpd
29219 apache 20 0 35108 16m 3648 S 1.3 0.8 0:00.70 httpd
29259 apache 20 0 28860 9816 3296 R 1.3 0.5 0:00.04 httpd
29260 apache 20 0 28464 9476 3284 R 1.3 0.5 0:00.04 httpd
I have some webs with 30K/40K visits each day (it's not too much)... A smaller CPU with 1Gb RAM with cPanel and Apache 1.3 worked perfectly, and now with a bigger computer and plesk I see this...
More info on server-status
Server Version: Apache/2.0.54 (Fedora)
Server Built: Jul 26 2006 11:00:19
Current Time: Monday, 28-Apr-2008 23:40:53 CEST
Restart Time: Monday, 28-Apr-2008 23:25:38 CEST
Parent Server Generation: 0
Server uptime: 15 minutes 14 seconds
Total accesses: 13025 - Total Traffic: 44.9 MB
CPU Usage: u1183.04 s50.79 cu.01 cs0 - 135% CPU load
14.3 requests/sec - 50.3 kB/second - 3616 B/request
34 requests currently being processed, 67 idle workers
C_C_C_____W__C_WC__WCW_W_R______C____W_W_W._W.___W W____WC.CC___W
___W__WC_W__W_________W__..WW_W.___W____._.__..... ..............
.................................................. ..............
.................................................. ........
View 3 Replies
View Related
Apr 16, 2008
In My server i Can see lotz of /usr/local/apache/bin/httpd -k start -DSSL Process also some time it lead to crash of my server,is this caused to improper httpd.con file iam have 200-250 online users here i will give my apachi cofig file
KeepAlive Off
MaxKeepAliveRequests 200
KeepAliveTimeout 15
StartServers 20
MinSpareServers 30
MaxSpareServers 40
MaxClients 600
MaxRequestsPerChild 250
in correct optimization for my apachi also my processer is dual xenon
View 14 Replies
View Related