UNRAID's PHP


Recommended Posts

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.

Link to comment
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

Link to comment
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

Link to comment

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.