Skip to content

Instantly share code, notes, and snippets.

@denielchiang
Last active December 12, 2018 12:17
Show Gist options
  • Save denielchiang/8bfbd2f4f9cdf30046d576751d7d4e50 to your computer and use it in GitHub Desktop.
Save denielchiang/8bfbd2f4f9cdf30046d576751d7d4e50 to your computer and use it in GitHub Desktop.
install Wordpress on centOS 7 (digital-ocean)
sudo yum install httpd -y
service httpd start
sudo yum install mariadb mariadb-server -y
service mariadb start
/usr/bin/mysql_secure_installation
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
vi /etc/httpd/conf.d/phpMyAdmin.conf
Require ip "your_ip_address"
chkconfig httpd on
chkconfig mariadb on
/** FTP settings */
define('FS_METHOD','direct');
define("FTP_HOST", "localhost");
define("FTP_USER", "@wordpress-user");
define("FTP_PASS", "@wordpress-password");
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