Can I change to nginx ?

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Can I change to nginx ?

Postby flameproof » 30. October 2014 03:04

I use Xampp 1.7.3 on Win Xp and Apache takes quite a bit of RAM.

Question is, can I simply stop Apache and run nginx?

I tried with a standalone nginx but so far I t didn't work.
flameproof
 
Posts: 7
Joined: 12. February 2010 05:51

Re: Can I change to nginx ?

Postby Nobbie » 30. October 2014 10:39

Of course, it is your computer.
Nobbie
 
Posts: 8775
Joined: 09. March 2008 13:04

Re: Can I change to nginx ?

Postby flameproof » 30. October 2014 15:09

Sorry, no troll feeding.

It works now, just in case anybody else has problems, here are the steps:

Download nginx for Win and expand the directory. I put it into:

c/xampp/nginx

edit nginx.conf (# is old)

Code: Select all
       # location /  {
       #     root    html;
       #     index  index.html index.htm index.php;
       #                  }
      
      
   location /    {
        root    c:/xampp/htdocs/;
        index  index.html index.htm index.php;
         }

########## and #################

        #    location ~ \.php$ {
        #    root                html;
        #    fastcgi_pass    127.0.0.1:9000;
        #    fastcgi_index  index.php;
        #    fastcgi_param SCRIPT_FILENAME  /scripts$fastcgi_script_name;
        #    include           fastcgi_params;
        #                             }
      
         location ~ .php$ {
         root               htdocs;
         fastcgi_pass   127.0.0.1:9000;
         fastcgi_index index.php;
         fastcgi_param SCRIPT_FILENAME c:/xampp/htdocs/$fastcgi_script_name;
         include fastcgi_params;
                  }



Then...

• Start nginx.exe
• Start PHP with RUN > c:/xampp/php/php-cgi.exe -b 127.0.0.1:9000 -c c:/xampp/php/php.ini
• Start mysql.exe

So far that works for me. The Win server is used as intranet only, but it's an older Xp and suffers from the heavy Apache memory requirement.

I will update if I encounter problems.
flameproof
 
Posts: 7
Joined: 12. February 2010 05:51


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 79 guests