Installation error
-
I am having trouble installing wp.
I am running php4.3.1, mysql 4.0.15, apache 2.0.44 on redhat8.
The top of my b2config.php looks like this:
————————————————————
$siteurl = ‘https://mysite.com/wp’; // Double check this, it’s very important.
$blogfilename = ‘index.php’;
$blogname = “Learning Center”;
$blogdescription = “Learning Center Description”;
// Your email (obvious eh?)
$admin_email = ‘[email protected]’;
// ** MySQL settings **
define(‘DB_NAME’, ‘mc’); // The name of the database
define(‘DB_USER’, ‘mcadmin’); // Your MySQL username
define(‘DB_PASSWORD’, ‘xxx’); // …and password
define(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value
————————————————————
The bottom of my b2config.php looks like this:
————————————————————
$relpath = ”;
$url = explode(‘/’, $siteurl);
for ($i = 3; $i < count($url); $i++) {
$relpath .= ‘/’. $url[$i];
}
//$abspath = getenv(‘DOCUMENT_ROOT’) . $relpath . ‘/’;
//$abspath = “/home/wp” . $relpath . ‘/’;
$abspath = “/home/wp/”;
$b2inc = “/$b2inc”;
$pathserver = &$siteurl;
require_once($abspath.$b2inc.’/wp-db.php’);
————————————————————
Clearly, I already hit the same errors others have already gotten. The problem is, that I have a blank page for ‘/wp/wp-admin/wp-install.php’. Here is the HTML source:
————————————————————
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN”>
<HTML><HEAD>
<META http-equiv=Content-Type content=”text/html; charset=iso-8859-1″></head>
<BODY>
————————————————————
What’s the fix for this? I know the mysql account and password are correct because if I type this from the command line:
————————————————————
./mysql -p –user=mcadmin mc
————————————————————
I can access the database (after typing in the correct password).
For fun, here are the permissions for the database account (which is WAY too much, and I would like to reduce them significantly–so what should I revoke?):
————————————————————
mysql> select * from mysql.user;
+——————+———+——————+————-+————-+————-+————-+————-+———–+————-+—————+————–+———–+————+—————–+————+————+————–+————+———————–+——————+————–+—————–+——————+———-+————+————-+————–+—————+————-+—————–+
| Host | User | Password | Select_priv | Insert_priv | Update_priv | Delete_priv | Create_priv | Drop_priv | Reload_priv | Shutdown_priv | Process_priv | File_priv | Grant_priv | References_priv | Index_priv | Alter_priv | Show_db_priv | Super_priv | Create_tmp_table_priv | Lock_tables_priv | Execute_priv | Repl_slave_priv | Repl_client_priv | ssl_type | ssl_cipher | x509_issuer | x509_subject | max_questions | max_updates | max_connections |
+——————+———+——————+————-+————-+————-+————-+————-+———–+————-+—————+————–+———–+————+—————–+————+————+————–+————+———————–+——————+————–+—————–+——————+———-+————+————-+————–+—————+————-+—————–+
| localhost | root | [snip] | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | | | | | 0 | 0 | 0 |
| xxx.mysite.com | root | [snip] | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | | | | | 0 | 0 | 0 |
| localhost | mcadmin | [snip] | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | | | | | 0 | 0 | 0 |
+——————+———+——————+————-+————-+————-+————-+————-+———–+————-+—————+————–+———–+————+—————–+————+————+————–+————+———————–+——————+————–+—————–+——————+———-+————+————-+————–+—————+————-+—————–+
3 rows in set (0.00 sec)
————————————————————
Help is much appreciated.
-=John
[edit by allusion: removed password hashes.]
- The topic ‘Installation error’ is closed to new replies.