Announcement

Collapse
No announcement yet.

Does cloudlinux set any environment variables?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Does cloudlinux set any environment variables?

    Hi,

    I would like to dynamically set php error log locations to store errors in a per-user location thats centralised (rather then relative to the script.

    According to the php config file docs you can refer to environment variables in the ini files using the format ${ENVIRONMENT_VARIABLE}, and I was hoping to store the following in the global altphp ini so that it occurs for all users on the server by defaut.

    Something like

    error_log = "${PATHTOUSERHOME}/php_errors/${ALTPHPVERSION}_error.log"

    or

    error_log = "/var/log/php/${USER}_${ALTPHPVERSION}_error.log"

    Does anyone know if there are some environment variables set inside cloudlinux that I can use to achieve this? Im running on a directadmin server with apache and the default php running under lsphp. All users are caged in cagefs.

  • #2
    Hello Oliver! Thank you for reaching out! We checked this should work. Try again or сan you open a support ticket https://cloudlinux.zendesk.com/hc/en-us/requests/new so we can take a closer look at your system? You can post the ticket number here and well link this thread to it. Thank you.

    Comment


    • #3
      What should work?

      I want to know if cloud linux sets any environment variables within the cages that I could use to personalise the php.ini error location on a global basis.

      If it does, Id like to know what those variables are called so I can use them.

      Comment


      • #4
        Hello Oliver! We did not add special environment variables for such purposes. But logically, if the PHP documentation says that its version should work, then this should work for us. Please let us know if you have any questions. Thanks in advance!

        Comment


        • #5
          Hello Karen! Happy to hear it and thanks for following up!

          Comment


          • #6
            > Hello Oliver! Thank you for reaching out! We checked this should work. Try again or сan you open a support ticket [https://cloudlinux.zendesk.com/hc/en-us/ so we can take a closer look at your system? You can post the ticket number here and well link this thread to it. Thank you.](https://cloudlinux.zendesk.com/hc/en-us/)

            Finally, Something that actually worked.

            Comment


            • #7
              Finally, Something that actually worked.

              Hello Molly,
              Thanks for following up! If you require any further information, let me know.

              Comment


              • #8
                > Hello Oliver! Thank you for reaching out! We checked this should work. Try again or сan you open a support ticket [https://cloudlinux.zendesk.com/hc/en-us/requests/new so we can take a closer look at your system? You can post the ticket number here and well link this thread to it. Thank you.](https://cloudlinux.zendesk.com/hc/en-us/)

                This answer has been very useful indeed, thank you.

                Comment

                Working...
                X