ryzom / ryzomcore

Ryzom Core is the open-source project related to the Ryzom game. This community repository is synchronized with the Ryzom Forge repository, based on the Core branch.
https://wiki.ryzom.dev
GNU Affero General Public License v3.0
337 stars 90 forks source link

web_on.bat per instructions will not find correct files #653

Closed acidmanifesto closed 1 year ago

acidmanifesto commented 2 years ago

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

kaetemi commented 2 years ago

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.

acidmanifesto commented 2 years ago

Path is d:\ryzomcore\

kaetemi commented 2 years ago

Which version of Windows?

acidmanifesto commented 2 years ago

Windows 10 x64 pro

kaetemi commented 2 years ago

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

acidmanifesto commented 2 years ago

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.

kaetemi commented 2 years ago

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

acidmanifesto commented 2 years ago

image Contents is blank

kaetemi commented 2 years ago

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 commented 2 years ago

This is generated by external/nginx_setup.bat

acidmanifesto commented 2 years ago

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

kaetemi commented 2 years ago

Yes, your root entries are not getting filled in.

acidmanifesto commented 2 years ago

Yes, your root entries are not getting filled in.

Any way to correct that?

kaetemi commented 2 years ago

Does your Windows installation have PowerShell installed?

acidmanifesto commented 2 years ago

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

kaetemi commented 2 years ago

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

kaetemi commented 1 year ago

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