[mythtv-users] mythweb setenv

James jam at tigger.ws
Thu Feb 3 00:01:51 UTC 2022



> On 3 Feb 2022, at 12:06 am, Stephen Worthington <stephen_agent at jsw.gen.nz> wrote:
> 
> On Wed, 2 Feb 2022 21:44:09 +0800, you wrote:
> 
>> Once upon a time I set mythweb working on opensuse. 
>> For unrelated reasons I now want a port based <VirtualHost *:8080>
>> 
>> At the time the mythweb.conf
>> 
>>           setenv db_server        "192.168.5.33"
>>           setenv db_name          "mythconverg"
>>           setenv db_login         "mythtv"
>>           setenv db_password      "mythtv"
>> 
>> gave me a hard time, and when I quelled it all has worked for years.
>> 
>> With my virtualhost setup again apache will not start flagging these lines as in error.
>> Since I am still licking my wounds, and I foolishly skipped backup of /etc/apache2, and it is just as much hard work to put it back as it is to solve the problem has anyone seen this and any suggestions on how to solve. Also a grudging respect for the Debian 'hosts available' paradigsm.
>> 
>> James
> 
> If you want an example of a working virtualhost setup for this, you
> could set up a virtual machine and install Ubuntu 20.04 and MythTV on
> it.  In my /etc/apache2/sites-available/mythweb.conf file above the
> setenv lines, there is a comment that might be relevant:
> 
> "Make sure you have mod_env enabled.

A clod of earth smeering my brain I had

  DirectoryIndex /srv/www/htdocs/envoy

I can't see HOW a virtualhost could cause this (which has been working for years)

512 [E_ASSERT_ERROR] => 4096 [FATAL] => 256 [PHP_MIN_VERSION] => 5.3 [WARNING] => 1024 [error_email] => [gb] => 1073741824 [hostname] => sandypit [http_host] => 192.168.5.33 [kb] => 1024 [mb] => 1048576 [module] => [modules_path] => /srv/www/htdocs/mythweb/modules [root] => /mythweb/ [root_auth_url] => http://192.168.5.33/mythweb/ [root_url] => http://192.168.5.33/mythweb/ [stream_url] => http://192.168.5.33:80//mythweb/ [tb] => 1099511627776 ) -->
skin_urlimg/favicon.ico" type="image/x-icon"> 512 [E_ASSERT_ERROR] => 4096 [FATAL] => 256 [PHP_MIN_VERSION] => 5.3 [WARNING] => 1024 [error_email] => [gb] => 1073741824 [hostname] => sandypit [http_host] => 192.168.5.33 [kb] => 1024 [mb] => 1048576 [module] => [modules_path] => /srv/www/htdocs/mythweb/modules [root] => /mythweb/ [root_auth_url] => http://192.168.5.33/mythweb/ [root_url] => http://192.168.5.33/mythweb/ [stream_url] => http://192.168.5.33:80//mythweb/ [tb] => 1099511627776 ) -->
skin_urlimg/favicon.ico" type="image/x-icon"> 512 [E_ASSERT_ERROR] => 4096 [FATAL] => 256 [PHP_MIN_VERSION] => 5.3 [WARNING] => 1024 [error_email] => [gb] => 1073741824 [hostname] => sandypit [http_host] => 192.168.5.33 [kb] => 1024 [mb] => 1048576 [module] => [modules_path] => /srv/www/htdocs/mythweb/modules [root] => /mythweb/ [root_auth_url] => http://192.168.5.33/mythweb/ [root_url] => http://192.168.5.33/mythweb/ [stream_url] => http://192.168.5.33:80//mythweb/ [tb] => 1099511627776 ) -->
skin_urlimg/apple-touch-icon.png" /> 512 [E_ASSERT_ERROR] => 4096 [FATAL] => 256 [PHP_MIN_VERSION] => 5.3 [WARNING] => 1024 [error_email] => [gb] => 1073741824 [hostname] => sandypit [http_host] => 192.168.5.33 [kb] => 1024 [mb] => 1048576 [module] => [modules_path] => /srv/www/htdocs/mythweb/modules [root] => /mythweb/ [root_auth_url] => http://192.168.5.33/mythweb/ [root_url] => http://192.168.5.33/mythweb/ [stream_url] => http://192.168.5.33:80//mythweb/ [tb] => 1099511627776 ) -->
skin_urlimg/apple-touch-icon-72x72.png" /> 512 [E_ASSERT_ERROR] => 4096 [FATAL] => 256 [PHP_MIN_VERSION] => 5.3 [WARNING] => 1024 [error_email] => [gb] => 1073741824 [hostname] => sandypit [http_host] => 192.168.5.33 [kb] => 1024 [mb] => 1048576 [module] => [modules_path] => /srv/www/htdocs/mythweb/modules [root] => /mythweb/ [root_auth_url] => http://192.168.5.33/mythweb/ [root_url] => http://192.168.5.33/mythweb/ [stream_url] => http://192.168.5.33:80//mythweb/ [tb] => 1099511627776 ) -->
skin_urlimg/apple-touch-icon-114x114.png" /> 512 [E_ASSERT_ERROR] => 4096 [FATAL] => 256 [PHP_MIN_VERSION] => 5.3 [WARNING] => 1024 [error_email] => [gb] => 1073741824 [hostname] => sandypit [http_host] => 192.168.5.33 [kb] => 1024 [mb] => 1048576 [module] => [modules_path] => /srv/www/htdocs/mythweb/modules [root] => /mythweb/ [root_auth_url] => http://192.168.5.33/mythweb/ [root_url] => http://192.168.5.33/mythweb/ [stream_url] => http://192.168.5.33:80//mythweb/ [tb] => 1099511627776 ) -->

etc

James

PS
[sandypit] /home/jam [1004]% php -v
PHP 7.4.6 (cli) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies


More information about the mythtv-users mailing list