Hot answers tagged

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).


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

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


5

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

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

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/". Edit:...


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? /var/db/...


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


3

pecl PDO is depricated, try yum install php-pdo


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 ...


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

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

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

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

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

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


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

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

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

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


2

The reason you had trouble finding it is because PHP 5.3 reached end of life on 2014-08-14. IUS and other third party repositories removed their 5.3 packages from the primary repos. As the other answer shows, the IUS php53u packages are still available in the archive (for historical purposes), but you should not use them. There are multiple ...


1

Odd – what repository does the latter show as being in? I just checked various CentOS 5.6 servers of ours and we only have the "php53-5.3.3-1.el5_6.1" package. If you are interested, we have used the Webtatic repository for more up to date PHP 5.3 packages (5.3.6). Details available here: http://www.webtatic.com/projects/yum-repository/


1

Alright I eventually figured out that I need to compile. Loaded all the params after much googling and copying the phpinfo for the existing install. I got the fpm compiled and installed then used the yum for any missing pecl packages since its the same version it worked fine. one issue remained is the init script for fpm in the source does not really work. ...


1

I've had the same issue. Take a look at the Visual Studio version used to compile a) ImageMagick, b) php_imagick.dll, c) php and take a look at the thread-safety-flags for the php. The Visual Studio versions have to be the same. The most important in this queue and this scenario is the VS version used to compile ImageMagick. They put the VS-C++ runtime-dll's ...


1

You can fix this by removing the php5-suhosin package. aptitude remove --purge php5-suhosin Apparently one of its new functions is to encrypt the session data, which was enabled when you upgraded from lenny to squeeze. I just spent quite a long time working this out!


1

I'd be very surprised if it has changed (don't have access to check myself). What happens if you copy the session file to /tmp then: $s=('/tmp/sess_' . session_id); print_r(unserialize(substr($s, strpos($s, '|')+1))); I think it's slightly more likely that the session file format may have changed compared with a change to the format of serialize() - so ...



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