Jump to content

[SOLVED] Noob unable to run phpMyAdmin setup script


ElvishSlade

Recommended Posts

Hi all,

 

New to the forum, have been googling for hours and for the life of me cannot sort this out, so I am relying on your expertise and mercy.

 

MySQL 5.0 (accessible via command line interface, so far unable to test php connectivity as i cant work out how, and i hope to use phpMyAdmin primarily)

 

PHP 5 (working, check it out here http://snowie.b33r.net/displayforum.php , all my own work. We all have to start somewhere, it just appends a txt doc)

 

phpMyAdmin-2.11.7-all-languages-utf-8-only (unzipped to the htdocs folder of Apache server)

 

Apache 2.2 (also working and connected to php as per above link)

 

 

So, the trouble is that when I run setup.php from the scripts folder in phpMyAdmin I get the following result in Firefox 3.0

* @copyright 2006 Michal Čihař  * @license http://www.gnu.org/licenses/gpl.html GNU GPL 2.0 * @version $Id: setup.php 10748 2007-10-10 07:30:59Z cybot_tm $ */ // Grab phpMyAdmin version and PMA_dl function define('PMA_MINIMUM_COMMON', TRUE); define('PMA_SETUP', TRUE); chdir('..'); require_once './libraries/common.inc.php'; // Grab configuration defaults // Do not use $PMA_Config, it interferes with the one in $_SESSION // on servers with register_globals enabled $PMA_Config_Setup = new PMA_Config(); // Script information $script_info = 'phpMyAdmin ' . $PMA_Config_Setup->get('PMA_VERSION') . ' setup script by Michal Čihař '; $script_version = '$Id: setup.php 10748 2007-10-10 07:30:59Z cybot_tm $'; // Grab action if (isset($_POST['action'])) { $action = $_POST['action']; } else { $action = ''; } // Grab wanted CRLF type if (isset($_POST['eoltype'])) { $eoltype = $_POST['eoltype']; } else { if (PMA_USR_OS == 'Win') { $eoltype = 'dos'; } else { $eoltype = 'unix'; } } // Detect which CRLF to use if ($eoltype == 'dos') { $crlf = "\r\n"; } elseif ($eoltype == 'mac') { $crlf = "\r"; } else { $crlf = "\n"; } if (isset($_POST['configuration']) && $action != 'clear') { // Grab previous configuration, if it should not be cleared $configuration = unserialize($_POST['configuration']); } else { // Start with empty configuration $configuration = array(); } // We rely on Servers array to exist, so create it here if (!isset($configuration['Servers']) || !is_array($configuration['Servers'])) { $configuration['Servers'] = array(); } // Used later $now = gmdate('D, d M Y H:i:s') . ' GMT'; // General header for no caching header('Expires: ' . $now); // rfc2616 - Section 14.21 header('Last-Modified: ' . $now); header('Cache-Control: no-store, no-cache, must-revalidate, pre-check=0, post-check=0, max-age=0'); // HTTP/1.1 header('Pragma: no-cache'); // HTTP/1.0 // whether to show html header? if ($action != 'download') { // Define the charset to be used header('Content-Type: text/html; charset=utf-8'); // this needs to be echoed otherwise php with short tags complains echo '' . "\n"; ?>
phpMyAdmin get('PMA_VERSION'); ?> setup
' . '' . 'Documentation' . '' . '' . 'Wiki' . '' . '' ; } /** * Displays message * * @param string type of message (notice/warning/error) * @param string text of message * @param title optional title of message * * @return nothing */ function message($type, $text, $title = '') { echo '
' . "\n"; if (!empty($title)) { echo '

 

.............................etc etc etc

 

I had a look at the manual conf, but the file config.inc.php does not exist, and the file config.sample.inc.php does not contain all the settings mentioned in most walkthroughs.

 

config.sample.inc.php

<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* phpMyAdmin sample configuration, you can use it as base for
* manual configuration. For easier setup you can use scripts/setup.php
*
* All directives are explained in Documentation.html and on phpMyAdmin
* wiki <http://wiki.cihar.com>.
*
* @version $Id: config.sample.inc.php 10142 2007-03-20 10:32:13Z cybot_tm $
*/

/*
* This is needed for cookie based authentication to encrypt password in
* cookie
*/
$cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */

/*
* Servers configuration
*/
$i = 0;

/*
* First server
*/
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
/* Select mysqli if your server has it */
$cfg['Servers'][$i]['extension'] = 'mysql';
/* User for advanced features */
// $cfg['Servers'][$i]['controluser'] = 'pma';
// $cfg['Servers'][$i]['controlpass'] = 'pmapass';
/* Advanced phpMyAdmin features */
// $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
// $cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
// $cfg['Servers'][$i]['relation'] = 'pma_relation';
// $cfg['Servers'][$i]['table_info'] = 'pma_table_info';
// $cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
// $cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
// $cfg['Servers'][$i]['column_info'] = 'pma_column_info';
// $cfg['Servers'][$i]['history'] = 'pma_history';
// $cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';

/*
* End of servers configuration
*/

/*
* Directories for saving/loading files from server
*/
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';

?>

 

What I would really like is someone to help work out why the setup script does not work, other than that, a good guide for manual conf will suffice.

 

Thanks all :)

Link to comment
Share on other sites

i have been clicking the file in windows explorer

 

OMFG!

 

I knew it would be something simple, but now i just feel like an idiot.

 

This did it

localhost/phpMyAdmin-2.11.7-all-languages-utf-8-only/scripts/setup.php

 

brb, cant read through all the blood on the screen where ive been smacking my forehead against it.

 

ps, mark as solved please

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.