{"id":15188403,"url":"https://github.com/osify/laravel-linux-setup","last_synced_at":"2026-02-02T22:20:34.028Z","repository":{"id":71774258,"uuid":"141528355","full_name":"osify/laravel-linux-setup","owner":"osify","description":"First time when Laravel put in production on Linux, you need this to help.","archived":false,"fork":false,"pushed_at":"2020-11-18T07:37:13.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-10T01:37:54.832Z","etag":null,"topics":["laravel","laravel55","linux","shell-script","ubuntu"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/osify.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-07-19T05:25:31.000Z","updated_at":"2020-11-18T07:37:15.000Z","dependencies_parsed_at":"2023-03-13T20:19:29.454Z","dependency_job_id":null,"html_url":"https://github.com/osify/laravel-linux-setup","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"266cf67fb704a8291cc5e8ea026346fc5730b5b4"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osify%2Flaravel-linux-setup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osify%2Flaravel-linux-setup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osify%2Flaravel-linux-setup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osify%2Flaravel-linux-setup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/osify","download_url":"https://codeload.github.com/osify/laravel-linux-setup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240970218,"owners_count":19886526,"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":["laravel","laravel55","linux","shell-script","ubuntu"],"created_at":"2024-09-27T19:04:55.662Z","updated_at":"2026-02-02T22:20:29.006Z","avatar_url":"https://github.com/osify.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OVERVIEW\nBefore using the shell script, please check the web server user and replace it. See quick remark below to find.\n\nDetail later on in this blog: http://ask.osify.com\n\n# QUICK REMARK\n``` \t\nps aux | egrep '(apache|httpd)'\n```\n\nfind user that running the apache:\n\n```\nroot@ubuntu-server:/opt/www/myweb# ps aux | egrep '(apache|httpd)'\ndaemon    3055  0.1  0.8 377988 33440 ?        S    03:08   0:06 /opt/lampstack/apache2/bin/httpd.bin -f /opt/lampstack/apache2/conf/httpd.conf\ndaemon   10913  0.0  0.7 377324 31304 ?        S    04:02   0:00 /opt/lampstack/apache2/bin/httpd.bin -f /opt/lampstack/apache2/conf/httpd.conf\nroot     11019  0.0  0.0  12948   968 pts/0    S+   04:22   0:00 grep -E (apache|httpd)\ndaemon   14244  0.0  0.9 378344 38476 ?        S    Jun05   0:11 /opt/lampstack/apache2/bin/httpd.bin -f /opt/lampstack/apache2/conf/httpd.conf\ndaemon   14245  0.0  0.9 378376 36648 ?        S    Jun05   0:10 /opt/lampstack/apache2/bin/httpd.bin -f /opt/lampstack/apache2/conf/httpd.conf\ndaemon   14995  0.0  0.9 378468 37156 ?        S    Jun05   0:10 /opt/lampstack/apache2/bin/httpd.bin -f /opt/lampstack/apache2/conf/httpd.conf\ndaemon   14996  0.0  0.8 378040 35672 ?        S    Jun05   0:09 /opt/lampstack/apache2/bin/httpd.bin -f /opt/lampstack/apache2/conf/httpd.conf\ndaemon   14998  0.0  0.9 377992 36564 ?        S    Jun05   0:09 /opt/lampstack/apache2/bin/httpd.bin -f /opt/lampstack/apache2/conf/httpd.conf\ndaemon   19249  0.1  0.8 378108 33644 ?        S    01:39   0:09 /opt/lampstack/apache2/bin/httpd.bin -f /opt/lampstack/apache2/conf/httpd.conf\ndaemon   19504  0.1  0.8 378168 35152 ?        S    02:42   0:09 /opt/lampstack/apache2/bin/httpd.bin -f /opt/lampstack/apache2/conf/httpd.conf\ndaemon   19535  0.1  0.8 378160 35292 ?        S    02:46   0:09 /opt/lampstack/apache2/bin/httpd.bin -f /opt/lampstack/apache2/conf/httpd.conf\nroot     20101  0.0  1.0 374696 42672 ?        Ss   May30   0:17 /opt/lampstack/apache2/bin/httpd.bin -f /opt/lampstack/apache2/conf/httpd.conf\n\n```\n\nAs in above output, the apache running by *daemon* but most of the case, it should run by *www-data*\n\nYou can also use following command to find the correct user/group of apache:\n\n```\negrep -iw --color=auto 'user|group' /path/to/httpd/conf\n```\n\nAs above example, we can run as: \n```\negrep -iw --color=auto 'user|group' /opt/lampstack/apache2/conf/httpd.conf\n```\n\nAnd the output is:\n\n```\n# If you wish httpd to run as a different user or group, you must run\n# User/Group: The name (or #number) of the user/group to run httpd as.\n# It is usually good practice to create a dedicated user and group for\nUser daemon\nGroup daemon\n    LogFormat \"%h %l %u %t \\\"%r\\\" %\u003es %b \\\"%{Referer}i\\\" \\\"%{User-Agent}i\\\"\" combined\n      LogFormat \"%h %l %u %t \\\"%r\\\" %\u003es %b \\\"%{Referer}i\\\" \\\"%{User-Agent}i\\\" %I %O\" combinedio\n# User home directories\n# The following lines prevent .user.ini PHP settings files from being viewed by Web clients.\n\u003cFiles \".user.ini\"\u003e\n```\n\nAnother way, you can also see via phpinfo(); on User/Group.\n\n## Plugins/Solutions\n\n1. Add: `rebuild-vue.sh` for vuejs project:\n\n- To solve problem of node permission issue when execute nodejs/vuejs\n- To solve service worker of laravel in case you use Quoue/Job","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosify%2Flaravel-linux-setup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fosify%2Flaravel-linux-setup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosify%2Flaravel-linux-setup/lists"}