Open mftkww opened 11 months ago
Make sure that _filters.txt is set up to point "/world" at desktop.html
Make sure that _filters.txt is set up to point "/world" at desktop.html
![]()
I am sure
Can you try going to localhost:8080/desktop.html
Can you try going to localhost:8080/desktop.html
It was so.
@rbxb
It looks like you are using your own software to serve the web pages.
What are you using and what is the goal?
What do I need to use? My operating system is Windows Server 2019.
You don't need to use the apache server. Place has its own built in web server. Does it give you an error when you try to run place on port 8080?
@rbxb
That error message is a good sign because it was made by place rather than apache so we are on the right track.
What does it look like if you go to /desktop.html ?
@rbxb
It looks like place is running correctly but it can't find the web/root folder. It's difficult for me to figure out why from here.
Double check that the path in the -root argument is correct.
Did you add anything to any of the _filter.txt files?
@rbxb Thank you, it worked. Is it possible to run things like php, mysql, phpmyadmin on it?
Not with the built in web server but you can use your apache server in combination with place.
Run the apache server and place on different ports. You will access the web pages through the apache server and place will have the API.
So your apache server might be on port 8080 and place would be on port 8081.
You will also have to modify the webpage to give it the correct address. In place.js modify these lines:
let host = window.location.hostname;
let port = window.location.port;
// replace with
let host = localhost;
let port = 8081;
Not with the built in web server but you can use your apache server in combination with place.
Run the apache server and place on different ports. You will access the web pages through the apache server and place will have the API.
So your apache server might be on port 8080 and place would be on port 8081.
You will also have to modify the webpage to give it the correct address. In place.js modify these lines:
let host = window.location.hostname; let port = window.location.port; // replace with let host = localhost; let port = 8081;
thank you
@rbxb
why did this happen?
@rbxb
I gave you bad advice before but here is a better solution.
In _filters.txt use #proxy to connect with the PHP server.
Here is the documentation for #proxy
If your PHP server is on port 8080 then it might look like this:
#serve
world desktop.html
3d 3dcanvas.html
#proxy
admin.php http://192.168.1.6:8080
logout.php http://192.168.1.6:8080
With your PHP server on port 8080 and place on port 8081, you would access the admin page at this URL: http://localhost:8081/admin.php
Also the modifications to place.js aren't necessary.
I gave you bad advice before but here is a better solution.
In _filters.txt use #proxy to connect with the PHP server.
Here is the documentation for #proxy
If your PHP server is on port 8080 then it might look like this:
#serve world desktop.html 3d 3dcanvas.html #proxy admin http://localhost:8080/admin.php logout http://localhost:8080/logout.php
With your PHP server on port 8080 and place on port 8081, you would access the admin page at this URL: http://localhost:8081/admin
Also the modifications to place.js aren't necessary.
It didn't work, is there something like installing PHP directly?
@rbxb
What specifically doesn't work? What are you using as the PHP server?
What specifically doesn't work? What are you using as the PHP server?
PHP server is installed but I don't know how to run it in game files.
Run the PHP server separately.
In the terminal, cd into the folder that contains the PHP files and then start the PHP server.
Open another terminal tab and start place.
Also, you are able to use * in the filter to select any PHP files like this:
#proxy *.php http://192.168.1.6:8080
Any request that has .php in the path will be forwarded to your PHP server that is running on port 8080.
Also, you are able to use * in the filter to select any PHP files like this:
#proxy *.php http://192.168.1.6:8080
Any request that has .php in the path will be forwarded to your PHP server that is running on port 8080.
Reference in
The Internal Error happens because the PHP server is not working.
How do I run PHP Server?
I don't know what software you are using specifically but this might help:
https://www.php.net/manual/en/features.commandline.webserver.php
I don't know what software you are using specifically but this might help:
https://www.php.net/manual/en/features.commandline.webserver.php
Thank you, when you set the map to 4096x4096, a black screen appears on mobile phones. What is the reason of this?