How to install phppgadmin on Ubuntu 16.04

# apt

sudo apt-get install -y phppgadmin

# sed

sudo sed -i -- 's/function ArrayRecordSet(/function __construct(/g' '/usr/share/phppgadmin/classes/ArrayRecordSet.php'
sudo sed -i -- 's/function XHtmlSimpleElement(/function __construct(/g' '/usr/share/phppgadmin/classes/class.select.php'
sudo sed -i -- 's/function Gui(/function __construct(/g' '/usr/share/phppgadmin/classes/Gui.php'
sudo sed -i -- 's/function GUI(/function __construct(/g' '/usr/share/phppgadmin/classes/Gui.php'
sudo sed -i -- 's/function Gui (/function __construct(/g' '/usr/share/phppgadmin/classes/Gui.php'
sudo sed -i -- 's/function GUI (/function __construct(/g' '/usr/share/phppgadmin/classes/Gui.php'
sudo sed -i -- 's/function Misc(/function __construct(/g' '/usr/share/phppgadmin/classes/Misc.php'
sudo sed -i -- 's/function Plugin(/function __construct(/g' '/usr/share/phppgadmin/classes/Plugin.php'
sudo sed -i -- 's/function PluginManager(/function __construct(/g' '/usr/share/phppgadmin/classes/PluginManager.php'

sudo sed -i -- 's/function ADODB_base(/function __construct(/g' '/usr/share/phppgadmin/classes/database/ADODB_base.php'
sudo sed -i -- 's/function Connection(/function __construct(/g' '/usr/share/phppgadmin/classes/database/Connection.php'

sudo sed -i -- 's/function Postgres(/function __construct(/g' '/usr/share/phppgadmin/classes/database/Postgres.php'
sudo sed -i -- 's/\$this->ADODB_base(/parent::__construct(/g' '/usr/share/phppgadmin/classes/database/Postgres.php'

sudo sed -i -- 's/function Postgres74(/function __construct(/g' '/usr/share/phppgadmin/classes/database/Postgres74.php'
sudo sed -i -- 's/\$this->Postgres80(/parent::__construct(/g' '/usr/share/phppgadmin/classes/database/Postgres74.php'

sudo sed -i -- 's/function Postgres80(/function __construct(/g' '/usr/share/phppgadmin/classes/database/Postgres80.php'
sudo sed -i -- 's/\$this->Postgres81(/parent::__construct(/g' '/usr/share/phppgadmin/classes/database/Postgres80.php'

sudo sed -i -- 's/function Postgres81(/function __construct(/g' '/usr/share/phppgadmin/classes/database/Postgres81.php'
sudo sed -i -- 's/\$this->Postgres82(/parent::__construct(/g' '/usr/share/phppgadmin/classes/database/Postgres81.php'

sudo sed -i -- 's/function Postgres82(/function __construct(/g' '/usr/share/phppgadmin/classes/database/Postgres82.php'
sudo sed -i -- 's/\$this->Postgres83(/parent::__construct(/g' '/usr/share/phppgadmin/classes/database/Postgres82.php'
sudo sed -i -- 's/\$this->Postgres(/parent::__construct(/g' '/usr/share/phppgadmin/classes/database/Postgres82.php'

sudo sed -i -- 's/function Postgres83(/function __construct(/g' '/usr/share/phppgadmin/classes/database/Postgres83.php'
sudo sed -i -- 's/\$this->Postgres84(/parent::__construct(/g' '/usr/share/phppgadmin/classes/database/Postgres83.php'
sudo sed -i -- 's/\$this->Postgres(/parent::__construct(/g' '/usr/share/phppgadmin/classes/database/Postgres83.php'

sudo sed -i -- 's/function Postgres84(/function __construct(/g' '/usr/share/phppgadmin/classes/database/Postgres84.php'
sudo sed -i -- 's/\$this->Postgres90(/parent::__construct(/g' '/usr/share/phppgadmin/classes/database/Postgres84.php'
sudo sed -i -- 's/\$this->Postgres(/parent::__construct(/g' '/usr/share/phppgadmin/classes/database/Postgres84.php'

sudo sed -i -- 's/function Postgres90(/function __construct(/g' '/usr/share/phppgadmin/classes/database/Postgres90.php'
sudo sed -i -- 's/\$this->Postgres91(/parent::__construct(/g' '/usr/share/phppgadmin/classes/database/Postgres90.php'
sudo sed -i -- 's/\$this->Postgres(/parent::__construct(/g' '/usr/share/phppgadmin/classes/database/Postgres90.php'

sudo sed -i -- 's/function Postgres91(/function __construct(/g' '/usr/share/phppgadmin/classes/database/Postgres91.php'
sudo sed -i -- 's/\$this->Postgres(/parent::__construct(/g' '/usr/share/phppgadmin/classes/database/Postgres91.php'

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.