# To enable directory Symlink
chmod o+x ~
#Copier de local à serveur et de serveur à folder courant
scp -P 2245 /home/mehdib/workspace/sinopetech/backup/sinopetech_db.sql mbouhalassa@192.168.1.65:/var/www/dev6.sinopetech.com/backup
scp sinopetech01:/home/mbouhalassa/sinopetech_db1-01-Jun-2017@12:05:01.sql .
scp -P 2245 -r mbouhalassa@205.204.95.117:/home/mbouhalassa/sinopetech_db1-07-Jun-2017@22:05:01.sql .
<VirtualHost *:80>
ServerAdmin mehdi.bouhalassa@gmail.com
DocumentRoot "/srv/http/woocommerce"
ServerName woocommerce.local
<Directory "/srv/http/woocommerce">
# Options FollowSymLinks
Options +ExecCGI +FollowSymlinks -SymLinksIfOwnerMatch
AllowOverride None
Require all granted
</Directory>
ErrorLog "/srv/http/woocommerce/error_log"
CustomLog "/srv/http/woocommerce/access_log" common
</VirtualHost>
#Changer l'url du site WordPress
define('WP_HOME','http://preprod.sinopetech.com');
define('WP_SITEURL','http://preprod.sinopetech.com');
#Enable WordPress Direct FS_METHOD
define('FS_METHOD','direct');
#Connecter au server dev
ssh 192.168.1.65 -p 2245
mbouhalassa
N30wHY!Sm6V2
#Change WordPress Directory Permissions
find . -type d -exec chmod 755 {} \; OU BIEN find . -type d -exec chmod 775 {} \;
#Change WordPress File Permissions
find . -type f -exec chmod 644 {} \; OU BIEN find . -type f -exec chmod 664 {} \;
#Wordpress htaccess
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
# Start Apache
sudo systemctl start httpd
# Start MySql
sudo systemctl start mysqld
# Edit in VISU as root
sudo code /etc/httpd/conf/httpd.conf --user-data-dir=~/root
# Update everything
yaourt -Syu --aur
# Update NPM local files
npm i -g npm-check-updates npm-check-updates -u npm install
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.