Skip to content

Docs: Note for No input file specified #6542

@neznaika0

Description

@neznaika0

PHP Version

7.4

CodeIgniter4 Version

4.2.6

CodeIgniter4 Installation Method

Composer (using codeigniter4/appstarter)

Which operating systems have you tested for this bug?

Linux

Which server did you use?

apache

Database

No response

What happened?

On one of the hosting reg.ru there is a problem "No input file specified"
I believe that this is an incorrect server setting (related due to nginx or php-cgi), they write about it on other resources.
The problem was solved by changing public/.htaccess
on the
RewriteRule ^([\s\S]*)$ index.php [L,NC]
I don’t know how common this error is, maybe it’s worth adding a note about this to the documentation?
https://codeigniter.com/user_guide/installation/troubleshooting.html
for example this: If you encounter a No input file specified error, try changing htaccess to "code example"

Steps to Reproduce

Move files from localhost to shared hosting

Expected Output

Must run app

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugVerified issues on the current code behavior or pull requests that will fix themdocumentationPull requests for documentation only

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions