Last active
December 12, 2018 12:17
-
-
Save denielchiang/8bfbd2f4f9cdf30046d576751d7d4e50 to your computer and use it in GitHub Desktop.
install Wordpress on centOS 7 (digital-ocean)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo yum install httpd -y | |
service httpd start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo yum install mariadb mariadb-server -y | |
service mariadb start | |
/usr/bin/mysql_secure_installation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo yum install php php-mysql -y | |
sudo yum install epel-release -y | |
sudo yum clean all -y | |
sudo yum update -y | |
sudo yum install phpmyadmin -y | |
service httpd restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vi /etc/httpd/conf.d/phpMyAdmin.conf | |
Require ip "your_ip_address" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chkconfig httpd on | |
chkconfig mariadb on |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** FTP settings */ | |
define('FS_METHOD','direct'); | |
define("FTP_HOST", "localhost"); | |
define("FTP_USER", "@wordpress-user"); | |
define("FTP_PASS", "@wordpress-password"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chmod 777 -R html/wp-content/uploads/ | |
chmod 777 -R html/wp-content/themes/ | |
chmod 777 -R html/wp-content/plugins/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment