ryzomcore icon indicating copy to clipboard operation
ryzomcore copied to clipboard

web_on.bat per instructions will not find correct files

Open acidmanifesto opened this issue 4 years ago • 16 comments

Per instructions following here: https://wiki.ryzom.dev/development/quickstart_windows I get this message for access log and error log: image

but mariadb phpadmin and ngnix loads up fine with no issues: image But when attempting to to goto the local site i get the following message and can not continue any further: image

acidmanifesto avatar Nov 27 '21 17:11 acidmanifesto

What's your full path where you extracted everything?

There may still be issues with spaces in paths. Also, very long paths will give errors under Windows.

kaetemi avatar Dec 20 '21 04:12 kaetemi

Path is d:\ryzomcore\

acidmanifesto avatar Dec 20 '21 14:12 acidmanifesto

Which version of Windows?

kaetemi avatar Dec 20 '21 14:12 kaetemi

Windows 10 x64 pro

acidmanifesto avatar Dec 20 '21 14:12 acidmanifesto

Any visible errors if you run web_on.bat from command line?

kaetemi avatar Dec 20 '21 14:12 kaetemi

None that i am able to scroll and see. Redownloaded the project files 3 times in total. Still the same thing. Running it as a local. No fancy antivirus or firwall besides windows defender if that helps any.

acidmanifesto avatar Dec 20 '21 14:12 acidmanifesto

What's the contents of external/nginx/conf/nginx.conf?

kaetemi avatar Dec 20 '21 14:12 kaetemi

image Contents is blank

acidmanifesto avatar Dec 20 '21 15:12 acidmanifesto

Example contents should be

worker_processes  1;
events {
    worker_connections  1024;
}
http {
    include       mime.types;
    default_type  application/octet-stream;
    sendfile        on;
    keepalive_timeout  65;
    server {
        listen       9042;
        server_name  localhost;
        root         Y:/ryzomcore4/code/web/public_php;
        index        index.php index.html index.htm;
        location ~ /\.ht {
            deny  all;
        }
        location /phpmyadmin {
            root  Y:/ryzomcore4/external;
            location ~ ^/phpmyadmin/(.+\.php)$ {
                fastcgi_pass   127.0.0.1:9041;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;
                include        fastcgi_params;
            }
        }
        location ~ \.php$ {
            fastcgi_pass   127.0.0.1:9041;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;
            include        fastcgi_params;
        }
    }
}

(With the appropriate paths.)

kaetemi avatar Dec 21 '21 05:12 kaetemi

This is generated by external/nginx_setup.bat

kaetemi avatar Dec 21 '21 05:12 kaetemi

After running that nginx_setup.bat i do end up with the follow, i did not modify anything:

events {
    worker_connections  1024;
}
http {
    include       mime.types;
    default_type  application/octet-stream;
    sendfile        on;
    keepalive_timeout  65;
    server {
        listen       9042;
        server_name  localhost;
        root         /code/web/public_php;
        index        index.php index.html index.htm;
        location ~ /\.ht {
            deny  all;
        }
        location /phpmyadmin {
            root  /external;
            location ~ ^/phpmyadmin/(.+\.php)$ {
                fastcgi_pass   127.0.0.1:9041;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;
                include        fastcgi_params;
            }
        }
        location ~ \.php$ {
            fastcgi_pass   127.0.0.1:9041;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;
            include        fastcgi_params;
        }
    }
}

However, even after doing that and restarting everything. I still get the error on the browser. image

acidmanifesto avatar Dec 21 '21 18:12 acidmanifesto

Yes, your root entries are not getting filled in.

kaetemi avatar Dec 29 '21 08:12 kaetemi

Yes, your root entries are not getting filled in.

Any way to correct that?

acidmanifesto avatar Dec 30 '21 13:12 acidmanifesto

Does your Windows installation have PowerShell installed?

kaetemi avatar Jan 12 '22 02:01 kaetemi

currently it has the powershell that is built in to windows 10 pro. image

acidmanifesto avatar Jan 12 '22 23:01 acidmanifesto

Ok. I'm rewriting the quick start scripts. Should be fixed on next release.

kaetemi avatar Jan 28 '22 01:01 kaetemi

This should be fixed now. Reopen if it still happens.

kaetemi avatar Feb 20 '23 23:02 kaetemi