Does cloudlinux set any environment variables?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abc2000x2000
    Member
    Forum Explorer
    • Mar 2021
    • 44

    #1

    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.
  • skhristich
    Senior Member
    • Nov 2019
    • 595

    #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

    • ogp
      Junior Member
      • Oct 2018
      • 1

      #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

      • skhristich
        Senior Member
        • Nov 2019
        • 595

        #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

        • skhristich
          Senior Member
          • Nov 2019
          • 595

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

          Comment

          • hawtrajpoot
            Junior Member
            • Mar 2021
            • 1

            #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

            • skhristich
              Senior Member
              • Nov 2019
              • 595

              #7
              Finally, Something that actually worked.

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

              Comment

              • skhristich
                Senior Member
                • Nov 2019
                • 595

                #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...