{"id":18694441,"url":"https://github.com/csev/devtest","last_synced_at":"2025-11-08T11:30:47.163Z","repository":{"id":155882447,"uuid":"632747370","full_name":"csev/devtest","owner":"csev","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-04T12:31:15.000Z","size":63,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-28T03:14:43.559Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/csev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-26T03:39:12.000Z","updated_at":"2024-07-04T12:31:45.000Z","dependencies_parsed_at":"2023-11-07T05:44:47.582Z","dependency_job_id":"e72c9b96-49f8-477f-b03c-5e6d8b78aa9a","html_url":"https://github.com/csev/devtest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csev%2Fdevtest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csev%2Fdevtest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csev%2Fdevtest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csev%2Fdevtest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/csev","download_url":"https://codeload.github.com/csev/devtest/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239552483,"owners_count":19657919,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T11:10:48.133Z","updated_at":"2025-11-08T11:30:47.122Z","avatar_url":"https://github.com/csev.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Sakai Developer Test Harness\n============================\n\nThis is a set of php scripts when used in conjunction with Dr. Chuck's build scripts that allow a user to control their Sakai\nthrough a browser.\n\nThis needs a copy of `sakai-scripts` checked out somewhere in your disk hierarchy.  On Linux\nwith Apache, the simplest place is `/var/www/sakai-scripts` as `/var/www` is the home directory\nfor the `www-data` account. \n\nThe owner of the entire `sakai-scripts` folder must be the same as the web server account.\nFor example on my ac laptopn, the web server runs as `csev` and the `sakai-scripts` folder\nis owned by `csev` so the scripts can alter the files.    On Linux, the Apache server\ngenerally runs as `www-data` so once things are set up you will need to:\n\n    cd /var/www\n    git clone https://github.com/csev/sakai-scripts\n    chown -R www-data:www-data /var/www\n\nTo configure this software, copy `config-dist.php` to `config.php` and edit as appropriate.\n\n\nDetailed Notes\n--------------\n\nThese are notes for my setup on Linux.\n\nUse the Tsugi dev environment to set up Apache, PHP, and PHPMyAdmin\n\n    cd /root\n    https://github.com/tsugiproject/tsugi-build.git\n    cd tsugi-build\n    bash ubuntu/build-dev.sh\n\nInstall some extra bits for phpMyAdmin:\n\n    apt install php-mysqli php-xml php-curl php-zip curl composer\n\nConfigure the Tsugi bit:\n\n    cp tsugi-build/ubuntu/ubuntu-env-demo.sh ubuntu-env.sh\n    vi ubuntu-env.sh \n\nMake devtest the `MAIN_REPO` in the `ubuntu-env.sh` file\n\n    export MAIN_REPO=https://github.com/csev/devtest.git\n\nConfigure the Tsugi server  \n\n    source ubuntu-env.sh\n    bash /usr/local/bin/tsugi-dev-configure.sh return\n\n    a2enmod proxy_http\n    systemctl restart apache2\n\nSee if your web server came up:\n\n    http://67.205.132.116/\n\nYou might want to set up a password for your MySQL - do this as root:\n\n    mysql -u root\n    ALTER USER 'root'@'localhost' IDENTIFIED BY 'root';\n\nThis root password will be needed when setting up the sakai-scripts `config.sh`\nfile.\n\nSet up permissions on the `/var/www` so `www-data` can use it as a real log in folder\n(remember this is not a serious production server).\n\n    chown -R www-data:www-data /var/www\n    cd /var/www\n    su -s \"/bin/bash\" www-data\n\n    vi ~/.bashrc\n    export PATH=.:$PATH\n    cd /var/www/html/phpMyAdmin/\n    composer update\n\nDo the rest as `www-data` using `su` as necessary to switch from `root` to `www-data`.\nCheck out `sakai-scripts`:\n\n    cd /var/www\n    git clone https://github.com/csev/sakai-scripts.git\n\n    cd sakai-scripts\n\nSetup `config.sh`, `sakai.properties`, and `server.xml`  - then manually compile,\nstart, and test Sakai:\n\n    bash ubuntu.sh\n    bash db.sh\n    bash co.sh\n    bash na.sh\n    bash qmv.sh\n    bash start.sh\n    bash tail.sh\n\n    http://67.205.132.116:8080/\n\nSwitch back to `root` and set up virtual hosting and HTTP proxy in Apache:\n\n    vi /etc/apache2/sites-available/qasak.sakaicloud.com.conf \n\n    \u003cVirtualHost *:80\u003e\n        ServerName qasak.sakaicloud.com\n        ServerAdmin webmaster@localhost\n\n        ProxyPreserveHost On\n\n        ProxyPass / http://127.0.0.1:8080/\n        ProxyPassReverse / http://127.0.0.1:8080/\n    \u003c/VirtualHost\u003e\n\n    a2ensite qasak.sakaicloud.com\n    systemctl reload apache2\n\n    apache2ctl -M\n    apache2ctl -S\n\nThen set up two domains to point to the server:\n\n    https://qadev.sakaicloud.com/ ==\u003e 67.205.132.116\n    https://qasak.sakaicloud.com/ ==\u003e 67.205.132.116\n\nI use CloudFlare for DNS, DDOS, and proxy so it handles certificates for me.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsev%2Fdevtest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcsev%2Fdevtest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsev%2Fdevtest/lists"}