Welcome! Log In Create A New Profile

Advanced

solarphp on nginx

Posted by jlion 
solarphp on nginx
March 28, 2010 01:22AM
now i want to use the nginx as web server, but the the server display error: 500 Internal Server Error.
I found only the default controller and default aciton is correct running.

anybody know how to fix?

My nginx config file is as same as the official's wiki :

location / {
root /path/to/solar/docroot/;
index index.php;

# This matches the requested file to a .css extension so it
# won't be processed as php even if the file is missing.
if ($request_filename ~ ^.*\.css$) {
break;
}

# Matches any file/directory/link that doesn't exist (-e),
# prepends index.php to the query string (assuming your
# index.php is at the root) so that the location below
# matches and is handed off to the fast CGI handler.
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1 last;
break;
}
}

# Matches a query string where index.php is at the root
# (change if your solar system has a non empty $URIBASE)
# and hands off those requests to the php fast CGI handler.
location ~ ^/index\.php.*$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME /path/to/solar/docroot$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
Re: solarphp on nginx
April 30, 2010 11:02PM
The solarphp is running in nginx :)
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 287
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready