簡體   English   中英

使Cloud9(Ubuntu 14.04)與PHP 7.0和phpMyAdmin一起運行

[英]Getting Cloud9 (Ubuntu 14.04) running with PHP 7.0 and phpMyAdmin

我正在使用Cloud9(運行Ubuntu 14.04)。 我已經能夠刪除PHP5並更新到PHP 7.0.2(phpinfo准確顯示了)。 但是,刪除PHP5也會刪除phpMyAdmin。

嘗試安裝PHPMyAdmin時出現以下錯誤:

$ sudo apt-get install php7.0-cli php-seclib php-gettext
....
The following packages have unmet dependencies:
 php-gettext : Depends: php5 but it is not going to be installed or
                        php5-cli but it is not going to be installed
 php-seclib : Depends: php5 but it is not going to be installed or
                       php5-cli but it is not going to be installed
              Recommends: php5-mcrypt but it is not going to be installed or
                          php5-gmp but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我已經添加並更新了我的存儲庫。 我嘗試安裝php5-gettext和php-seclib,但同樣,它依賴於PHP5。 最新版本的phpMyAdmin(4.5.3.1)與PHP5和PHP7兼容。

一些線程指示從phpmyadmin.com手動安裝,但我不知道該怎么做:(

我正在尋找使用phpMyAdmin將Cloud9工作區升級到PHP 7的可靠方法。 我現在需要的只是phpMyAdmin。

我得到了它的支持。.這是PHP 7 + phpMyAdmin的完整說明。

sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get -y purge php5 libapache2-mod-php5 php5 php5-cli php5-common php5-curl php5-gd php5-imap php5-intl php5-json php5-mcrypt php5-mysql php5-pspell php5-readline php5-sqlite
sudo apt-get autoremove
sudo apt-get install php7.0
sudo apt-get install php7.0-mysql
mysql-ctl start

# **REMEMBER What cloud9 user name you are. This is your mysql username.
sudo rm /etc/apache2/sites-enabled/phpmyadmin.conf

從phpmyadmin.net下載最新的phpmyadmin,提取內容並將其更新到c9工作區。 我上傳到〜/ workspace / my /。

創建/ my / config /目錄

Run site /my/setup/

Created new server with:
Server name: localhost
Connection type: tcp
Connect without password: on
User for config auth: none
Password for config auth: none
Allow logins without a password: on
Control user: **your c9 username**
Control pass: none

點擊“保存”按鈕。 將config.inc.php文件從〜/ workspace / my / config /中復制到〜/ workspace / my /中,然后刪除config文件夾。

重新啟動apache / mysql服務並連接到http:// localhost / my /

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM