Tutorial first app issues when not installed in doc root |
OK, thanks for all the help. I wanted to summarize below to make it easier for folks trying to solve the same issue:
GOAL: Install Codeigniter 4.x using Composer on an existing website where you'd like the new Codeigniter application accessible via a URL referencing a sub directory, e.g. Existing website: www.yoursite.org, Apache DocumentRoot: /pub/users/you/yoursite Desire to have new Codeigniter app accessible as: www.yoursite.org/ci-news Follow the CodeIgniter 4.x install instructions for the demo app, briefly: Code: # go to your DocumentRoot NEXT - move stuff around since we want to reference via subdirectory in URL. Create a higher level directory outside the Document Root. It will hold all the application files and the Codeigniter install - inaccessible from Apache! Code: $ mkdir /pub/users/you/ci-news Almost done! Now edit a few files/permissions. Code: # Rename env to .env You should then see the Codeigniter welcome page at https://www.yoursite.org/ci-news and be able to complete the first app tutorial! |
Messages In This Thread |
Tutorial first app issues when not installed in doc root - by jmurtari - 05-05-2020, 09:18 AM
RE: Tutorial first app issues when not installed in doc root - by jreklund - 05-05-2020, 10:40 AM
RE: Tutorial first app issues when not installed in doc root - by jmurtari - 05-05-2020, 11:25 AM
RE: Tutorial first app issues when not installed in doc root - by jreklund - 05-05-2020, 11:42 AM
RE: Tutorial first app issues when not installed in doc root - by jmurtari - 05-05-2020, 12:45 PM
RE: Tutorial first app issues when not installed in doc root - by jreklund - 05-05-2020, 01:30 PM
RE: Tutorial first app issues when not installed in doc root - by jmurtari - 05-06-2020, 06:10 AM
|