Search the Community
Showing results for tags 'conf'.
-
47I just got real tired of seeing errors from apache about no server path found. I set and reset paths in my computer, even edited reg, and went through every darn file in all libs. so in flustration i set my own and so far it works Quick setup is using the existing variable that apache can't find in HTTP.CONF at the top add <IfDefine US_ROOTF> Define US_ROOTF C:/PATH **The path i want the variable for** </IfDefine> <IfDefine !US_ROOTF> Define US_ROOTF C:/PATH **The path i want the variable for** # Define SSL </IfDefine> Thats it// NOW TEST it safely using httpd_z.exe -t -D DUMP_RUN_CFG Apache2.4 I researched it out and here is what worked for me. and tested using httpd_z.exe -t -D DUMP_RUN_CFG RESULTS::: ServerRoot: "C:/path/core/apache2" Main DocumentRoot: "C:/path/apache/htdocs" Main ErrorLog: "C:/path/core/apache2/logs/error.log" Mutex rewrite-map: using_defaults Mutex default: dir="C:/path/core/apache2/logs/" mechanism=default PidFile: "C:/path/core/apache2/logs/httpd.pid" Define: DUMP_RUN_CFG Define: US_ROOTF=C:/path **THIS IS THE ROOT PATH VARIABLE I JUST MADE** Define: php54 #<IfDefine TEST> # Define servername test.example.com #</IfDefine> #<IfDefine !TEST> # Define servername www.example.com # Define SSL #</IfDefine> #DocumentRoot /var/www/${servername}/htdocs <IfDefine US_ROOTF> Define US_ROOTF C:/PATH **The path i want the variable for** </IfDefine> <IfDefine !US_ROOTF> Define US_ROOTF C:/PATH **The path i want the variable for** # Define SSL </IfDefine> #DocumentRoot /var/www/${servername}/htdocs OPTIONS ON HOW TO USE EXAMPLE of use ServerRoot = ${US_ROOTF} <IfDefine php54> LoadFile "${US_ROOTF}/core/php54/icudt53.dll" PHPIniDir "${US_ROOTF}/core/php54/php_production.ini"