Splitting web server for web application and mobile app
Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi Yes,
I discover a mistake need to add this too listen [::]:8080 default_server;. Anything else you think I must add? I dont get you what do you mean add php ?
Error: php71u-json conflicts with php-common-5.4.16-43.el7_4.x86_64
Error: php71u-common conflicts with php-common-5.4.16-43.el7_4.x86_64
Error: mod_php71u conflicts with php-5.4.16-43.el7_4.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
nginx plus is a commercial nginx. You won't need that.
nginx does not come with PHP support, neither does Apache. You will have to enable it in both web servers first!
Seems like you have PHP 5.6 installed. Uninstall it first. If it came as a dependency, check if you could fix that. Otherwise, you'll have to stick with PHP 5.6 for now - CentOS can be old.
Hi Yes,
What is different on the commercial nginx it has special features is it? Actually I am version sure I have install php 7 previously that is why you read it says Error: php71u-json conflicts with php-common-5.4.16-43.el7_4.x86_64. But surprisingly when I run this command php -v
-bash: php: command not found. It gives me cant find the php but my pages on apache is running fine.
Hi Yes,
I saw the website I guess mainly is about support and I guess they are charging for that. Regarding the php I am quite sure I am running php7 but I dont now why its not showing with this command php -v? Ok I will try to figure out on how to install the php for nginx.
Hi Yes,
Since I am using centos 7 it only support up to php 5.4. So I remember going to this link https://www.digitalocean.com/communi...-7-on-centos-7 to upgrade it php7. Coincidently I saw there tips on how to link nginx with php7 too so hopefully it will helpful for other with similar issue. Ok I have follow the link and hopefully it works.
Hi Yes,
I have managed to install and run nginx. I have tried comparing I dont find that nginx to be much faster than apache when I compare side by side. So what can I do in order further speed up nginx? Should I post my .conf here ?
To my way of thinking, these days it's not so much a matter of what you deploy (what scripting language, what database, and so on), but how you deploy it.
It is often the case that it's more efficient to purchase resources from a hosting service, which runs your application(s) on computers that it owns, at secure data-centers which it controls. There are many ways to do this: "actual iron," "virtual machines," and various types of "containers." These deployment strategies will give you the isolation that you need (doing so in various ways), but they will also address concerns such as scalability.
Rackspace, when discussing some of their container-based strategies, trots out in their advertising the use-case of a client who sells a mobile app for soccer-moms. Most games are played on weekends, so most of the demand for service is at narrow slots of time ... but it apparently can be quite intense, when it hits. Their deployment strategies allow the client to add horsepower when it's needed and to avoid paying for it when it's not.
Hi Yes,
So when there is a lot of traffic what will be the difference in terms of nginx and apache then ? So for now what else can I add on to harden and optimise up the box.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.