Skip to content

Instantly share code, notes, and snippets.

@yeungon
Created December 5, 2020 07:45
Show Gist options
  • Save yeungon/addfe8f9e4693d5e583ff5e86b2b7a5c to your computer and use it in GitHub Desktop.
Save yeungon/addfe8f9e4693d5e583ff5e86b2b7a5c to your computer and use it in GitHub Desktop.
#!/bin/bash
echo 'Hi there, this code will turn off the current ngixn and turn on XAMPP'
turnoff="sudo systemctl stop nginx"
#eval turnoff
eval $turnoff
turnon="sudo /opt/lampp/lampp start"
eval $turnon
#sudo systemctl stop nginx
#sudo /opt/lampp/lampp start
# //sudo chown -R www-data:www-data wp-content/plugins/
# sudo chmod 775 wp-content
# sudo chown -R www-data:www-data wp-content/
# https://stackoverflow.com/questions/37157264/wordpress-plugin-install-could-not-create-directory
# sudo chmod 777 -R 'wordpress wp-content file location'
# for example.
# sudo chmod 777 -R /usr/share/wordpress/wp-content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment