Automated php.info creation

2 posts / 0 new
Last post
#1 Wed, 09/17/2014 - 05:05
lostandfound

Automated php.info creation

I realise that the idea is to dream big but...

I think it would be handy if there was a "Create php.info page" option available when creating a new server.

This would help those who are unfamiliar with "stuff" get to grips more quickly and aid the support as they could say "what does it say on your php.info?"

Fri, 10/31/2014 - 12:06
ReArmedHalo

Can you explain more of what you mean?

If your taking about when people ask for phpinfo(); output then having that created automatically would be a security risk because anyone could view it. (Although this would be possible using the skeleton directory in /etc I believe.) "php.info" is simply s php file with the follow contents:

<div class="codeblock"><pre><code><span style="color: #000000"><span style="color: #0000BB"><?php<br /></span><span style="color: #007700">&</span><span style="color: #FF8000">#10;phpinfo();&#10;<br /></span><span style="color: #0000BB">?></span></span></code></pre></div>

You should never leave such a information filled file available on a web server for longer than is required to obtain the information you need. It reveals a lot of information that could be used in a hacking attempt.

-Dustin

Topic locked