Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 6879 invoked from network); 26 Aug 2010 22:26:52 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Aug 2010 22:26:52 -0000 Received: (qmail 27557 invoked by uid 500); 26 Aug 2010 22:26:49 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 27520 invoked by uid 500); 26 Aug 2010 22:26:48 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 27512 invoked by uid 99); 26 Aug 2010 22:26:48 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Aug 2010 22:26:48 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [173.73.4.107] (HELO cryptodan.net) (173.73.4.107) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Aug 2010 22:26:25 +0000 Received: from alphacentari (static-173-73-4-106.washdc.fios.verizon.net [173.73.4.106]) by cryptodan.net (Postfix) with SMTP id D3AF133BA6 for ; Thu, 26 Aug 2010 22:15:24 +0000 (GMT) Message-ID: <009468FF14B545BCAC3D8A55F62B6075@alphacentari> From: "Daniel Reinhardt" To: References: <4C753F99.7010707@gmail.com> In-Reply-To: Date: Thu, 26 Aug 2010 22:25:59 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 15.4.3002.810 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3002.810 X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Mythweb Access Forbidden -----Original Message----- From: Mark Adams Sent: 25 August, 2010 17:10 To: users@httpd.apache.org 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. Mark On Wed, Aug 25, 2010 at 11:07 AM, Martin Hasicek wrote: 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 "
";
var_dum($tmpl);
var_dump(tmpl);
echo "
"; 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. mh On Wed, Aug 25, 2010 at 6:56 PM, Mark Adams wrote: I do have that file tree Martin, but it's slightly different: /var/www/html/mythweb/modules/_shared/tmpl/default/header.php notice the last three subdirectories "tmpl/default/header.php" versus tmpl/tmpl/header.php 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 /var/www/html/mythweb/modules/_shared/tmpl/_errors/db_vars_error.php '; // Print the page header require 'modules/_shared/tmpl/'.tmpl.'/header.php'; Mark On Wed, Aug 25, 2010 at 10:45 AM, Martin Hasicek wrote: 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 require(modules/_shared/tmpl/tmpl/header.php); to require(/var/www/html/mythweb/modules/_shared/tmpl/tmpl/header.php); mh 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 "modules/_shared/tmpl/tmpl/header.php". Am I a module short? Mar On Wed, Aug 25, 2010 at 10:26 AM, Martin Hasicek wrote: Hi Mark, my sorry. My english is not so good :-) Try to look here: http://httpd.apache.org/docs/current/mod/mod_dir.html#directoryindex and after that find in your configuration directive DirectoryIndex add mythweb.php there. It should look like: DirectoryIndex mythweb.php index.html index.php mh 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. Mark On Wed, Aug 25, 2010 at 10:15 AM, Martin Hasicek wrote: 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. mh On Wed, Aug 25, 2010 at 6:10 PM, Mark Adams wrote: On Wed, Aug 25, 2010 at 10:06 AM, Frank Gingras wrote: 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. Apache 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? Mark, What does the error log say, exactly? Frank 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 192.168.1.106] 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 Mark, Have you followed this install: http://svn.mythtv.org/trac/browser/branches/release-0-22-fixes/mythplugins/mythweb/INSTALL If it is infact related to the MythTV Project? Thanks, Daniel --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org