Skip to content

Instantly share code, notes, and snippets.

@juliusdejon
Last active April 19, 2020 12:09
Show Gist options
  • Save juliusdejon/08bc30d09ade71607f4ed5efe19ebd95 to your computer and use it in GitHub Desktop.
Save juliusdejon/08bc30d09ade71607f4ed5efe19ebd95 to your computer and use it in GitHub Desktop.
Wordpress Apache
#!/bin/bash
yum install httpd php php-mysql -y
cd /var/www/html
wget https://wordpress.org/latest.tar.gz
tar -xzf latest.tar.gz
cp -r wordpress/* /var/www/html/
rm -rf wordpress
rm -rf latest.tar.gz
chmod -R 755 wp-content
chown -R apache:apache wp-content
chkconfig httpd on
service httpd start
@juliusdejon
Copy link
Author

#!/bin/bash

yum install httpd php php-mysql -y

cd /var/www/html

wget https://wordpress.org/wordpress-5.1.1.tar.gz

tar -xzf wordpress-5.1.1.tar.gz

cp -r wordpress/* /var/www/html/

rm -rf wordpress

rm -rf wordpress-5.1.1.tar.gz

chmod -R 755 wp-content

chown -R apache:apache wp-content

service httpd start

chkconfig httpd on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment