AJAX On A VPS
Sep 10, 2008
I've developed an AJAX app which is essentially a souped up chatroom. The client basically polls the server every 10 seconds, and XML containing any new information for the client is returned from the server by a php script. A separate script is called when a message is posted and stuck in a MySQL database.
It's a bit more complex than that because it also fetches RSS feeds but that's the essential core.
The bandwidth is extremely low, especially as all the graphics and javascript files are served from a separate server.
At the moment I'm running on a VPS in the US for $40/month with 512MB RAM. I'm not sure there's much more I can do to optimise the code and the queries, but the whole thing chokes when there are more than 200 online. A typical response time to a client in the UK (where most users are based) is 300ms but that grows exponentially after about 180 come online.
Being a developer who knows very little about hosting, my questions are:
* Should it be grinding to a halt with that load?
* Is any shared hosting or VPS likely to cope or am I looking at a dedicated server?
* How much RAM am I going to need to handle all the script and database threads?
* As it's only used intensively once or twice a week, would a cloud be viable or would response times be just too low?
* Can I do this for under £60/month?
I'm ideally looking for a managed solution including backups, so I can just get on and write the thing on a stable platform which doesn't need mail, secure space, redirection or anything other than the ability to serve html and xml using php and mysql.
View 8 Replies
May 29, 2007
I am running apache 1.3 + modsecurity 1 my problem is i can not use ajax coz of modsecurity is there any way to make ajax work with modsecurity on apache 1 coz i know it's work on apache 2
View 1 Replies
View Related
Oct 28, 2007
I recently changed from shared hosting to VPS hosting w/ iPower.
Since the move, my AJAX checkout module stopped working. No coding changes have been made on my end. Could the issue be on the server side? Do I need to enable something in PLESK?
View 2 Replies
View Related
May 13, 2008
I got PHP working. But some of the Ajax functions it not working.
For example:
in wordpress admin, i can only use HTML mode to start a new post. I cant switch to VISUAL mode. And it was working before though.
What option do i need to compile PHP with to make it work?
Right now i have:
Quote:
'./configure' '--prefix=/opt/lsws/lsphp4' '--with-litespeed' '--with-mysql' '--with-gd' '--enable-shmop' '--enable-track-vars' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-magic-quotes' '--enable-mbstring' '--without-pear' '--with-bz2' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-expat-dir=/usr' '--with-pcre-regex=/usr' '--with-zlib'
View 5 Replies
View Related
Dec 2, 2008
I saw the suggestions to search around the site for good hosts, but it's really challenging to sort out the advertising vs real life experience and personal reviews.
Can anyone give some suggestions for a shared hosting service that can handle my needs for:
.Net 2.0
MSsql allowing remote databse connect
AJAX
about 12 domains
ability to allow several domains to work off the same database
prefer telephone tech support so I can call when things go down.
Tried Godaddy, but they don't allow remote connection to a database (good luck managing large projects)
Tried EasyCGI but not flexible enough
Tried Seekdotnet but even low traffic sites go down, they jumble which domains are connected to your ftp access (one time I had access to another clients html data), and take weeks or up to 'never' to fix hosting errors (fairly sure the errors were not due to the application.)
Heard about IXwebhosting but people don't seem to fond of them hear.
I'd really appreciate some honest input on reliable, reasonable, well supported windows hosting.
View 3 Replies
View Related
Mar 12, 2007
Trying to install this script (can't find any reasonable support method on their site)
http://ecosmear.com/relay/
I'm getting this error during install....
Database Connected....
done
Dropping tables if the exist...done
Creating tables
*relay_clients...
*relay_filesystem...
*relay_log...
*relay_permissions...
*relay_users...
done creating tables
generating random password key : xxx... done
creating first relay administrator...done
rootpath : /home/user
setting up first Virtual Directory: /home/user/filestore....done
setting up permissions....done
Ghostscript NOT enabled
ImageMagik Convert NOT enabled
thumbnailed image types : image/jpeg|image/png
Generating config files: if creation fales make sure the webserver has permission to write to here : ...
Warning: fopen(/home/user/conf.inc.php) [function.fopen]: failed to open stream: Permission denied in /home/user/public_html/relay/install/index.php on line 382
/home/user/conf.inc.php can not open
I am using cpanel/whm and installed ghostscript via rpm module.
root@server [/home/user/public_html]# chmod 755 relay
root@server [/home/user/public_html]# /scripts/checkimagemagick
ok
root@server [/home/user/public_html]# /scripts/installimagemagick
ImageMagick installed ok
The install page has this area which I left as is: ....
View 0 Replies
View Related
Feb 20, 2013
I have an Apache Server (2.4.3) and a Tomcat Server (7.0.36) and have some Java Applications deployed.Everything works fine, but when we start a quite long Ajax process, I see in my Java Application, that a Ajax request is received and starts processing - everything fine. But during processing of the first request, I see a second request starts after 5 minutes.
View 1 Replies
View Related