Hot answers tagged

7

For me that looks good. Your PHP + MySQL is taking only around 100 megabytes of RAM, leaving lots of room for the operating system to breathe. For your "how many users this VPS can handle?" question: it depends. With proper caching and other best practices I think it should handle at least dozens of requests per second, if not more. If the content is ...


7

It isn't good, your php5-fpm process take around 35Mo. With this configuration you may have 50 process (max_children = 50), with each one of them allocating 35mo. thus, your machine which have only 512Mo will swap. I think that your limit is around 10 process of php-fpm (max_children = 10).


6

That article is expecting you to be using a server OS, e.g. Windows Server 2008. You're not, so the equivalent on a home OS is - Control Panel -> Program and Features -> Turn Windows features on and off (left sidebar). EDIT: upon further reading of the article, it actually tells you that anyway :) Here's the link + anchor. EDIT #2: You might also want to ...


5

Check out: http://stackoverflow.com/questions/524508/how-can-one-run-multiple-versions-of-php-5-x-on-a-development-lamp-server


4

There is PPA (Personal Package Archive) repository with PHP 5.3.6 at https://launchpad.net/~bjori/+archive/php5 with installation instructions. As I checked there is amd64 build as well (lucid). sudo add-apt-repository ppa:bjori/php5 sudo apt-get update sudo aptitude show php5 Package: php5 State: not installed Version: 5.3.6-8ubuntu0ppa4~lucid1 Priority: ...


4

Work-around: Use iuscommunity ( http://iuscommunity.org/ ) and install php53u-mcrypt. In general, you will install packages with named of the form php53u-foo.


4

Since the error message says, that the file "cannot be found", please check the location of your "php5apache2_2.dll" - maybe the installer did something strange and the file is not there (anymore). Further, I'd suggest NOT to use the installer. There are zip-Files for download at php.net. Download and unzip it in your directory "C:/Program Files/PHP/". ...


4

How do we get back to the initial options screen? You need to reconfigure the php53 port, but it seems you've been trying to reconfigure a module instead. Perform the following cd /usr/ports/lang/php53 make config You can also use make showconfig, make rmconfig to show and delete options, respectively. Where are these config files saved? ...


3

You don't list us the PHP modules. You most likely have something like PHP Accelerator, XCache or similar in place, a front-end cache such as Varnish caching stuff or some other black magic you won't reveal us. For the caches such as XCache, see their manual how to operate from this. For the front-end caches such as Varnish, see their manual. Other than ...


3

My go-to for PHP on CentOS is the remi repository. Remi is a Red Hat employee who also packages the official Red Hat PHP packages, in addition to his own repos where he maintains compatible packages which are more current versions. Simply installing and enabling the remi repository on CentOS 6 and then yum updating is sufficient to upgrade to PHP 5.4. (The ...


3

pecl PDO is depricated, try yum install php-pdo


3

IT is very late but as I came via a search other people might find the following helpful. Had the same trouble described above. Problem was that I tried to run yum install php-gd this threw the error above yum install php53-gd did not as this belongs to installed php package's installed. you could find all available packages via yum search php53 ...


3

just install it into your home directory in a unique path...e.g. ./configure --prefix=/home/you/php-testing now do make && make install, and then add a new high-numbered port listener for apache which uses the locally installed php libs


2

I would personally recommend Apache using mpm_worker with FastCGI PHP, eAccelerator, and possibly disk caching via mod_disk_cache, depending on your PHP application. If you use PHP to generate sttaic, cacheable files like images, JavaScript or CSS, or if your content is cacheable, you may notice a huge performance boost. We switched from Apache's ...


2

I was able to accomplish what I was after by putting php_admin_flag engine Off at the top of the mod_suphp.c. Also I had to make sure I used suPHP_Engine off by default. End result: <IfModule mod_suphp.c> <Directory /home/> php_admin_flag engine Off AddType application/x-httpd-php .php .php3 .php4 ...


2

Linode rocks! My only advice is to move MySQL to a separate 512MB linode. The benefits are many and unless $20/mo will break the bank, there is no downside. My gut tells me you're running debian or ubuntu.. Check out the stack script library. There is a dedicated MySQL server optimized for linode. Then add the private IP (free) to your file/nginx/php-fpm ...


2

Are there some old php processes still running? Stop nginx, check for any php processes running (depends on how you're running php stuff under nginx), kill any and restart if it's a persistent PHP FPM and then try again?


2

PHP does not run within Nginx, simply use your PHP init script to restart PHP and you should be good. Other guy kinda hinted at the right thing, is it possible to split an acceptance?


2

safer to uninstall php and all php-xxx package before installing php53


2

The answer is "It depends on your database", though generally writing the query as a JOIN is preferred as it's easier to read and gives the query planner some hints as to what you're doing/ You should ask Postgres to EXPLAIN (or EXPLAIN ANALYZE) the query plan for your query and see if there are any substantial differences - at the same time you might also ...


2

Generally speaking, there is a cost to prepare each query and a cost to retrieve the data. For small datasets, executing SELECTs in a loop isn't that bad, but if you're doing a SELECT on a table with 1000 rows, then for each of those rows doing another SELECT on a different table with 1000 rows, the difference will be very noticeable, even if the looped ...


2

Is there any way, to get a PHP 5.3 package for recent debian versions (i.e. wheezy) which is still getting security support? No - at least, only for a limited timeā„¢: You have to use the previous debian release (in this case, squeeze) - php5.3 was the latest version in use there. Previous debian releases get security updates for one year after the the ...


2

Check PHP CLI SAPI module whether installed <?php if (PHP_SAPI === 'cli') { // ... } ?> If not installed, then install it Debian Based Server sudo apt-get install php5-cli Redhat/CentOS Based Servers yum install php5-cli and make sure you are running your script in CLI mode


2

php -r 'print_r(version_compare("5.3", phpversion()));'


1

No. It's valid. May be. You should really consider upgrading at least on last 5.3.x, but it's better to upgrade to some recent 5.x, since 5.3.x isn't supported anymore. Nope. I had such configuration working on all versions. Furthermore, having pm.max_requests set is a common practice. May be you just have to few workers running. You should really ...


1

You are trying to install a package built for CentOS 5 on CentOS 6. If you're trying to replicate the production environment, you should be using the same OS that production is using as well. After a quick search using the package name above, it looks like the package was originally grabbed from the Webtatic Yum Repo. From that post, there are links at ...


1

The apc.stat option is turned off. apc.stat Off Off In this case APC won't re-read cached files, ever. The documentation states: If this setting is off, APC will not check, which usually means that to force APC to recheck files, the web server will have to be restarted or the cache will have to be manually cleared. To avoid restarting the web ...


1

Can't I just download the .dll file? No this is not going to work. You need to install the entire C++ Redistributable package. (Even if just dropping that one dll into the app directory or into System32 did technically work, I'd still recommend installing the Redistributable package because it's easier to account for what is installed on the computer ...


1

Maybe was installed manually from source or using an rpm possibly? Try the following for example.. rpm -qa php-common rpm -qa php53-common Then try removing by doing the following... sudo rpm -e `rpm -qa | grep -i php-common ` sudo rpm -e `rpm -qa | grep -i php53-common ` If it was installed from source for some crazy reason then you might have a ...


1

Option 1: Add some repository with the version you want/need. Option 2: Build a rpm/package of your own from source and install/update this as often as you like.



Only top voted, non community-wiki answers of a minimum length are eligible