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

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

pecl PDO is depricated, try yum install php-pdo


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

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

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.


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

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

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


1

I had the same problem I used Kloxo command service to execute shell command after that I used WinSCP commad but in both of them I have same error ( conflict with php-common) after all I tried to use putty command windows and saw that after all unistalling old version and install new version there is a confirmation question that I could not answer it in 2 ...


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

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

I got the same issue.. "php53-common conflicts with php-common" then i reinstall the PHP with yum by giving yum reinstall php* now it's working fine.


1

I have had great luck with this link: http://pjwelsh.blogspot.com/2010/12/linux-rhelcentos-55-php-53-upgrade-made.html Note: The other is a name change for php53 to php53u to get past an naming issue with RHEL/CENTOS 5.6. So for CentOS 5.6, dont use php53, use php53u. This "yum search php53" will show the available packages.


1

Have you added php to the allowed application extensions? You should add .php as the extension and then the path to the executable. In my case it's C:\WINDOWS\system32\inetsrv\fcgiext.dll but it could be different depending on how you installed it



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