{"id":18683619,"url":"https://github.com/scify/benefile","last_synced_at":"2025-06-12T16:09:12.823Z","repository":{"id":88796815,"uuid":"49863570","full_name":"scify/Benefile","owner":"scify","description":null,"archived":false,"fork":false,"pushed_at":"2016-06-09T08:52:04.000Z","size":10932,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-05-18T17:52:41.423Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scify.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":"2016-01-18T08:43:54.000Z","updated_at":"2016-03-19T14:21:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"53c7b4d9-3c9c-4307-9069-105b31a78f00","html_url":"https://github.com/scify/Benefile","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/scify/Benefile","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scify%2FBenefile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scify%2FBenefile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scify%2FBenefile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scify%2FBenefile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scify","download_url":"https://codeload.github.com/scify/Benefile/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scify%2FBenefile/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259500231,"owners_count":22867338,"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-07T10:15:09.146Z","updated_at":"2025-06-12T16:09:12.777Z","avatar_url":"https://github.com/scify.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Benefile project\n\nDemo can be found here: http://benefile-project.scify.org/\n\n### Starting the project\n\nFor installing Laravel, please refer to [Official Laravel installation\nguide](http://laravel.com/docs/5.1).\n\n### Installing dependencies (assuming apache as web server and mysql as db):\n\nIn a nutchell (assuming debian-based OS), first install the dependencies needed:\n\nNote: php5 package installs apache2 as a dependency so we have no need to add\nit manually.\n\n`% sudo aptitude install php5 php5-cli mcrypt php5-mcrypt mysql-server php5-mysql`\n\nInstall composer according to official instructions (link above) and move binary to ~/bin:\n\n`% curl -sS https://getcomposer.org/installer | php5 \u0026\u0026 mv composer.phar ~/bin`\n\nAnd add ~/.composer/vendor/bin to your $PATH. Example:\n\n```\n% cat ~/.profile\n[..snip..]\nLARAVEL=/home/username/.composer/vendor\nPATH=$PATH:$LARAVEL/bin\n```\n\nAnd source your .profile with `% source ~/.profile`\n\nAfter cloning the project with a simple `git clone https://github.com/scify/Benefile.git`, type `cd Benefile \u0026\u0026 composer install` to install all dependencies.\n\n### Apache configuration:\n\n```\n% cat /etc/apache2/sites-available/mysite.conf\n\u003cVirtualHost *:80\u003e\n\tServerName myapp.example.com\n\tDocumentRoot \"/path/to/Benefile/public\"\n\t\u003cDirectory \"/path/to/Benefile/public\"\u003e\n\t\tAllowOverride all\n\t\u003c/Directory\u003e\n\u003c/VirtualHost\u003e\n```\n\nMake the symbolic link:\n\n`% cd /etc/apache2/sites-enabled \u0026\u0026 sudo ln -s ../sites-available/mysite.conf`\n\nEnable mod_rewrite and restart apache:\n\n`% sudo a2enmod rewrite \u0026\u0026 sudo service apache2 restart`\n\nFix permissions for storage directory:\n\n`% chown -R www-data /path/to/Benefile/storage \u0026\u0026 chown -R www-data /path/to/Benefile/public`\n\nor\n\n`% find . type -d -exec chmod 775 {} \\; \u0026\u0026 find . -type f -exec chmod 664 {} \\; \u0026\u0026 chown -R :www-data /path/to/Benefile/Storage \u0026\u0026 chown -R :www-data /path/to/Benefile/public`\n\nThe above, changes the group ownership of public and storage directories to www-data, and `find` command changes permissions from 755 to 775 for directories and from 644 to 664 for files. This way, your web server user should be able to have write access with some sane security.\n\nTest your setup with:\n\n`% php artisan serve`\n\nand navigate to localhost:8000.\n\n\n### Nginx configuration:\n\nAdd additional the additional dependencies needed:\n\n`% sudo aptitude install nginx php5-fpm`\n\nDisable cgi.fix_pathinfo at /etc/php5/fpm/php.ini: `cgi.fix_pathinfo=0`\n\n`% sudo php5enmod mcrypt \u0026\u0026 sudo service php5-fpm restart`\n\nNginx server block:\n\n```\nserver {\n    listen 80 default_server;\n    listen [::]:80 default_server ipv6only=on;\n\n    root /path/to/Benefile/public;\n    index index.php index.html index.htm;\n\n    server_name server_domain_or_IP;\n\n    location / {\n        try_files $uri $uri/ /index.php?$query_string;\n    }\n\n    location ~ \\.php$ {\n        try_files $uri /index.php =404;\n        fastcgi_split_path_info ^(.+\\.php)(/.+)$;\n        fastcgi_pass unix:/var/run/php5-fpm.sock;\n        fastcgi_index index.php;\n        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\n        include fastcgi_params;\n    }\n}\n```\n\n`% sudo service nginx restart`\n\nFor persmissions, you may look above.\n\nAnd finally, set the user appropriately:\n\n`% sudo chown -R www-data storage`\n\n*database instructions placeholder*\n\nInitialize the database with `php artisan migrate` and test the installation with `php artisan serve` and hit `localhost:8000/auth/register` at your browser of choice.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscify%2Fbenefile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscify%2Fbenefile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscify%2Fbenefile/lists"}