Php and Node js

I am hosting a game on replit its called ogar3 its basically a local agar the repo is here https://github.com/Anon10104/Ogar3 I am hosting this on replit bc its free and my and my friends can upload our own skins but I think since the replit is running node.js I think it’s not working with the checkdir.php and the skins folder is not on the server does anyone have a potential fix?
also here the website https://anon10104.gq/ where the game is hosted

Try making a new NodeJS Repl and entering the following commands in the shell:

git clone git:github.com/Faris90/Ogar3.git Ogar3
npm install ./Ogar3	
npm start

Also try adding pkgs.php82 to the replit.nix file.

1 Like

how would i add pkgs.php82 to replit.nix please explain more

i also get
Cloning into ‘Ogar3’…
error: cannot run ssh: No such file or directory
fatal: unable to fork

Your replit.nix file probably looks something like this:

{ pkgs }: {
	deps = [
		pkgs.nodejs-18_x
		pkgs.nodePackages.typescript-language-server
		pkgs.yarn
		pkgs.replitPackages.jest
	];
}

Just add that line like this:

{ pkgs }: {
	deps = [
		pkgs.nodejs-18_x
		pkgs.nodePackages.typescript-language-server
		pkgs.yarn
		pkgs.replitPackages.jest
		pkgs.php82
	];
}
1 Like