A problem...

Status
Not open for further replies.

kyledude92107

New Member
Messages
31
Reaction score
0
Points
0
Code:
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@gamerslounge.exofire.net and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8b mod_mono/1.2.6 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at gamerslounge.exofire.net Port 80

:shifty:... What? I uploaded the forum software that I was putting on my server, and it won't work... Is it possibly because the software came with an htaccess file included? That struck me as odd...
Edit:
Got it. It was the htaccess. Please close.
 
Last edited:

kyledude92107

New Member
Messages
31
Reaction score
0
Points
0
Wait... Now when I finish step one, it simply redirects me to a page without the .php tag when I click 'Next'...

He's the code. Fix please?

Code:
<?php
   /*
      Automatic installation script for zenFyre
      By Raijin
   */
   define('RELATIVE_DIR', 'zf/');
?>
<html><head><title>zenFyre Installation</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<link rel="stylesheet" type="text/css" href="<?=RELATIVE_DIR?>styles/dark.css" />
</head>
<body>
<table width="100%" border="0"><tr><td align="center" colspan="2">
<font size="6"><b>zenFyre Installation</b></font></td></tr>

<?php
if (strpos(file_get_contents(RELATIVE_DIR . 'settings.inc.php'), '$_CONFIG'))
{
?>
<tr><td class="a" align="center">Notice!</td></tr>
<tr><td class="d">You seem to have an already configured zenFyre installation in your specified directory.</td></tr>
<?php
}
else if (isset($_POST['next2'])) {
//Define variables.
$db = array(
   'host' => $_POST['db_host'],
   'user' => $_POST['db_user'],
   'pass' => $_POST['db_pass'],
   'name' => $_POST['db_name']
);

$board = array(
   'name' => $_POST['board_name'],
   'url' => $_POST['board_url'],
   'tags' => $_POST['board_tags']
);

$user = array(
   'name' => $_POST['user_name'],
   'pass' => $_POST['user_pass'],
   'email' => $_POST['user_email']
);

//Connect and see if everything works right.
$db['db'] = @mysql_connect($db['host'], $db['user'], $db['pass']) or $error = 'Your database connection information did not work. Connection failed.';
@mysql_select_db($db['name'], $db['db']) or $error = 'Failed to connect to the database. Please check that you have permission to access this database.';

if (mysql_query('SELECT * FROM `config`', $db['db'])) $error = 'It seems you have an already-installed database. Please clear it before reinstall zF.';

if (!isset($error))
{
//Read the default SQL file for the basic board structure.
$mysql = explode(";\r\n", file_get_contents('sql.txt'));

//Add the extra queries to the array.
$mysql = array_merge($mysql, array(
   'INSERT INTO `users` (`level`, `username`, `userpass`, `email`, `regsec`, `reg_ip`, `reg_email`) VALUES (\'60\', \''.$user['name'].'\', \''.md5(md5($user['pass'])).'\', \''.$user['email'].'\', \''.time().'\', \''.$_SERVER['REMOTE_ADDR'].'\', \''.$user['email'].'\')',
   'INSERT INTO `config` VALUES (1, \'mbsname\', \''.$board['name'].'\', \'Board Name\', \'text\', 1, \'\', 40, 1)',
   'INSERT INTO `config` VALUES (2, \'mbsurl\', \''.$board['url'].'\', \'Board URL\', \'text\', 1, \'Full board URL without trailing /\', 50, 2)',
   'INSERT INTO `config` VALUES (3, \'legal_tags\', \''.$board['tags'].'\', \'Legal Tags\', \'text\', 2, \'Legal tags in posting (without items), seperated by |\', 255, 1)'
));

foreach ($mysql as $query)
{
   mysql_query($query,$db['db']);
   if (mysql_error()) {
      $error = 'MySQL Error! Text: '.htmlentities(mysql_error()).' Query: '.htmlentities($query);
      break;
   }
}
}

//Okay, time to fill out settings.inc.php
if (!isset($error)) {
   $handler = fopen(RELATIVE_DIR . 'settings.inc.php', 'w');
   $write_file = '<?php
$_CONFIG[\'mbsname\'] = \''.$board['name'].'\';  // Only used for DB errors.
$_MYSQL[\'dbhost\'] = \''.$db['host'].'\';       // Database host, usually localhost
$_MYSQL[\'dbuser\'] = \''.$db['user'].'\';          // Database username
$_MYSQL[\'dbpass\'] = \''.$db['pass'].'\';                // Database password
$_MYSQL[\'dbname\'] = \''.$db['name'].'\';          // Database name
?>';
   fwrite($handler, $write_file);
   fclose($handler);
?>
<tr><td class="a">All done!</td></tr>
<tr><td class="d">The automated configuration process is now done. Please <a href="http://forums.x10hosting.com/free-hosting/<?=RELATIVE_DIR?>login">log in</a> to your administrator account to change settings and make boards. Or you can proceed to the <a href="http://forums.x10hosting.com/free-hosting/index">Index</a>.<br /><br />
Also, you should now delete install.php and sql.txt, even though they should pose no security risk now.
</td></tr>
<?php
}
else {
?>
<tr><td class="a">ERROR!</td></tr>
<tr><td class="d"><?=$error?></td></tr>
<?php
}}
else if (isset($_POST['next1'])) {
if (!is_writable(RELATIVE_DIR . 'settings.inc.php')) {
?>
<tr><td class="a" align="center">Error!</td></tr>
<tr><td class="d"><?=RELATIVE_DIR?>settings.inc.php is not writable! This problem needs to be fixed before installation can commence.</td></tr>
<?php
}
else {
?>
<tr><td class="a" align="center">Basic Configuration [Step 2]</td></tr>
<tr><td class="c">
Next we will fill out the basic configuration for the boards. After this step, your database will be built and the boards will automatically be configured.
</td></tr>
<form action="install" method="post">
<table width="100%" border="0">
<tr><td class="b" align="center" colspan="2">Database Information</td></tr>
<tr><td class="c" colspan="2">Please take a moment to fill out your MySQL database connection information, this will set up the boards to access your database, so the tables and information can be generated.</td></tr>
<tr><td class="d"><b>Database Host:</b></td><td class="d"><input type="text" name="db_host" value="localhost" /> In 99% of cases, this is localhost</td></tr>
<tr><td class="d"><b>Database User:</b></td><td class="d"><input type="text" name="db_user" /> The MySQL user you use to connect to your database.</td></tr>
<tr><td class="d"><b>Database Password:</b></td><td class="d"><input type="text" name="db_pass" /> The password you will use to connect to your database. [Leave blank if there's no password.]</td></tr>
<tr><td class="d"><b>Database Name:</b></td><td class="d"><input type="text" name="db_name" /> The name of the database you will be using.</td></tr>
</table>

<table width="100%" border="0">
<tr><td class="b" align="center" colspan="2">Board Configuration</td></tr>
<tr><td class="c" colspan="2">Now we need to fill out your basic board information. This contains your board name, url, and the default HTML tags you want for users. These can all be changed from the control panel.</td></tr>
<tr><td class="d"><b>Board Name:</b></td><td class="d"><input type="text" name="board_name" value="zenFyre" /> The name of your message board.</td></tr>
<tr><td class="d"><b>Board URL:</b></td><td class="d"><input type="text" name="board_url" value="http://<?=$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])?>/zf" /> The URL to your board. Used for registration, it should be auto-generated correctly, but please double-check it. <b>No trailing slash. "/"</b></td></tr>
<tr><td class="d"><b>Default HTML:</b></td><td class="d"><input type="text" name="board_tags" value="b|i|php" /> The default tags that all users can use. Change to whatever you want.</td></tr>
</table>

<table width="100%" border="0">
<tr><td class="b" align="center" colspan="2">Administrator Account</td></tr>
<tr><td class="c" colspan="2">Now we will fill out the information for an administrator account. This account will be auto-activated and set to level 60, but will have no other priveleges from a normal admin.</td></tr>
<tr><td class="d"><b>User Name:</b></td><td class="d"><input type="text" name="user_name" value="Admin" /> The user name of the account to be created.</td></tr>
<tr><td class="d"><b>User Password:</b></td><td class="d"><input type="password" name="user_pass" /> The password for the default account. It would be a good idea to make this secure. Can be changed later.</td></tr>
<tr><td class="d"><b>User Email:</b></td><td class="d"><input type="text name="user_email" /> The private email for the default account, used to send passwords and like. Can be changed later.</td></tr>
</table>

<table width="100%" border="0">
<tr><td class="d">
Once you fill out <b>all</b> of the information above, we can continue to the next step.<br /><br />
Please double-check everything before you continue. After this, the database is going to be set up and the connection information filled out. It could take a few minutes.<br />
<input type="submit" name="next2" value="Next &gt;&gt;" />
</td></tr>
</table>
</form>
<?php
}}
else {
?>
<tr><td class="a" align="center">Welcome! [Step 1]</td></tr>
<tr><td class="c">
zenFyre is a lightweight and powerful forum system modified off of ultimategamer00's whiteFyre forum.<br />
There are no known exploits or security holes in this forum system, and it should be very secure.
</td></tr><td class="d">
Before we start the installation process, there are some pre-requesites that must be met. Let's go over them.
<br />
<ul>
<li> - RELATIVE_DIR should be set to the location of the board folder in install.php, you shouldn't need to change anything here</li>
<li> - zf/settings.inc.php needs to be CHMODed so it's writable. The suggested mode to CHMOD this to is 666</li>
<li> - It's suggested that zF gets it's own database. The install script only checks for a single vital table in an installation, so it's up to you to make sure the database is clean before you start.</li>
</ul>
<strong>REQUIREMENTS</strong>
<ul>
<li> - PHP 4.0 or above</li>
<li> - MySQL 3.2 or above</li>
<li> - MultiViews <b>must</b> be enabled</li>
<li> - It is suggested to turn register_globals OFF, even though the boards compensate for it</li>
</ul>
<br />
If all of these conditions are met, please click next below. If the basic server is configured right, the next installation screen should show up. By continuing on, you also accept the <a href="http://forums.x10hosting.com/free-hosting/COPYING.txt">GNU GPL</a> that these boards are licensed under. If you do not accept, please delete all of the files from your server immediately.
<form action="install" method="post"><input type="submit" name="next1" value="Next &gt;&gt;" /></form>
</td></tr>
<?php
}
?>
</table>
Edit:
Yeah, I can't figure it out... Can someone help?

This is annoying me because I am experienced with PHP, and this is piss-annoying.
 
Last edited:
Status
Not open for further replies.
Top