Fixed settings for test mysql database and updated documentation
This commit is contained in:
parent
106f4e62cf
commit
eadeb3ed21
3 changed files with 27 additions and 19 deletions
|
@ -4,8 +4,8 @@
|
|||
// Copy or rename this file to .htconfig.php
|
||||
|
||||
$db_host = 'localhost';
|
||||
$db_user = 'root';
|
||||
$db_pass = 'root';
|
||||
$db_user = 'friendica';
|
||||
$db_pass = 'friendica';
|
||||
$db_data = 'friendica';
|
||||
|
||||
// If you are using a subdirectory of your domain you will need to put the
|
||||
|
@ -73,3 +73,5 @@ $a->config['system']['debugging'] = true;
|
|||
$a->config['system']['logfile'] = 'logfile.out';
|
||||
$a->config['system']['loglevel'] = LOGGER_DEBUG;
|
||||
|
||||
// display php errors
|
||||
ini_set('display_errors', '1');
|
||||
|
|
|
@ -60,6 +60,10 @@ Q1="GRANT ALL ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION;"
|
|||
Q2="FLUSH PRIVILEGES;"
|
||||
SQL="${Q1}${Q2}"
|
||||
$MYSQL -uroot -proot -e "$SQL"
|
||||
# add a separate database user for friendica
|
||||
$MYSQL -uroot -proot -e "CREATE USER 'friendica'@'localhost' identified by 'friendica';"
|
||||
$MYSQL -uroot -proot -e "GRANT ALL PRIVILEGES ON friendica.* TO 'friendica'@'localhost';"
|
||||
$MYSQL -uroot -proot -e "FLUSH PRIVILEGES"
|
||||
systemctl restart mysql
|
||||
|
||||
|
||||
|
@ -84,9 +88,9 @@ echo "create database friendica DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_ge
|
|||
$MYSQL -uroot -proot friendica < /vagrant/friendica_test_data.sql
|
||||
|
||||
# create cronjob - activate if you have enough memory in you dev VM
|
||||
# echo "*/10 * * * * cd /vagrant; /usr/bin/php include/poller.php" >> friendicacron
|
||||
# sudo crontab friendicacron
|
||||
# sudo rm friendicacron
|
||||
echo "*/10 * * * * cd /vagrant; /usr/bin/php include/poller.php" >> friendicacron
|
||||
sudo crontab friendicacron
|
||||
sudo rm friendicacron
|
||||
|
||||
#Optional: checkout addon repositroy
|
||||
#sudo git clone https://github.com/friendica/friendica-addons.git /vagrant/addon
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue