[ask] how to install - nginx, php, mysql, phpmyadmin

Hi there,

I just want to ask how i can use nginx server as well as Apache to substitute this one .

I’ve heard nginx is more stable than Apache , right ? I’m using windows based at this moment but sometime i would use Linux :D:D

hope someone can help me learn how to install nginx, php, mySQL and phpmyadmin :wink:

thank you :smiley:

Ok, that makes sense. I guess I better change my setup when I go live, and also get a manual on commands. :slight_smile: That should be fun. lol

Really? Wow, I did not know that. I am using KDE for the GUI. Is their a reason for not using either package? So, it would just be the Command-Line? Learn something everyday. Thanks

Hi,

Security is the main concern, the X Windowing system has never been all that in terms of security - I think they still recommend you don’t run it on any Internet exposed servers (don’t quote me on that though). You’re presenting a much larger attack surface to any hackers etc. the more you have installed on a server.

Thanks,

Hi,

Just as an aside, you don’t want to be installing a desktop environment such as Gnome or KDE on to a server.

Thanks,

I’ll just add. If you go with linux, I would choose CentOS also. I have it on a box (along with Win Server box), and couldn’t be more pleased with it. Very easy to use, Great UI, and easy to find your way around. It’s the closest you’ll get to a Windows OS…without the price. :slight_smile:

Hi,

It’s not often I tell people to Google, as we don’t really like that on SitePoint, but in this instance it really is the best course of action:

http://www.google.co.uk/search?sourceid=chrome&ie=UTF-8&q=installing+nginx+with+centos+and+php

Some of those links for you:

http://www.cyberciti.biz/faq/rhel-fedora-install-configure-nginx-php5/

http://adityo.blog.binusian.org/?p=428

http://library.linode.com/web-servers/nginx/php-fastcgi/centos-5

http://en.ispdoc.com/index.php/Installing_Nginx_in_CentOS_Linux

CentOS is a Linux distribution, it’s based off of a well known distribution of Linux and is used by many hosting companies - Your best bet is to get an old PC and try it on there, or a cheap VPS from somewhere like VPS.net and have a play around with it.

Installing MySQL with CentOS is pretty trivial for the standard version that comes with the OS i.e.:

yum install mysql-server

Similar for PHP:

yum install php

Although to work with nginx you’ll need to do a bit more than that as advised in the above articles.

Thanks,