VectorLinux

The nuts and bolts => Software General => Topic started by: StrayBit on August 17, 2017, 07:43:26 am

Title: phpMyAdmin
Post by: StrayBit on August 17, 2017, 07:43:26 am
Can any one help me with this.  I haven't found it in Vector and the on-line pre-made ones are debian, ubantu and fedora.  I downloaded the package but the destuctions (er instructions) are greek to me.  They tell of using composer which has a .jasn extension.  I've never touched jason.  I have used gcc a few times.
Title: Re: phpMyAdmin
Post by: retired1af on August 17, 2017, 09:33:30 am
Looks fairly straight forward.

Install the Composer using the instructions here: https://getcomposer.org/doc/00-intro.md

Then, install phpMyAdmin using the instructions located here: https://docs.phpmyadmin.net/en/latest/setup.html

You'll need to ensure Git is installed first.
Title: Re: phpMyAdmin
Post by: StrayBit on August 19, 2017, 08:01:04 am
Finally got composer working.  php does complain
Quote
Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/mysql.so' - /usr/lib/php/extensions/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
mysql.so is not present nor was it in b2.
Title: Re: phpMyAdmin
Post by: StrayBit on August 19, 2017, 08:42:21 am
This definately is not what I was expecting!  In my browser
Quote
http://localhost/phpMyAdmin/phpmyadmin.css.php
Quote
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
 * Main stylesheet loader
 *
 * @package PhpMyAdmin
 */
use PMA\libraries\OutputBuffering;
use PMA\libraries\ThemeManager;

/**
 *
 */

define('PMA_MINIMUM_COMMON', true);
require_once 'libraries/common.inc.php';


$buffer = OutputBuffering::getInstance();
$buffer->start();
register_shutdown_function(
    function () {
        echo OutputBuffering::getInstance()->getContents();
    }
);

// Send correct type:
header('Content-Type: text/css; charset=UTF-8');

// Cache output in client - the nocache query parameter makes sure that this
// file is reloaded when config changes
header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 3600) . ' GMT');

ThemeManager::getInstance()->printCss();