PhpMyAdmin was created so that users can interact with MySQL through a web interface. While many users need the functionality of a database management system like MySQL, they may not feel comfortable interacting with the system solely from the MySQL prompt. Sudo rm -r phpMyAdmin- $PMA_VERSION-english.zipĮcho "/usr/share/phpmyadmin/ earlier version of this tutorial was written by Brennan Bearnes. Sudo chown -R www-data:www-data /var/lib/phpmyadmin/tmp Sudo chown -R www-data:www-data /usr/share/phpmyadmin/tmp # You might need to change group:user here Sudo mv phpMyAdmin- $PMA_VERSION-english /usr/share/phpmyadminĮcho -e "\e[96m Fix tmp folder ownership \e[39m " Sudo mv /usr/share/phpmyadmin /usr/share/phpmyadmin.bakĮcho -e "\e[96m Move new installation \e[39m " Sed -e "s|cfg\ = ''|cfg = ' $randomBlowfishSecret'| " phpMyAdmin- $PMA_VERSION-english/ >phpMyAdmin- $PMA_VERSION-english/Įcho -e "\e[96m Create missing folders \e[39m "Įcho -e "\e[96m Backup old installation \e[39m " RandomBlowfishSecret= $(openssl rand -base64 22 ) Unzip -q -o phpMyAdmin- $PMA_VERSION-english.zip Wget -c $PMA_VERSION/phpMyAdmin- $PMA_VERSION-english.zip -O phpMyAdmin- $PMA_VERSION-english.zip # Note: You should install phpmyadmin with apt firstĮcho -e "\e[96m phpmyadmin installation script \e[39m "Įcho -e "\e[96m Downloading phpmyadmin version $PMA_VERSION \e[39m " # Use this script if the official package is no longer being updated Git config -global alias.logout 'credential-cache exit ' Git config -global core.excludesfile " $HOME/.gitignore " Git config -global credential.helper 'cache -timeout 43200 ' Sudo add-apt-repository -y ppa:git-core/ppa # run like - bash install_version_control_git.sh Sudo debconf-set-selections <<< 'phpmyadmin phpmyadmin/reconfigure-webserver multiselect apache2 'Įcho -e "\e[92m phpMyAdmin installed successfully \e[39m "Įcho -e "\e[92m Remember: password for root user is root \e[39m " Sudo debconf-set-selections <<< 'phpmyadmin phpmyadmin/mysql/app-pass password root ' Sudo debconf-set-selections <<< 'phpmyadmin phpmyadmin/mysql/admin-pass password root ' Sudo debconf-set-selections <<< 'phpmyadmin phpmyadmin/app-password-confirm password root ' Sudo debconf-set-selections <<< 'phpmyadmin phpmyadmin/dbconfig-install boolean true ' Sudo add-apt-repository -y ppa:phpmyadmin/ppaĮcho -e "\e[96m Begin silent install phpMyAdmin \e[39m "Įcho -e "\e[93m User: root, Password: root \e[39m " # You should have MySQL pre-installed, otherwise your will get warnings during installation Sudo chown -R " $USER " " $HOME/.composer "Įcho -e "\e[92m Open to check if apache is working or not. Php -r 'echo "\nYour PHP installation is working fine.\n" ' # export PATH=~/.composer/vendor/bin:$PATHĮcho -e "\e[96m Installing mysql client \e[39m " Php8.1-msgpack php8.1-igbinary php8.1-ldap \Įcho -e "\e[96m Restart apache server to reflect changes \e[39m "Įcho -e "\e[96m Installing composer \e[39m "Ĭurl -sS | sudo php -install-dir=/usr/local/bin -force -filename=composer Php8.1-imap php8.1-mysql php8.1-mbstring php8.1-iconv \ Sudo apt-get -y install php8.1-cli php8.1-curl php8.1-ctype php8.1-uuid \ Php7.4-readline php7.4-soap php7.4-igbinary php7.4-msgpack \ Php7.4-zip php7.4-gettext php7.4-pgsql php7.4-bcmath php7.4-redis \ Sudo apt-get -y install php7.4-json php7.4-mysql php7.4-curl php7.4-ctype php7.4-uuid \ Sudo add-apt-repository -y ppa:ondrej/phpĮcho -e "\e[96m Installing apache \e[39m "Įcho -e "\e[96m Installing php - $ "Įcho -e "\e[96m Installing php extensions \e[39m " Sudo add-apt-repository -y ppa:ondrej/apache2 # Run like (without sudo) - bash install_lamp.sh
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |