Top Performance PHP + HTTPD + OPCACHE [closed] - php

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I'm trying to figure out what would be the most performing configuration to host a PHP website on Amazon EC2.
Which webserver? (Apache, Lighttpd, nginx)?
Which PHP module? mod_php, FastCgi?
Which OpCache? (xcache, APC, eAccelerator, Varnish)
What would you recommended setup would look like?

It depends on your application running on the server. Needs much more memory or cpu or both?
Nginx + PHP-FPM + Varnish-Cache is a good solution if you can use them effectively.

Related

should I configure my server to use the latest version of PHP? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
I'm looking at some things in my cPanel and noticed that my server is using PHP 5.4. Should I change it to PHP 7.1? Is it a good idea to always use the latest version? Is there a big difference in performance between 5.4 and 7x?
You need to test for incompatibilities but PHP 7.1 is much faster, so barring some other reason not to, yes, you should.
if only for security reasons you should, but for resolving common bugs too and performance

Apache + php-fpm vs Nginx + php-fpm [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
I have a wallpaper website (almost all traffic goes to images). I use the following apps to serve.
apache2 + php5.3 + CGI/FastCGI
I have recently read that Nginx is faster than Apache. Also, many people advise using php-fpm. Do you recommend me to move my website to
Nginx+php-fpm
or just make
apache2 + php-fpm?
There definitely is a difference in performance of Apache and NGINX.
Both have their strongsuits and their weaknesses but in general:
If PHP has to do a lot of work Apache will actually be faster because mod_php is a part of the Apache itself and is really good integrated.
The additional (f)cgi takes some time too when using Nginx and thus making it slower on PHP-heavy applications.
Conclusion
Do you only want to serve a lot of static data (like images) you are better of with NGINX, because if excells on static content.
--> In your case I'd go with NGINX...don't forget to make good use of NGINX' caching-mechanisms!

Which on is better? php on iis or php on WAMP Server on windows server 2003(VDS) [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I have a VDS(Virtual Dedicated Server) that Windows Server 2003 is installed on it. I want to use php and MySQL on my VDS. I have two options: 1-install wamp server as a web server or 2-install iis and then use php and MySQL on iis.
Which one do you suggest me to use?
Wamp is a great tool for development but it's not very secure and fast for production.
In my opinion, on Windows the best option is IIS, faster and more secure.
You can easily find some tests by searching on Internet :
https://groups.drupal.org/node/234373
I recommand wamp, more stable and efficient.

Symfony: Apache vs built-in PHP server [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
From what I understand, Apache (or Nginx) has been the server of choice (as well as it being installed as part of LAMP/WAMP/MAMP packages). However, the current installation instructions for Symfony (2.6) recommend using the built-in PHP webserver.
From what I understand, this has been in active development since php 5.4 and is making continual improvements. Could someone help give some perspective on this switch from Apache->PHP webserver?
Is to due comparable speed/efficiency/security
Is it more to do with simplifying the Symfony setup (and therefore
only really to be used for development servers)?
read the warning in documentation:
http://php.net/manual/en/features.commandline.webserver.php
It is not intended to be a full-featured web server.
they don't intend to make the tool a webserver.
I recommend nginx with php-fpm

php development under iis. is it good choice? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I am classic asp developer, now shifting to PHP, MySQL development. I am using windows OS for my development. I don't want shift on Linux ( this is personal choice , I don't want to get in debate of windows vs Linux ) .
I tried to install php and other stuff on IIS , I am slowly turning towards frameworks like Laravel.
So, is it good to use php under IIS than apache , what difference will it make if I dont use apache ..
EDIT
i just want know, will some feature will disabled under iis, and what will be difference for execution of php script under iis ,
There is no reason to use IIS with PHP. Apache is much easier to set up and much closer to any shared hosting environment you are likely to run your code on. I used to use IIS for my dev and it always drove me crazy.
I installed Apache on windows and I've never looked back.

Categories