Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question
add comment

4 Answers

up vote 1 down vote accepted

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/

share|improve this answer
    
howtoforge.com/… howtoforge.com/… 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-Thanks –  rihatum Aug 27 '10 at 15:41
    
I recommend you read the installation instructions for each piece of software. –  wuputah Aug 28 '10 at 6:24
add comment

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.

share|improve this answer
    
howtoforge.com/… howtoforge.com/… 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. –  rihatum Aug 27 '10 at 15:44
1  
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-fpm –  Martin Fjordvald Aug 28 '10 at 6:24
    
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 Regards –  rihatum Sep 1 '10 at 8:50
add comment

If you now have PHP executing, what are the errors you are getting trying to install these applications?

share|improve this answer
add comment

Look at this guide. Here author uses lighttpd for spawning fcgi processes. I think this will help you. Good luck.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.