Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After installation, not able to access any pages #171

Open
shinokada opened this issue Aug 21, 2016 · 7 comments
Open

After installation, not able to access any pages #171

shinokada opened this issue Aug 21, 2016 · 7 comments

Comments

@shinokada
Copy link

I followed the installation instruction and migrated database. But when I visit http://localhost/ci_sprint/index.php/home, nothing comes out.

What am I doing wrong? Any suggestions?

@ghost
Copy link

ghost commented Aug 21, 2016

Do you have a blank page? Any entry in log?

@shinokada
Copy link
Author

shinokada commented Aug 21, 2016

I found this in log file.

ERROR - 2016-08-21 19:07:56 --> Severity: Warning --> mkdir(): Invalid path /Users/sokada/Sites/ci_sprint/system/libraries/Session/drivers/Session_files_driver.php 117

ERROR - 2016-08-21 19:07:56 --> Severity: error --> Exception: Session: Configured save path '' is not a directory, doesn't exist or cannot be created. /Users/sokada/Sites/ci_sprint/system/libraries/Session/drivers/Session_files_driver.php 119

@shinokada
Copy link
Author

I added a dir in system/cache and add the following to config.php

$config['sess_save_path'] = BASEPATH. 'cache/';

Now I can go to the home page.

However when I click the login, then I go to http://localhost/ci_sprint/login which no page is displayed. But when I go to http://localhost/ci_sprint/index.php/login then I get login page.

Where can I fix this?

@shinokada
Copy link
Author

Ok I added the following in the config.php

$config['index_page'] = 'index.php';

Then I get index.php in the uri.

But some assets are not loading. Is it because I added index.php.
Now how can I fix this?

notloading

@lonnieezell
Copy link
Member

Have you setup an htaccess file (or the equivalent)?

Additionally, because you're serving the site in a sub-folder, it's likely you'd need to do a couple more settings:

  • config.php - set the base_url value to match your current setup (http://localhost/ci_sprint)
  • You'll probably need to add a RewriteBase /ci_sprint setting in the htaccess file.

@shinokada
Copy link
Author

shinokada commented Aug 22, 2016

Sprint has .htaccess file already in the root dir.

I have this in config already.

$config['base_url'] = 'http://localhost/ci_sprint/';

Isn't that enough?

@lonnieezell
Copy link
Member

Sounds like it should be pretty close, but I'd add the RewriteBase /ci_sprint to the htaccess. I think that should get it working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants