httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Reinhardt" <>
Subject Re: [users@httpd] Mythweb Access Forbidden
Date Thu, 26 Aug 2010 22:25:59 GMT
-----Original Message----- 
From: Mark Adams
Sent: 25 August, 2010 17:10
Subject: Re: [users@httpd] Mythweb Access Forbidden

Okay, thanks Martin.  I am beat.  I'm going to turn in and pick this up after 
work tomorrow morning.

I appreciate your help, but it looks like we're at a dead end here too.  I 
suspect php isn't working somehow, though on the same server phpmyadmin and 
dokuwiki work just fine.

I don't know what is going on with mythweb and it's really eating at me.


On Wed, Aug 25, 2010 at 11:07 AM, Martin Hasicek <> 
Hi Mark,

as fare as I know, php variables have $ sign on begin. So, if tmpl is variable, 
row should like:

require 'modules/_shared/$tmpl/'.$tmpl.'/header.php';

you can very simple test it add this few rows before this require function:

echo "<pre>";
echo "</pre>";

if it is not variable or even in $tmpl is not any "default" string, well, you 
have several options.

a) go trought code and find out what and why it is broken.
b) simply exchange .'tmpl'. with default so it will look:

require 'modules/_shared/tmpl/default/header.php';

c) ask developer of application for a help or recommendation what to do.


On Wed, Aug 25, 2010 at 6:56 PM, Mark Adams <> wrote:

I do have that file tree Martin, but it's slightly different:


notice the last three subdirectories "tmpl/default/header.php" versus 

The function in question is actually looking for tmpl/'.tmpl.'/header.php.  I 
take that to mean that '.tmp.' is a variable that expands to the template name 
("default" is a template name in this context).  I have no idea how or why it is 
screwing this up.  Here is the relevant code chunk from 

* @url         $URL:

* @date        $Date: 2009-09-15 22:02:29 -0700 (Tue, 15 Sep 2009) $
* @version     $Revision: 21884 $
* @author      $Author: kormoc $
* @license     GPL
* @package     MythWeb
* @subpackage

// Set the desired page title
    $page_title = 'MythWeb - Error - Database Setup Error';

// Custom headers
    $headers[] = '<link rel="stylesheet" type="text/css" 

// Print the page header
    require 'modules/_shared/tmpl/'.tmpl.'/header.php';


On Wed, Aug 25, 2010 at 10:45 AM, Martin Hasicek <> 
Hi Mark,

now the apache is serving your page and this is a PHP error. So apache is 
working fine and we have to tune PHP now.

on line 23 in file 
/var/www/html/mythweb/modules/_shared/tmpl/_errors/db_vars_error.php you are 
including some other file by function require. PHP is not able to find this 
file, because it is looking into relative path 
modules/_shared/tmpl/tmpl/header.php. Please, check if you have 
/var/www/html/mythweb/modules/_shared/tmpl/tmpl/header.php file present on 
system and if yes, try to change function





On Wed, Aug 25, 2010 at 6:38 PM, Mark Adams <> wrote:
Steve: These machines are all on my lan and they are on static IP's.  I've 
ditched the "access it from the internet" idea. That will only work if I can get 
a second frontend running on my primary web server because my dls provider has 
all the ports locked down.

Martin: I added mythweb to the DirectoryIndex and that  is progress, I guess.  I 
got a web page that said:

Warning at /var/www/html/mythweb/modules/_shared/tmpl/_errors/db_vars_error.php, 
line 23:
require(modules/_shared/tmpl/tmpl/header.php) [function.require]: failed to open 
stream: No such file or directory

The error_log says nothing about it. I've looked as line 23 in db_vars_error.php 
and I have no idea what it wants regarding 

Am I a module short?


On Wed, Aug 25, 2010 at 10:26 AM, Martin Hasicek <> 
Hi Mark,

my sorry. My english is not so good :-) Try to look here:

and after that find in your configuration directive DirectoryIndex add 
mythweb.php there. It should look like:

DirectoryIndex mythweb.php index.html index.php


On Wed, Aug 25, 2010 at 6:21 PM, Mark Adams <> wrote:
I'm sorry Martin, that makes little sense to me.  This thing is setup by 
defaults to point to /var/www/html/mythweb and execute mythweb.php. It isn't 
supposed to display a file index, so disabling Autoindex seems the way to go. I 
don't think I need DirectoryIndex because I dont' want a directory -- I want it 
to execute the mythweb.php script.


On Wed, Aug 25, 2010 at 10:15 AM, Martin Hasicek <> 
Hi Mark,

by directive DirectoryIndex you are enumerate files, which will be listed in 
case, when client will point only to dorectory. So in case that client will call 
http://mythweb/ apache will check existence of files enumerated by 
DirectoryIndex. If it is not able to find them, apache try to do autoindex - 
display directory in web form.

Autoindex is disabled by Options in your configuration and DirectoryIndex is not 
present in directory. Logical result of it is 403.

I hope it will help you.


On Wed, Aug 25, 2010 at 6:10 PM, Mark Adams <> wrote:

On Wed, Aug 25, 2010 at 10:06 AM, Frank Gingras <> 

On 25/08/2010 12:05 PM, Mark Adams wrote:
I really hate to bother the group with this issue because my ignorance about
apache access is so profound. But here goes.

I was attempting to get mythweb accessible from the Internet and just all of
a sudden, it was not available (error 403).  I have spent hours editing the
hddpd.conf file, the mythweb.conf file, file permissions, implementing and
then deimplementing .htaccess files, and everything else I can find.
Unfortuanately, I can't get mythweb to show up on any browser on my lan.
This after Mythweb ran spectacularly on this system for years. The only
thing I can find that seems amiss is that my web server doesn't seem to
support php_value or php_flag.

Server version: Apache/2.2.14 (Mandriva Linux/PREFORK-1.5mdv2010.0)
Server built:   Aug 16 2010 06:19:58

PHP 5.16

Mythweb 0.23.1

I will be more than happy to point helpers toward httpd.conf , or any other
files, at pastbin if it would help.

Can anybody tell me anything?


What does the error log say, exactly?


Thanks for asking Frank. I've got logging turned up to debugging and all it 
gives me is this:

[Wed Aug 25 10:04:06 2010] [error] [client] Directory index 
forbidden by Options directive: /var/www/html/mythweb/

I believe this confirms that it's just a misconfig somewhere on my part.
Mark Adams

Mark Adams

Mark Adams

Mark Adams

Mark Adams


Have you followed this install:

If it is infact related to the MythTV Project?


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message