Error 404 with php game, but the page is there (ezRPG)

Posted 05 October 2012 - 05:15 PM

I understand that Error 404 refers to that a page is missing or not available, but the fact of the matter is that it is there as I put it there. Now let me just say this; the original files were all taken from ezRPG which is an open-source project available to anyone, both editing and just uploading. Now I have uploaded them all to my server, which does support PHP and mysql, so I do not understand why it is not allowing me to even access the index page.

I don't know how to explain my problem anymore than that, but if you ask I can certainly answer to the best of my abilities.

Stages I went through-
-Downloaded the ezRPG code from the following link; ezRPG DL(link)
-Uploaded it to my host that does support PHP and mysql; uploaded every single file and in the correct directories.
-Tried fixing the problem myself and failed.
-Googled solutions, but only ran into the same thing. "Error 404 implies that a page does not exist or incorrect address". Which both are incorrect, as I know the exact directory for it, both public and hidden through my domain.

Replies To: Error 404 with php game, but the page is there (ezRPG)

Re: Error 404 with php game, but the page is there (ezRPG)

There could be a multitude of errors - which will be damn hard for anyone to cut through that's not right there (especially with statements like "Tried fixing the problem myself and failed").

Are you supporting the right version of php for this setup? Do you need to crack open a new virtual directory to it? Is there a DB component you are missing? Login credentials? The issue is most likely your server isn't making the connection and not the install.. though that would be a second guess.

Re: Error 404 with php game, but the page is there (ezRPG)

Posted 05 October 2012 - 05:40 PM

First off, Thank you for your speedy reply. Well to be honest, I do not know the issue as this is my first attempt at making a web-browser persistent browser-based game. That is why I used the codes provided by ezRPG. Unfortunately, they no longer have a support forum or else I would asked there.

As far as I can tell the PHP is acceptable by the host/server, as the server clearly states it supports PHP and Mysql. I have also opened a 'Support Ticket' through the host itself, but I don't see them being of to much aid. I successfully set up my own homepage for the site, but as for the game itself; there is so damn many indexs and directories that I have dried my eyes out looking through all of them. Each and every time I went to open and edit them, I just seemed to run into indexs that were just connecting one to another. Such as log-in forms and such as that. Which they should be, but as for PHP is concerned I am confused.

I guess I could post some of the code here, but I wouldn't know where to begin. Giving someone access to the site is a bit risky, but if need be; need be.

Re: Error 404 with php game, but the page is there (ezRPG)

Posted 05 October 2012 - 07:29 PM

Seeing as the 'Edit' button is eluding me, sorry for the double-post. Here is the code to the config.php and the install.php. I can't even access the install.php page to actually install the game or whathaveyou, without going to edit it. Also you may notice a 'secret key' within the config.php, but that is not mine just a default value. It's used to connect to 'their' servers; which is not a requirement or anything. The game shall be ran by my own server.

config.php(Of course I removed the password, because I'm posting it here)

<?php
//This file cannot be viewed, it must be included
defined('IN_EZRPG') or exit;
/*
Title: Config
The most important settings for the game are set here.
*/
/*
Variables: Database Connection
Connection settings for the database.
$config_server - http://legendofthesamurai.netau.net/
$config_dbname - a7875695_legend
$config_username - a7875695_admin
$config_password - youwishblahblahblah
$config_driver - mysql7.000webhost.com
*/
$config_server = 'mysql7.000webhost.com';
$config_dbname = 'a7875695_legend';
$config_username = 'a7875695_admin';
$config_password = 'youwishblahblahblah';
$config_driver = 'mysql7.000webhost.com';
/*
Constant:
This secret key is used in the hashing of player passwords and other important data.
Secret keys can be of any length, however longer keys are more effective.
This should only ever be set ONCE! Any changes to it will cause your game to break!
You should save a copy of the key on your computer, just in case the secret key is lost or accidentally changed,.
SECRET_KEY - A long string of random characters.
*/
define('SECRET_KEY', '692SdIZ3wVm?xzCod9r:zK]#');
/*
Constants: Settings
Various settings used in ezRPG.
DB_PREFIX - Prefix to the table names
VERSION - Version of ezRPG
SHOW_ERRORS - Turn on to show PHP errors.
DEBUG_MODE - Turn on to show database errors and debug information.
*/
define('DB_PREFIX', 'LegendofSamurai');
define('VERSION', '1.0');
define('SHOW_ERRORS', 0);
define('DEBUG_MODE', 0);
?>

Re: Error 404 with php game, but the page is there (ezRPG)

Posted 05 October 2012 - 07:54 PM

I can access the files, but only in 'File Management', in my Admin Control Panel. I can not access the pages like a guest would. The Server software is as followed;
Note- I could list everything, but I will just list the jist of everything.

Re: Error 404 with php game, but the page is there (ezRPG)

Look.. their main site's non existent and you can't seem to configure your webserver to use it. It might be high time to move on to something that's not going to blow up.

The host site works just fine, unless you are referring to the ezRPG website; then you would be correct. As for the code I don't know why it doesn't work and it seems you can't figure it out either. Perhaps you could point me into the right direction? As I would very much enjoy crafting my own persistent browser-based RPG game. Though I would prefer a template of some sort, I do not really want to draft up every single bit of code.

Re: Error 404 with php game, but the page is there (ezRPG)

Posted 05 October 2012 - 10:04 PM

Quote

As for the code I don't know why it doesn't work and it seems you can't figure it out either

Yes.. because of the lack of information presented and not having the 'hands on'-ness of working with the server directly. How about you talk to the people that made the software. I would wager they might know a bit more about how to install it right than folk who never have heard of it.

Re: Error 404 with php game, but the page is there (ezRPG)

Posted 05 October 2012 - 10:24 PM

I provided the parts of the code that were not working to the best of my knowledge. I don't know what else more I can provide for you...I'm especially not fond of allowing others access to my Admin Control Panel, for obvious reasons. There also seems to be no way to contact the original writers of said code, especially since their support forums and their website has been closed.

So as for your comment about lack of information provided is a bit rash, I'd have to say. I came here looking for help, not a hand out. I am more than willing to put forth the effort; I just need a leg-up.

Re: Error 404 with php game, but the page is there (ezRPG)

That's the problem - low impact chunk of code, a multitude of variable issues with the environment, and no support.

You are fixated on a chunk of code that isn't working and is not being supported.

This is the time you need to take an earnest look and reevaluate what you are using. I don't have the time, nor inclination, to try and install this on a VM tonight. What I do suggest is going back to the well and finding an alternative and keep moving forward.

Re: Error 404 with php game, but the page is there (ezRPG)

Posted 06 October 2012 - 09:11 AM

ShibataTim, on 05 October 2012 - 08:10 PM, said:

Perhaps you could point me into the right direction? As I would very much enjoy crafting my own persistent browser-based RPG game. Though I would prefer a template of some sort, I do not really want to draft up every single bit of code.

ShibataTim, on 05 October 2012 - 10:24 PM, said:

I came here looking for help, not a hand out. I am more than willing to put forth the effort; I just need a leg-up.

Re: Error 404 with php game, but the page is there (ezRPG)

Posted 06 October 2012 - 01:00 PM

I am not sure how that post was even responsive to anything said, but for the record, regardless of your tone, I dumped this on my local dev server and it ran fine. Again - it's an environment problem you have with your setup not an issue with the app. As for diagnosing it - who knows. Either learn more about permissions, server maintenance, and so forth by running a local server setup (I suggest XAMPP) or find something that works better for you.

Re: Error 404 with php game, but the page is there (ezRPG)

Posted 06 October 2012 - 03:42 PM

I don't know what the server could have to do with it, but I guess everything. I followed the very limited provided instructions to the tee and still no success. I sent the files through an FTP and so the files are exactly the same and in the exact directories. Maybe that is an issue?