Monimoy Ghosh
Monimoy Ghosh

Reputation: 11

cannot display phpinfo() call on nginx server

Local host shows 'engine x welcome' page instead of phpinfo() call on ubuntu 16.04 lts, even though I have configured php.ini file. On opening localhost/index.php download link appears.

Upvotes: 1

Views: 5738

Answers (1)

RVT
RVT

Reputation: 220

Any good configuration will likely include "disable_functions = phpinfo" in the php.ini file.

I'm confused as to why you are getting a "download" link, however. That most-often indicates that you have an improperly set MIME-type. (eg. your server doesn't know how to handle a PHP file - so it sets it to application/octet-stream and your web browser, also not knowing how to handle it, will just download it)

Upvotes: 1

Related Questions