This file contains 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
$router = $this->container->get('router'); | |
$url = $router->generate( | |
$targetLocation, | |
array( | |
'siteaccess' => ... | |
), // it is possible to pass another siteaccess here | |
UrlGeneratorInterface::ABSOLUTE_URL | |
); |
This file contains 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
# Created database to be cloned | |
mysql -u [user] -p -e "create database [destination_database] character set utf8;" | |
# Backup database with compression | |
mysqldump -h localhost -u [user] -p --quick [source_database] | gzip > [backup_file] | |
# Uncompress and restore database | |
gunzip -c [backup_file] | mysql -u [user] -p [destination_database] |
This file contains 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
# Set permissions for project files | |
sudo setfacl -R -m u:www-data:rwX -m u:`whoami`:rwX /var/www/project/ | |
sudo setfacl -dR -m u:www-data:rwX -m u:`whoami`:rwX /var/www/project/ |
NewerOlder