Hi All
I am thinking to get to know nginx better, I have a home box which I can install Fedora, Ubuntu or any flavor linux.
Goal : To have a wordpress (blog), mediawiki (wiki), forum script in subdirectories under the www root.
so for e.g. www.mydyndnsdomain.com/blog, /wiki/, /forum and so on.
I setup a fedora13 VM, installed nginx on it, edited the nginx.conf to specify web root /usr/share/nginx/html/ - I can see the index.html (default nginx page) but when i put wordpress into a subdirectory called blog it won't get displayed or allow me to start the install process of wp.
Any step by step would be really helpful Kind Regards
-
Last time I looked at nginx, it does not have the ability to directly manage its own FastCGI processes. You would need to write your own script to start up the PHP FastCGI processes, then configure Nginx to pass requests to the FastCGI sockets before any PHP applications will work.
rihatum : http://www.howtoforge.com/installing-nginx-with-php5-and-mysql-support-on-fedora-12 http://www.howtoforge.com/installing-nginx-with-php5-and-mysql-support-on-fedora-12-p2 with reference to the above how-to, do you think nginx can handle the php fast cgi process ? I think it can - not sure - your help would be appreciated.Martin F : Nginx will not spawn the processes for you no. Either use spawn-fcgi and use supervisord, monit etc to monitor them or be awesome and go with PHP 5.3.3 compiled with --enable-fpmrihatum : Martin F, Thanks for your input : can you plz explain a bit more on this ? As i mentioned I am new to the nix world of web servers etc. 1) Do I just download 5.3.3 2) Install Nginx (according to the how-to I followed) Kind RegardsFrom Ron -
This looks like a reasonable write-up on using PHP with nginx. As @Ron said, you need to start up the PHP FCGI processes, and then tell nginx to use them.
http://tomasz.sterna.tv/2009/04/php-fastcgi-with-nginx-on-ubuntu/
rihatum : http://www.howtoforge.com/installing-nginx-with-php5-and-mysql-support-on-fedora-12 http://www.howtoforge.com/installing-nginx-with-php5-and-mysql-support-on-fedora-12-p2 I used the above how-tos to get it installed on fedora13. It seems that it now has the ability to handle php fast cgi process (not sure though - as this is the first time with nginx or even nix based webservers). I did a phpinfo.php on the root of the webserver and it displays php info page so it is handling php fine. Can you please guide me on how to get the wordpress, mwiki etc working from under one web root folder-Thankswuputah : I recommend you read the installation instructions for each piece of software.From wuputah -
If you now have PHP executing, what are the errors you are getting trying to install these applications?
From Ron -
Look at this guide. Here author uses lighttpd for spawning fcgi processes. I think this will help you. Good luck.
From netme
0 comments:
Post a Comment