Jump to content
Sign in to follow this  
sgt_spike

UNRAID's PHP

5 posts in this topic Last Reply

Recommended Posts

Posted (edited)

This may be a simple question, but one I cannot answer.

 

How can I serve up UNRAID's phpinfo() command on chrome?

 

Also can I install php extensions to UNRAID's php?

Edited by sgt_spike

Share this post


Link to post

You could create a file called something like 'info.php' containing

<?PHP
echo phpinfo(INFO_ALL);
?>

and place it into /usr/local/emhttp and then use a URL of the form   servername/info.php.   Note, however, that this would not survive a reboot as that location is only in RAM.

 

No idea about installing php extensions.   However even if you succeed then they would need re-applying after every reboot.

 

Perhaps you should mention what it is you are trying to achieve as someone may then have a suggestion.

Share this post


Link to post
1 hour ago, itimpi said:

You could create a file called something like 'info.php' containing


<?PHP
echo phpinfo(INFO_ALL);
?>

and place it into /usr/local/emhttp and then use a URL of the form   servername/info.php.   Note, however, that this would not survive a reboot as that location is only in RAM.

 

No idea about installing php extensions.   However even if you succeed then they would need re-applying after every reboot.

 

Perhaps you should mention what it is you are trying to achieve as someone may then have a suggestion.

I was wanting to install composer to be able to use their packages.  In doing so, PHP needs phar extension and the iconv extension install for composer to install correctly

Share this post


Link to post

OK.

 

key point is that nothing you install will survive a reboot, so you need to work out the command sequence required and then need to run it on every boot.    You can use something like the User Scripts plugin to help with running Scripts when the Array first starts.

Share this post


Link to post
12 minutes ago, itimpi said:

OK.

 

key point is that nothing you install will survive a reboot, so you need to work out the command sequence required and then need to run it on every boot.    You can use something like the User Scripts plugin to help with running Scripts when the Array first starts.

composer does have a docker that might be better to use, however I'm not sure how to set it up on my own

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this