experimentum
Web-based software for building, deploying, and managing psychology studies http://doi.org/10.5281/zenodo.4010579
Science Score: 31.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.2%) to scientific vocabulary
Keywords
Repository
Web-based software for building, deploying, and managing psychology studies http://doi.org/10.5281/zenodo.4010579
Basic Info
- Host: GitHub
- Owner: debruine
- Language: PHP
- Default Branch: master
- Homepage: https://debruine.github.io/experimentum/
- Size: 82.6 MB
Statistics
- Stars: 9
- Watchers: 1
- Forks: 1
- Open Issues: 23
- Releases: 2
Topics
Metadata Files
README.md
Experimentum
Install Experimentum
From the terminal, go to the directory where you want to keep the experimentum files. For example, if you want to keep the files in a directory called html in your home folder, type:
cd ~/html/
Clone Experimetum
git clone https://github.com/debruine/experimentum.git
You can rename the directory from experimentum to the name of your website.
Server Setup (Mac OS X)
Install XCode
xcode-select --install
Install Homebrew
You may be asked to change permissions on /usr/local/Cellar. Do this and re-run the command below.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Install Homebrew core
brew tap homebrew/homebrew-core
Unload old PHP/Apache and install via homebrew
There will be a few minutes of installation and output while dependencies are installed.
sudo apachectl stop
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist 2>/dev/null
brew install httpd24
brew services start httpd
brew install php72
At the end of installation, you will get some output that starts with:
==> php@7.2
To enable PHP in Apache add the following to httpd.conf and restart Apache:
Copy this text and edit httpd.conf file. We'll edit this with nano; if you have a preferred editor, use that instead.
nano /usr/local/etc/httpd/httpd.conf
Search for DocumentRoot using control-W. Change it to the directory you put the experimentum directory inside. Also add MultiViews to the
``` DocumentRoot "/Users/lisad/html"
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Require all granted
Allow from 127.0.0.1
```
Search for php7_module using control-W. Replace it with the text you copied. If you don't find that, go to the end of the file (control-V until you get there) and add the text you copied (which will look something like this):
``` LoadModule php7_module /usr/local/opt/php@7.2/lib/httpd/modules/libphp7.so
Search for DirectoryIndex (ctrl-W) and edit it to look like:
<IfModule dir_module>
DirectoryIndex index.php index.html
</IfModule>
Search for mod_negotiation and make sure this line is not commented (remove the #).
LoadModule negotiation_module lib/httpd/modules/mod_negotiation.so
Save this file and exit (crtl-O, ctrl-X).
Set date.timezone in php.ini
nano /usr/local/etc/php/7.2/php.ini
Search for "date.timezone" using control-W. Look up your timezone at https://www.php.net/manual/en/timezones.php and set date.timezone (e.g., date.timezone = Europe/London). Save with control-O and exit with control-X.
Edit hosts file
sudo nano /etc/hosts
Do not delete anything, just add a line with the URL of your new test site, e.g.:
127.0.0.1 experimentum.test
Save with ctrl-O, ctrl-X
Edit the vhosts file
nano /usr/local/etc/httpd/extra/httpd-vhosts.conf
Edit the first example for your test server. The important parts are getting the ServerName the same as in the hosts file and the DocumentRoot the same the directory where you put Experimentum in Step 1 (you may have renamed the directory). It should look something like this:
<VirtualHost *:80>
ServerAdmin experimentum@glasgow.ac.uk
DocumentRoot "/Users/lisad/html/experimentum"
ServerName experimentum.test
ErrorLog "/private/var/log/apache2/experimentum-error_log"
CustomLog "/private/var/log/apache2/experimentum-access_log" common
</VirtualHost>
Restart apache
brew services start httpd
Databases
Install MariaDB
brew install mariadb
Lunch MariaDB
brew services start mariadb
Set your admin password
mysqladmin -u root password 'MYPASSWORD'
Create databases:
Go to the directory where you saved experimentum and into the setup/mysql directory
cd /Users/lisad/experimentum/setup/mysql
Create the exp database
mysql -u root -pMYPASSWORD
CREATE DATABASE exp;
USE exp;
\. exp_setup.sql
Edit config file:
Change config_edit_this.php to config.php and edit everything with **EDIT THIS**
Set the MYSQLUSER to root and MYSQLPSWD` to the admin password you set above for both researchers and users (for your test site only). For your actual site, create MySQL users for researchers and users who have appropriate permissions (LISA EDIT THIS).
Look at your website at http://name.test:8080
Sign up for an account, requesting researcher status.
Log into MySQL from the command line:
mysql -u root -p
USE exp;
SELECT * from user;
UPDATE user SET status = "admin" WHERE user_id = 1;
Log out and log back into your website. It should take you straight to the resaercher section.
Owner
- Name: Lisa DeBruine
- Login: debruine
- Kind: user
- Location: Glasgow, Scotland
- Company: University of Glasgow
- Website: https://debruine.github.io
- Repositories: 108
- Profile: https://github.com/debruine
Psych prof slowly morphing into an rstats dev
Citation (CITATION)
message: "If you use experimentum, please cite it as below." authors: - family-names: "DeBruine" given-names: "Lisa" orcid: "https://orcid.org/0000-0002-7523-5539" - family names: Lai given-names: Rebecca - family names: Jones given-names: Benedict - family names: Abdullah given-names: Rifah - family names: Mahrholz given-names: Gaby title: "Experimentum" version: 0.2 date-released: 2020-09-01 url: "https://github.com/debruine/experimentum/" doi: "10.5281/zenodo.4010579"
GitHub Events
Total
- Watch event: 1
Last Year
- Watch event: 1
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 49
- Total pull requests: 0
- Average time to close issues: 12 days
- Average time to close pull requests: N/A
- Total issue authors: 6
- Total pull request authors: 0
- Average comments per issue: 0.45
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- debruine (35)
- RebeccaJLai (5)
- KieranJOShea (5)
- amandahahn (2)
- EliMih (1)
- JaimieST (1)