Tag Info

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


5

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


5

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


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


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


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


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


2

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


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

The sources file is usually located in /etc/apt/sources.list. The source URI's look identical to other URI's except they begin with deb-src instead of deb.


1

Ok, this turned out to be a problem with our own code, rather than anything specifically wrong with either APC or Symfony2. For the reference of anyone else who might run across this one: We were using the ApcUniversalClassLoader component from Symfony2. That allows you to specify a prefix for your cache files. This prefix was the same across each ...


1

I guess that the remi repo is disabled by the default, verify with yum repolist or grep enabled /etc/yum.repos.d/remi.repo. When you install php-mbstring, it is pulling from base repo. So, try this: # yum --enablerepo=remi install php-mbstring


1

I think, you can use php 5.3.13 from dotdeb repository: sudo echo "deb http://php53.dotdeb.org stable all" >> /etc/apt/sources.list


1

You're missing a compiler (and probably also php headers). Try yum install gcc php53-devel first. Then pecl install memcached again.


1

It seems that you have 2 version of php: 5.1.6 and 5.3.3 Processing Conflict: php53-common conflicts php-common I will suggest to add ius community repo and install all necessary packages from them. Install from source it's a bad idea on RHEL based system, imho # rpm -ivh ...


1

Your problem here is the conflict between the PHP 5.3.3 common files and the PHP 5.1.6 files, yum is telling you this here: php53-common-5.3.3-13.el5_9.1.i386 from installed has depsolving problems --> php53-common conflicts with php-common Error: php53-common conflicts with php-common To resolve, simply remove php-common then run your original yum ...



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