Error "No input file specified"

software development

#1

Hello,

I am new here and moving my scripts from another server.

Some of my scripts have the following URL
domain.com/app/item.php/107894831663236222

It worked in my old server but here I get the error “No input file specified”.

I don’t understand the error message so I don’t know what to do. Is there something I can do?

And no, I must not change the URL, just the script or some settings.

Thanks,

Hanan


#2

I believe that this is due to DH using PHP via CGI

See
https://panel.dreamhost.com/kbase/index.cgi?area=2933

Under ‘drawbacks’ it says:

“Variables in the URL won’t work without using mod_rewrite (example.com/blah.php/username/info/variable).”

You can switch to PHP as Apache module, but there are some security implications. See above URL for more information on the risks, as well as how to switch.

Running PHP as Apache module, not CGI