Is there an equivalent of %laragon_root% for the Apache document root?


  • | 432 points

    Is there any? What about something like %php_bin% or %mysql_bin% ?


  • administrators
    | 82333 points

    @furomin : Yes, you can use %document_root%
    Too many variables will mess your environment. However, if you need them, you can define them in Menu > Laragon > startup file


  • | 432 points

    @leokhoa
    Thank you again, my friend! That's what I was looking for, I don't need that much variables, just php_dir and something like project_dir. Maybe I can skip the others like apache_root, mysql_root and such, if it's messing up my system.

    Just to make sure, these variables only affect the Terminal, or can I use them also from, let's say, a PHP script?


  • administrators
    | 82333 points

    @furomin : These variables only affect the Terminal.
    For PHP Script, you should use variables parsed by PHP, they are displayed in phpinfo


Log in to reply
 

Looks like your connection to Laragon was lost, please wait while we try to reconnect.