Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
jlopez
wicopa
Commits
21fa0032
Commit
21fa0032
authored
Feb 26, 2019
by
jlopez
Browse files
Merge branch 'master' of
https://gitlab.mbb.univ-montp2.fr/jlopez/wicopa
parents
25c3b31a
d3cbc301
Changes
2
Hide whitespace changes
Inline
Side-by-side
INSTALL.md
0 → 100644
View file @
21fa0032
# Installing wicopa
```
bash
apt-get
install
-y
apache2 mariadb-server php7.0 phpmyadmin libapache2-mod-php7.0
a2enmod php7.0
cd
/var/www/html/wicopa
cp
conf/Conf.php.sample conf/Conf.php
chown
-R
www-data /var/www/html/wicopa
chmod
-R
o-r /var/www/html/wicopa
service apache2 restart
```
# Creating username and database
```
bash
echo
"CREATE DATABASE wicopa;"
| mysql
-u
username
-p
echo
'GRANT ALL PRIVILEGES ON wicopa.* TO "wicopauser"@"localhost";'
|mysql
-u
root
-p
mysql
-u
wicopauser
-p
wicopa < wicopa.sql
vim conf/Conf.php
```
conf/Conf.php.sample
0 → 100644
View file @
21fa0032
<?php
class
Conf
{
public
static
$DB_NAME
=
''
;
public
static
$DB_HOSTNAME
=
''
;
public
static
$DB_USERNAME
=
''
;
public
static
$DB_PP
=
''
;
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment