Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Error "An application error occurred. Please try again." on nginx #211

jpsim opened this Issue · 8 comments

8 participants


From the initial install screen, I'm getting error "An application error occurred. Please try again."

Running Ubuntu 10.04.4, PHP 5.3.14-1, nginx 0.7.65.

All boxes on Install are green except Apache (optional).

My error.log looks like this:

2012/06/29 18:04:17 [error] 1430#0: *22 open() "/srv/www/" failed (20: Not a directory), client:, server:, request: "GET /index.php/install HTTP/1.1", host: ""

Firebug shows me this:

404 Not Found
?g=installjs (line 16)

404 Not Found
?g=installjs (line 16)

My nginx config file looks like this:

server {
    listen   80;
    access_log /srv/www/;
    error_log /srv/www/;

    location / {
        root   /srv/www/;
        index  index.php;

        if (-f $request_filename) {

        if (-d $request_filename) {
        rewrite  ^(.*)$  /index.php?vbxsite=$1  last;

    location ~ \.php$ {
        include /etc/nginx/fastcgi_params;
        proxy_pass_header Set-Cookie;
        fastcgi_pass_header Set-Cookie;
        fastcgi_index index.php;
        fastcgi_param  SCRIPT_FILENAME /srv/www/$fastcgi_script_name;

It seems to be an nginx rewrite issue but I can't decipher any more than that. Anyone have any ideas?




I've been playing around with this and the issue might be requests for favicons & robots.txt being routed to OpenVBX.

Try adding this to your nginx config:

location /(favicon.ico|robots.txt) {
    access_log off; 
    log_not_found off;
    error_page 404 /404;
    expires   30d;
    add_header Cache-Control public;

I was able to get through the install process by changing the OpenVBX.home variable to the proper address (it was showing up as

Now I can't login. It continues to log me out and with @Gipetto's new config attempts gives me a 404 with the auth/login?redirect url. I've tried using all of the nginx config files I can find. I'm going to try digging into this a little deeper later.


Changing OpenVBX.home to actual URI allowed me to complete install and I am able to log in and use OpenVBX normally. Thanks for the hint, bjtitus!


Just in case someone else finds this thread, I found that if I changed the config.php file, specifically this line $config['index_page'] = 'index.php'; to$config['index_page'] = ''; My issue was solved. This is because the rewrite was already setup. If you have index.php in that config entry it will duplicate it on the OpenVBX.home variable in JS.


add this to your php block...

fastcgi_split_path_info ^(.+.php)(.+)$;

fastcgi_param PATH_INFO $fastcgi_path_info;


@davismwfl Thank you, that worked for me too.



$config['index_page'] = '';

Nginx server:

Put the following directly ABOVE php directive.


location / {
    index  index.php;   
    if (!-e $request_filename){
    rewrite ^/(.*) /index.php?vbxsite=$1;

location ~ \.php$ {
#do typical php-fpm stuff


htaccess to nginx converter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.