SSH: verschil tussen versies

Uit dotSearch
Ga naar: navigatie, zoeken
Regel 5: Regel 5:
 
* Disable safe_mode in shell: ''/usr/bin/php '''-c /etc/php5/apache2/php.ini''' /var/www/vhosts/ruudkok.nl/httpdocs/shop/scripts/import.php @MODIFIED''
 
* Disable safe_mode in shell: ''/usr/bin/php '''-c /etc/php5/apache2/php.ini''' /var/www/vhosts/ruudkok.nl/httpdocs/shop/scripts/import.php @MODIFIED''
  
* Search replace via terminal: '''sed -i '' 's/search/replace/g' filename.txt'''
+
* Search replace via terminal: ''<nowiki>sed -i '' 's/search/replace/g' filename.txt</nowiki>''

Versie van 22 nov 2016 om 17:26

  • Show current folder in SSH: pwd
  • Disable safe_mode in shell: /usr/bin/php -c /etc/php5/apache2/php.ini /var/www/vhosts/ruudkok.nl/httpdocs/shop/scripts/import.php @MODIFIED
  • Search replace via terminal: sed -i '' 's/search/replace/g' filename.txt