Best Light server (Linux + Web server + Database) for Raspberry Pi [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 7 years ago.
Improve this question
I would like to install a web server with a database on a Raspberry Pi (little computer).
The computer has only 1GB RAM.
I want to know what is the best combination: Linux distribution and web server and DBMS to run the local server with multiple users with minimal latency, I will use PHP on the server. And what are the best settings for good performance and to not have bugs (memory usage, disable plugin, disable service, etc)?
I thought a light Debian , a lighttpd server and SQLite for the database. Is this is a good solution?

I think Lighttpd + SQLite is a great choice. For the linux distro, Debian is good but you could also look at CentOS or something like Tiny Core Linux, although I'm not sure of the compatibility with the Pi. Obviously, you can't go wrong with Raspbian
If you want to use this in production and get more stable performance, you could get a few more Pi's and set them up in a cluster.

Related

Use of containers for server side [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 2 years ago.
Improve this question
I am a newbie and trying to create a CGI server. The server will get request from different clients (the server will have to open chrome and do something, so different chrome profiles for every client). I will receive requests using PHP. What is the best practice to do so? Is docker to be used in this case?
As was stated in the comment, there are lots of possibilities and the best practice could vary quite a bit by company, architecture, and tech stack.
But all things being equal, I can say that this is typically a good use case for Docker. And it'd be a good place to start.
Other options:
Going with a non-containerized approach... Run the CGI server directly on a host (could be physical for virtual). One tradoff here is that the host's environment must be configured to support the server vs. the just the container's environment.
Doubling down on a containerzied approach... If you plan on running multiple workloads across different containers (i.e. beyond a single CGI server), you may look at utilizing a container orchestrator, the defacto being Kubernetes.

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