My hoster has checked all the htaccess files and all needed functions are enabled according to him.
What else can we do?

voidsysadmin Can you elaborate how you did this? My hosting provider stated that both "URL Rewriting" is enabled on this server and the "AllowOverride" directive is set to All. Yet still getting "No input file specified."

You might want to start your own thread.
Include your setup information, what the issue is, etc.

20 days later

Hi there
We've found a working solution with our provider. All ".htaccess" files needs to be edited like this:

Old: RewriteRule .*$ %1/dispatcher.php/$1 [L]
New: RewriteRule .*$ %1/dispatcher.php/$1 [R,L]

this seems to work.

regards
Lukas

    cross-it

    Odd as I didn't make any changes and it works fine with Apache. But whatever works for you I guess.

    Cheers.

    a month later

    I was also concerned by the problem but I've just fixed it.:

    I was redirected to "404 Not Found" at the end of the Microsoft 365 Authentication process and not getting the token back into osTicket. It was on a freshly installed Apache2 server with no other config except the default + my vhost for osTicket.
    The problem was indeed coming from the rewriting rules in the api/.htaccess file that were getting ignored.

    I've just fixed the problem by doing two things:

    1. checking that the rewriteModule is enabled by using a2enmod rewrite command (it was actually already OK in my case).
    2. adding the following AllowOverride directive in my vhost configuration

    <Directory /var/www/support.mycompany.com/api>
    AllowOverride FileInfo
    </Directory>

    Please adjust the path to your context.
    Please note that the value "All" is not required. "FileInfo" is enought for the RewriteEngine according to apache2 documentation.

    18 days later

    I'm confused by your post. the .htaccess in /api reads:

    <IfModule mod_rewrite.c>
    
    RewriteEngine On
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} (.*/api)
    
    RewriteRule ^(.*)$ %1/http.php/$1 [L]
    
    </IfModule>

    So I am not real sure what you are telling us to edit.

    13 days later

    Hi All, Verify you have selected PHP 8.0x for your site - mine was set to 7.4.

    I just setup a clean new install of 1.17.2, and have got this same error, "no input file specified".

    This site is hosted on SiteGround.

      As microsoft is changed so i also installed the new version of OSticket.

      [Edited by Admin - do NOT advertise]

      6 months later

      patricksmithosticket
      Enabling the AllowOverride module allows the use of .htaccess files in your site's configuration, which is often required for URL rewriting rules. Updating the AllowOverride directive to All in your Apache configuration file (httpd.conf) or the site's configuration file (in the sites-available directory) will enable this functionality.

      24 days later

      nothing suggested here helped me except the tipp from @cross-it ...

      I just needed to change [L] to [R,L] in this line in the /api/.htaccess:

      RewriteRule ^(.*)$ %1/http.php/$1 [R,L]

      now its finally wokring. Im using plesk as a hosting panel. (and "php by apache" needs to be activated otherwise the htaccess are not doing anything)

      maybe @KevinTheJedi if it does not "hurt" other installs maybe you can add the "R" to the codebase?

      a month later

      Try this .htaccess.

      <IfModule mod_rewrite.c>
      RewriteEngine On
      
      # Exclude existing files and directories from rewrite
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      
      # Rewrite URLs that match the /api pattern
      RewriteRule ^api/(.*)$ http.php/$1 [L]
      </IfModule>

      I hope it helps

      Write a Reply...