Skip to content
This repository has been archived by the owner on May 28, 2020. It is now read-only.

spekulatius/silverstripe-phpinfo

Repository files navigation

Give you a chance to view the phpinfo() output as a task. Requires admin permissions.

Do not permanently install this! Only use this if you are know what you are doing!

Why?

Sometimes you have to work with servers you can't ssh into and get more information about e.g. installed packages or versions. This package allows you get the information if you have admin privileges.

Requirements

  • PHP >= 5.6
  • SilverStripe Framework ~3.0.

Usage

You should not leave this package installed permanently because it could give a potential attacker information about your environment!

For the installation you can either download the package, unzip it into your project directory and run dev build manually or run the following commands in your project directory:

  1. Install into your project:

    composer require spekulatius/silverstripe-phpinfo
    
  2. Deploy onto the environment in question.

  3. Login as a admin

  4. Go on yourproject.com/dev/tasks and find the phpinfo task...

  5. Remove package:

    composer remove spekulatius/silverstripe-phpinfo
    
  6. Deploy again onto the environment to remove the package from the server!