phpredis + pconnect [closed] - php

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am using phpredis on my php based website. The webserver I am using is a the simplest apache apt-get installation, no configuration involved, as this is only a development environment.
The issue I am facing is that basically, while using phpredis, there is no difference between "connect" and "pconnect" commands: they both create a new connection everytime, as I can see from the "info" command on redis-cli.
Now, I am pretty sure it is because of the apache configuration and the fact that it probably (most likely) is a multi-threaded env, therefore can't enstablish a single connection.
My question is basically for when I will turn into production: what would the best choice of a webserver be to avoid this problem? I remember using lighttpd with thousands of users and still get only a very few (like 2 or 3) connections on mongoDB.
Any ideas?
Thanks in advance.

Related

Install nodejs with php exec [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I just bought a domain with some space, but my provider not supporting nodejs.
I searched a lot, how could I build it on the server, but of course, to make, I need so privileges, so now I'm stuck here.
How could I use nodejs (or other server side Javascript engine) to run javascript?
I have FTP access to the server, but nothing more.
I believe you just can't.
If your provider doesn't give privileges to do it you are stuck :(

How to use my apache/php web hosting for setting up a radio? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
Is there a way to use my Apache / PHP web hosting to setup an internet radio ?
If i got that right, you want to set up a webradio, not a file acces system to stream to single computers.
In that case, i would suggest u have a look into
Linux
http://www.howtoforge.com/linux_webradio_with_icecast2_ices2
Windows
An alternate is http://www.shoutcast.com/ using Winamp, which can be controlled by an webinterface, accessable via internet if running an apache server
Hope that did help you
I dont know wich platform you have, but take a look at these sites:
For Windows:
http://www.ehow.com/how_7637097_stream-audio-apache-server.html
For Linux: (it says its for Free BSD, but you can use it in every type of Linux, just some commands may be diffrent)
http://drewish.com/writeups/radio_station_website_with_freebsd

Free Web Servers PHP [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Can anyone suggest me some free webservers, where i can upload my site and test it. My current one is giving me and error, that actually should not happen. And maybe it works with another server.
I've found izfree to be pretty good when I've needed quick hosting in a pinch. I wouldn't recommend it for anything in production though as its uptime isn't as good as it could be.
EDIT: Although looking at it, it may not even be maintained anymore. I last used it in 2009...
Simply set up a local server with programs like xampp. You can download it here: http://www.apachefriends.org/en/xampp.html
Much faster, agile and more convenient than testing on actual servers.

Can you run Ruby and Rails and PHP together on the same site? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
Why? Because for our site I want to develop a Rails application, but I also want a separate part of it (perhaps the public directory) to be easy to modify by a PHP programmer/web designer.
Is it possible to run both on the same site? Are there any reasons why it is not a good idea or not a best practice?
I am pretty sure Nginx and Lighttpd can do it. For example, you can run php worker processes with php-fpm and configure the webserver to send any php jobs to them. Every other job could be configured for rails. I have never tried it myself.
You can use the vhost, port, or file extension (*.php) to determine where the webserver will send the request.
I think it would be an ok idea if lets say you have a PHP site but want to have a non-blocking application in nodeJS or use Tornado and have Nginx configured to proxy requests to them.
Example where Nginx is used for PHP-FPM and Node.js
http://blog.mixu.net/2011/01/04/nginx-php-fpm-and-node-js-install-on-centos-5-5/
In this example Node is ran on port 8000

How to configure PHP engine with Apache 2.2.x? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
i have installed Apache 2.2.x but when i turned to instal PHP V5.2.17 i didn't find the apache 2.2.x radio button in the web server setup step !! only the fast CGI,other CGI and don't install a web server radio buttons is appearing, what i can do ??
I suspect you're talking about windows. Lining up a proper build of apache, php module, etc is a bit of a pain, so unless it's for production, I suggest using WampServer or XAMPP.
Otherwise, the PHP modules are here if you really want to roll your own. Remember to match the PHP and Apache runtimes and word-size (32 or 64 bit).

Categories