Hello from Ukraine!I downloaded this server client and sory for noob question but what i have to do if console have writed me "Couldn`t find PHP Binary in PATH"?I have Windows 7 and don`t know what to do
Hello from Ukraine!I downloaded this server client and sory for noob question but what i have to do if console have writed me "Couldn`t find PHP Binary in PATH"?I have Windows 7 and don`t know what to do
thats becuse you have used PATH insted of your php path
Hello from Ukraine!I downloaded this server client and sory for noob question but what i have to do if console have writed me "Couldn`t find PHP Binary in PATH"?I have Windows 7 and don`t know what to do
Go to your advanced system settings (one of the tabs in the window that pops up when you press windows+pause buttons on your keyboard). Scroll down to environment variables and look for the one called PATH. To the end of it, add the absolute directory of your php installation (ie C:\PHP if you installed it there.
Does some one want to help me out and make a really in depth tutorial? I have no idea on how to set this up. Pardon me if there is one already.
Alright, here's a real simple breakdown of the process.
Setting Up the PHP MCPE Server for Your First Time Step 1a - Getting PHP Onto Your Computer: Download ChrisMCMine's PHP auto-extractor here: http://php.server.chrismcmine.de - It is most convenient to use ChrisMCMine's program because it comes with all the PHP extensions we need pre-configured, loaded, and also enabled within the php.ini file. - Yes, the included MCPE Server files are outdated. Yes, we will fix that in the next steps.
Step 1b - Extracting the Files: Run the auto-extractor you just downloaded. Part-way through, the program will ask to run with administrator privileges; click "Yes," then at the Windows dialog click "Yes" again to allow for proper installation of the files. - If the program asks to replace/update/overwrite any files, click "Yes" to all. - You should find the resulting files in the root of your C:\ drive, with most of them being in a new folder labelled "php." Other new files extracted to your C:\ drive will be: - README.txt (Which you won't really need to read as long as you follow this guide) - start_server.bat (Used to run the bulk of the server) - start_commands.bat (Used to send typed commands to the server, i.e. /tp, /save-all, /stop, etc.)
Step 2a - Getting the MCPE Server Files Up-To-Date: For the latest version of the MCPE Server, visit the GitHub repository: http://github.com/shoghicp/Pocket-Minecraft-PHP
Click the button on the repository page to download the latest MCPE Server files as a .zip archive.
Step 2b - Extracting More Files (for the server): Open the .zip archive you just downloaded. Select all files within the archive, and either drag-and-drop or use your archive-viewing software's "Extract" option to extract all files directly into your new folder, C:\php\. You will be asked if you want to overwrite the files, and of course, the answer is "yes to all." - IMPORTANT: Each time a new MCPE Server update is released, rinse and repeat steps 2a-b in order to update your own server. Make sure that your server is not running whenever you attempt to overwrite and update these files.
Step 3a - Adding A World: It is very important to note that in its current state, the PHP MCPE Server will not generate a new, random world for you, unlike the official Minecraft PC server. Therefore, we must supply our own world files to get things rolling. For the sake of simplicity, I have created an archive with all the files we will need to sample this process with a "default" world. Download this archive here: http://mirror.decidel.net/MCPE%20World%20Files%20-%20Default.zip - See the commentary after Step 3b for instruction on adding your own worlds.
Step 3b - Extracting the Above "Default" World: We get to extract more files! Having fun yet? Okay, now, in Windows Explorer, navigate to C:\php\data\maps\. Extract all the files from the .zip archive I provided above, directly into this folder. This is all we need to do; the server will take care of the rest. - To get your own MCPE world onto your server, have the world created on your device. You may also use a pre-existing world. Connect the device to your computer, and if using Android, navigate to YourDevice\sdcard\games\com.mojang\minecraftWorlds\YourWorldName. From there, copy the "chunks," "entities," and "level" .dat files directly into the C:\php\data\maps\ folder mentioned above. - This process must be repeated to change your server over to a different world, as well. If changing to a different world, be sure to back up your current world files, and be sure not to replace or modify the world files while your server is running.
Step 4 - Running the Server: To run the server on your computer, simply navigate to your C:\ drive in Windows Explorer, and double-click/run the "start_server.bat" file. The server will start up without a hitch. O, the glorioius server-starting flood-o-text.
Step 5 - Controlling Your Server With Commands: Also in the C:\ drive is the "start_commands.bat" file. After starting up your server, run this file. Immediately type "help" and press Enter. Nothing will appear to have happened, however: in the other window for "start_server.bat," displayed is a list of server commands available to use. - Use the "start_commands.bat" window to send any and all other commands to your MCPE Server. - All resulting output from "start_commands.bat" will be shown in the window for "start_server.bat." - "start_commands.bat" will do nothing if "start_server.bat" is not running.
And voila! You now know how to run, control, worldify, and update your newly-installed PHP Server for Minecraft Pocket Edition.
I will not cover details on port forwarding or connecting to servers across the internet with MCPE, as there are plenty of existing tutorials for those things (especially port-forwarding; there are probably tutorials for that on the servers section of the Minecraft wiki, even).
I will, however, inform you that as long as your unmodified-MCPE-running device is on the same wifi network as your server computer, you should be able to easily find and join your PHP MCPE Server world from your device.
Final Note - Server Properties: You will most likely want to modify the "server.properties" file before you really get your server going, especially to set the default spawn point to somewhere other than the bottom corner of the world. Find this file in the C:\php\ folder, and open it with Notepad or your personal favorite text editor. Many of the property lines are self-explanatory, but here are some you may want to take note of/change: spawn: You will want to change this. To set the world spawn to the center of your world (and a little higher so the player is less likely to spawn inside blocks), change this line to:
spawn=127;100;127
port, protocol: Don't touch these (unless you know what you're doing). Port is the port which other MCPE clients must connect to, and this cannot be changed in MCPE unless the player has a modified client. Protocol represents the version of MCPE your particular server build is compliant with, which in this case is "5" for MCPE v0.5.0. gamemode: If you're at all familiar with Minecraft PC servers or the "cheat" commands in Minecraft PC single-player, you probably know what's up here. Set it to 0 for survival mode, 1 for creative mode. I don't recommend changing this while the server is running.
And that's all for now, y'all. I may in the future write some brief tutorials for changing the server's install directory, and/or using the new "start.cmd" provided by shoghcip, which unifies command input and server output into one single window. But for now: Saber Mage, over and out.
10:40:34 [NOTICE] Player data not found for "JY", creating new
10:40:37 [ERROR] [SQL Error] no such table: players. Query: SELECT ip,port FROM players WHERE EID = (SELECT EID FROM entities WHERE health < 20);
10:40:42 [ERROR] [SQL Error] no such table: players. Query: SELECT ip,port FROM players WHERE EID = (SELECT EID FROM entities WHERE health < 20);
[ERROR] [SQL Error] no such table: players. Query: SELECT ip,port FROM players WHERE EID = (SELECT EID FROM entities WHERE health < 20);
What's this?
This is while the server is turned on, double-click the start.cmd the
Also, my map porting doesn't work I put the save files into the maps folder, but I still see the same map. The program says that it's importing, but it just makes a folder of the map.
I believe so, I downloaded the files and replaced the old ones with the new ones
Click on an image to view the section rules!
Yeah, no problem, I guess I could be your bug finder guy.
Click on an image to view the section rules!
-
Hello from Ukraine!I downloaded this server client and sory for noob question but what i have to do if console have writed me "Couldn`t find PHP Binary in PATH"?I have Windows 7 and don`t know what to do
CEO at filfat Studios
Go to your advanced system settings (one of the tabs in the window that pops up when you press windows+pause buttons on your keyboard). Scroll down to environment variables and look for the one called PATH. To the end of it, add the absolute directory of your php installation (ie C:\PHP if you installed it there.
Check out my iOS Mods!
Alright, here's a real simple breakdown of the process.
Setting Up the PHP MCPE Server for Your First Time
Step 1a - Getting PHP Onto Your Computer: Download ChrisMCMine's PHP auto-extractor here: http://php.server.chrismcmine.de
- It is most convenient to use ChrisMCMine's program because it comes with all the PHP extensions we need pre-configured, loaded, and also enabled within the php.ini file.
- Yes, the included MCPE Server files are outdated. Yes, we will fix that in the next steps.
Step 1b - Extracting the Files: Run the auto-extractor you just downloaded. Part-way through, the program will ask to run with administrator privileges; click "Yes," then at the Windows dialog click "Yes" again to allow for proper installation of the files.
- If the program asks to replace/update/overwrite any files, click "Yes" to all.
- You should find the resulting files in the root of your C:\ drive, with most of them being in a new folder labelled "php." Other new files extracted to your C:\ drive will be:
- README.txt (Which you won't really need to read as long as you follow this guide)
- start_server.bat (Used to run the bulk of the server)
- start_commands.bat (Used to send typed commands to the server, i.e. /tp, /save-all, /stop, etc.)
Step 2a - Getting the MCPE Server Files Up-To-Date: For the latest version of the MCPE Server, visit the GitHub repository: http://github.com/shoghicp/Pocket-Minecraft-PHP
Click the button on the repository page to download the latest MCPE Server files as a .zip archive.
Step 2b - Extracting More Files (for the server): Open the .zip archive you just downloaded. Select all files within the archive, and either drag-and-drop or use your archive-viewing software's "Extract" option to extract all files directly into your new folder, C:\php\. You will be asked if you want to overwrite the files, and of course, the answer is "yes to all."
- IMPORTANT: Each time a new MCPE Server update is released, rinse and repeat steps 2a-b in order to update your own server. Make sure that your server is not running whenever you attempt to overwrite and update these files.
Step 3a - Adding A World: It is very important to note that in its current state, the PHP MCPE Server will not generate a new, random world for you, unlike the official Minecraft PC server. Therefore, we must supply our own world files to get things rolling. For the sake of simplicity, I have created an archive with all the files we will need to sample this process with a "default" world. Download this archive here: http://mirror.decidel.net/MCPE%20World%20Files%20-%20Default.zip
- See the commentary after Step 3b for instruction on adding your own worlds.
Step 3b - Extracting the Above "Default" World: We get to extract more files! Having fun yet? Okay, now, in Windows Explorer, navigate to C:\php\data\maps\. Extract all the files from the .zip archive I provided above, directly into this folder. This is all we need to do; the server will take care of the rest.
- To get your own MCPE world onto your server, have the world created on your device. You may also use a pre-existing world. Connect the device to your computer, and if using Android, navigate to YourDevice\sdcard\games\com.mojang\minecraftWorlds\YourWorldName. From there, copy the "chunks," "entities," and "level" .dat files directly into the C:\php\data\maps\ folder mentioned above.
- This process must be repeated to change your server over to a different world, as well. If changing to a different world, be sure to back up your current world files, and be sure not to replace or modify the world files while your server is running.
Step 4 - Running the Server: To run the server on your computer, simply navigate to your C:\ drive in Windows Explorer, and double-click/run the "start_server.bat" file. The server will start up without a hitch.
O, the glorioius server-starting flood-o-text.
Step 5 - Controlling Your Server With Commands: Also in the C:\ drive is the "start_commands.bat" file. After starting up your server, run this file. Immediately type "help" and press Enter. Nothing will appear to have happened, however: in the other window for "start_server.bat," displayed is a list of server commands available to use.
- Use the "start_commands.bat" window to send any and all other commands to your MCPE Server.
- All resulting output from "start_commands.bat" will be shown in the window for "start_server.bat."
- "start_commands.bat" will do nothing if "start_server.bat" is not running.
And voila! You now know how to run, control, worldify, and update your newly-installed PHP Server for Minecraft Pocket Edition.
I will not cover details on port forwarding or connecting to servers across the internet with MCPE, as there are plenty of existing tutorials for those things (especially port-forwarding; there are probably tutorials for that on the servers section of the Minecraft wiki, even).
I will, however, inform you that as long as your unmodified-MCPE-running device is on the same wifi network as your server computer, you should be able to easily find and join your PHP MCPE Server world from your device.
Final Note - Server Properties: You will most likely want to modify the "server.properties" file before you really get your server going, especially to set the default spawn point to somewhere other than the bottom corner of the world. Find this file in the C:\php\ folder, and open it with Notepad or your personal favorite text editor. Many of the property lines are self-explanatory, but here are some you may want to take note of/change:
spawn: You will want to change this. To set the world spawn to the center of your world (and a little higher so the player is less likely to spawn inside blocks), change this line to:
port, protocol: Don't touch these (unless you know what you're doing). Port is the port which other MCPE clients must connect to, and this cannot be changed in MCPE unless the player has a modified client. Protocol represents the version of MCPE your particular server build is compliant with, which in this case is "5" for MCPE v0.5.0.
gamemode: If you're at all familiar with Minecraft PC servers or the "cheat" commands in Minecraft PC single-player, you probably know what's up here. Set it to 0 for survival mode, 1 for creative mode. I don't recommend changing this while the server is running.
And that's all for now, y'all. I may in the future write some brief tutorials for changing the server's install directory, and/or using the new "start.cmd" provided by shoghcip, which unifies command input and server output into one single window. But for now: Saber Mage, over and out.
10:40:34 [NOTICE] Player data not found for "JY", creating new10:40:37 [ERROR] [SQL Error] no such table: players. Query: SELECT ip,port FROM players WHERE EID = (SELECT EID FROM entities WHERE health < 20);
10:40:42 [ERROR] [SQL Error] no such table: players. Query: SELECT ip,port FROM players WHERE EID = (SELECT EID FROM entities WHERE health < 20);
[ERROR] [SQL Error] no such table: players. Query: SELECT ip,port FROM players WHERE EID = (SELECT EID FROM entities WHERE health < 20);
What's this?
This is while the server is turned on, double-click the start.cmd the
I'm sorry I'm not good at English...
CEO at filfat Studios
Nice instructions! It will help a lot of people
Click on an image to view the section rules!
Also, my map porting doesn't work I put the save files into the maps folder, but I still see the same map. The program says that it's importing, but it just makes a folder of the map.
Click on an image to view the section rules!
Sorry if this is a silly question, but where are the server properties? Do I open the server file? If so, what program do I use to open it?
Click on an image to view the section rules!
Thanks, I got it
Click on an image to view the section rules!