{"id":20760449,"url":"https://github.com/ashishtiwari1993/nginx-codeigniter-setup-ubuntu","last_synced_at":"2025-06-28T01:03:03.776Z","repository":{"id":120566129,"uuid":"91866463","full_name":"ashishtiwari1993/nginx-codeigniter-setup-ubuntu","owner":"ashishtiwari1993","description":"Nginx CodeIgniter setup","archived":false,"fork":false,"pushed_at":"2018-09-27T08:35:36.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-11T16:49:49.241Z","etag":null,"topics":["ci","nginx","nginx-ci-setup","nginx-codeigniter"],"latest_commit_sha":null,"homepage":null,"language":"DIGITAL Command Language","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/ashishtiwari1993.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":"2017-05-20T05:03:38.000Z","updated_at":"2018-09-28T07:15:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"f59a4dbf-cdf5-43a7-993e-59f095ac1d64","html_url":"https://github.com/ashishtiwari1993/nginx-codeigniter-setup-ubuntu","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ashishtiwari1993/nginx-codeigniter-setup-ubuntu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashishtiwari1993%2Fnginx-codeigniter-setup-ubuntu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashishtiwari1993%2Fnginx-codeigniter-setup-ubuntu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashishtiwari1993%2Fnginx-codeigniter-setup-ubuntu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashishtiwari1993%2Fnginx-codeigniter-setup-ubuntu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ashishtiwari1993","download_url":"https://codeload.github.com/ashishtiwari1993/nginx-codeigniter-setup-ubuntu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashishtiwari1993%2Fnginx-codeigniter-setup-ubuntu/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262357522,"owners_count":23298459,"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":["ci","nginx","nginx-ci-setup","nginx-codeigniter"],"created_at":"2024-11-17T10:13:39.888Z","updated_at":"2025-06-28T01:03:03.744Z","avatar_url":"https://github.com/ashishtiwari1993.png","language":"DIGITAL Command Language","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nginx codeigniter setup ubuntu\n\nubuntu 16.xx, 14.xx, CodeIgniter 3.x.x\n\nStep1: Install Nginx with following commands.\n        \n        sudo apt-get update\n        sudo apt-get install nginx\n        \n\nStep2: Download CodeIgniter latest version from here https://codeigniter.com/download .\n\nStep3: Extract CodeIgniter and place it here '/var/www/html/ci' .\n\nStep4: Go to `cd /etc/nginx/sites-available/` . \n\nStep5: Create file with your domain name like 'yourdomain.com' and copy below content. Replace your domain name.\n\n\tserver {\n\t\tlisten 80;\n\t\tlisten [::]:80;\n\n\n\t\troot /var/www/html/ci;\n\n\t\tautoindex on;\n\t\tindex index.php index.html index.htm index.nginx-debian.html;\n\n\t\tserver_name yourdomain.com;\n\n\t\tlocation / {\n\t\t\t# First attempt to serve request as file, then\n\t\t\t# as directory, then fall back to displaying a 404.\n\t\t\ttry_files $uri $uri/ /index.php;\n\t\t}\n\n\t\tlocation ~ \\.php$ {\n\t\t\tinclude snippets/fastcgi-php.conf;\n\t\t\tfastcgi_pass unix:/run/php/php7.0-fpm.sock;\n\t\t}\n\n\t\tlocation ~ /\\.ht {\n\t\t\tdeny all;\n\t\t}\n\t}\n\nStep7: Open ```/etc/nginx/nginx.conf``` . Add ```include /etc/nginx/sites-available/*``` under ```http{...}``` block.\n\nStep8: Complie nginx with ```sudo nginx -t```.\n\nStep9: Restart your Nginx server with ```systemctl restart nginx.service``` and hit ```yourdomain.com``` in browser. You should able to see codeIgniter index page.\n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashishtiwari1993%2Fnginx-codeigniter-setup-ubuntu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashishtiwari1993%2Fnginx-codeigniter-setup-ubuntu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashishtiwari1993%2Fnginx-codeigniter-setup-ubuntu/lists"}