0

I just upgraded my PHP version to PHP 5.6.x running Fastcgi. I got a problem with a web application after te upgrade. When I remove the one RewriteRule the web application gives me the error: - No input file specified.

RewriteEngine On
RewriteBase /m/
RewriteCond $1 ^(index.php|media/images|media/js|media/css)
RewriteRule ^(application|modules|system) - [F,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]
RewriteRule ^$ index.php/$1 [PT,L]
RewriteRule ^(media/.*.(gif|jpe?g|png))$ application/views/$0 [PT,L]
6
  • make sure extension is enable : mod_rewrite Commented Jan 18, 2016 at 15:25
  • I checked datevoorjongeren.nl/m/check.php Commented Jan 18, 2016 at 15:45
  • it seems mod_rewrite is not enable. Commented Jan 18, 2016 at 15:48
  • i.imgur.com/gDm8iqY.png Modules are loaded Commented Jan 18, 2016 at 15:52
  • you can come on chat for this prob. DirectoryIndex index.php RewriteEngine on RewriteBase / Commented Jan 18, 2016 at 15:57

1 Answer 1

0

I was having this same issue and found it was due to a setting in my .user.ini file. I should note that the setting in this file was overwriting the value in php.ini, so you may want to check the settings there for this issue.

Anyway, I had pulled the php site from a Plesk instance and was trying to run under IIS. Apparently there is a setting, "open_basedir", that tells the php engine what directory-tree the site can access. In my case, the setting was set in the .user.ini file, and it was hardcoded to a path that was relevant only to the plesk server it was originally hosted on.

I'm not a php developer, so forgive me any terms I may have used incorrectly.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.