Created
          December 5, 2020 07:45 
        
      - 
      
 - 
        
Save yeungon/addfe8f9e4693d5e583ff5e86b2b7a5c to your computer and use it in GitHub Desktop.  
  
    
      This file contains hidden or 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
    
  
  
    
  | #!/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