Spaces:
Sleeping
Sleeping
Commit
·
ada3e75
1
Parent(s):
7e3f84b
test envs
Browse files- Dockerfile +2 -1
- mvc/public/index.php +2 -0
Dockerfile
CHANGED
@@ -31,4 +31,5 @@ RUN locate php
|
|
31 |
RUN cat /etc/apache2/mods-available/php8.2.conf
|
32 |
|
33 |
CMD \
|
34 |
-
env | grep _ >> /etc/environment; env;
|
|
|
|
31 |
RUN cat /etc/apache2/mods-available/php8.2.conf
|
32 |
|
33 |
CMD \
|
34 |
+
env | grep _ >> /etc/environment; env; \
|
35 |
+
grep -rnw '/etc/apache2/' -e 'clear_env' ; echo nada ; whoami; id; cat /etc/apache2/sites-enabled/000-default.conf; service apache2 start; tail -F /var/log/apache2/error.log
|
mvc/public/index.php
CHANGED
@@ -1,6 +1,8 @@
|
|
1 |
<?php
|
2 |
phpinfo();
|
3 |
print_r(getenv());
|
|
|
|
|
4 |
define('APP_HOME',dirname(dirname(__FILE__)));
|
5 |
define('URL',getenv('URL'));
|
6 |
define("APP_NAME",getenv("APP_NAME"));
|
|
|
1 |
<?php
|
2 |
phpinfo();
|
3 |
print_r(getenv());
|
4 |
+
echo('<br>');
|
5 |
+
print_r($_ENV);
|
6 |
define('APP_HOME',dirname(dirname(__FILE__)));
|
7 |
define('URL',getenv('URL'));
|
8 |
define("APP_NAME",getenv("APP_NAME"));
|