Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d51690b

Browse files
authoredMar 1, 2019
Update c9_php_mysql.sh
1 parent 1d34438 commit d51690b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎c9_php_mysql.sh

+7
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ sudo apt-get -y install php7.2-soap
4545
sudo apt-get -y install php7.2-zip
4646
sudo apt-get -y install php7.2-sqlite
4747
sudo apt-get -y install php7.2-mysql
48+
sudo apt-get -y install unzip
4849

4950
# Upgrade MySQL Version 5.7.x
5051
sudo apt-get -y install mysql-server
@@ -54,6 +55,12 @@ sudo mysql_upgrade -u root --force --upgrade-system-tables
5455
# Create User and Database
5556
mysql -u root -e "create user homestead;create database homestead;grant all on homestead.* to homestead@localhost identified by 'secret';"
5657

58+
# Composer install
59+
sudo rm -rf $HOME/.composer
60+
sudo rm -f /usr/bin/composer
61+
sudo curl -sS https://getcomposer.org/installer | php
62+
sudo cp composer.phar /usr/bin/composer
63+
5764
# Remove File and Folder
5865
rm hello-world.php
5966
rm ${mysql_apt_deb_file}

0 commit comments

Comments
 (0)
Please sign in to comment.