Problem with apache and mod_autoindex
Dear all, I hope I am in the right list for this kind of question. If not, I apologize... Got a strange behaviour with Apache 1.3.26 on Debian potato 2.2 rev7. The mod_autoindex generates correctly it's directory listing when the client is with the LAN. From outside, I get a "file does not exist" error inside the apache error.log. I wonder if the problem lies in the firewall (is mod_autoindex using anything else then port 80 ???) or more logically inside mod_autoindex config or httpd.conf ? A kind of "protection" for directory listing from outside the LAN ? Any anwer sincerely welcome ! Caracal - GH
Re: Apache / PHP4 config problem (newbee on PHP)
Thank you for your response. I moved the script to its original location (/var/www) but I get a strange behavior: - Using IE6, the browser asks me if I want to download the test.php script (???) - If I rename the .php script to .html, it displays just the header, nothing else, which is correct imho - If I try to access test.php via lynx, it just displays the html text. There is a tmp html file created, althought It seems to me that the php4 engine never starts to generate pages... Any other idea ? TYIA > On wo, 2003-01-15 at 13:50, Gregoire Hostettler wrote: > > > Got a (supposed) config problem with PHP4/Apache. > > > > OS: Debian potato 2.2r7, kernel 2.2.19 > > Apache 1.3.9 (Debian implementation) > > PHP4 4.0.3pl1-0p > > > > Attached are both the httpd.conf and srm.conf files, along with the > > access.log, error.log, php script involved and the output of apache -V > > (apachev file). > > Only the error.log was enough: > > [Wed Jan 15 14:29:55 2003] [notice] Apache/1.3.9 (Unix) Debian/GNU PHP/4.0.3pl1 mod_perl/1.21_03-dev configured -- resuming normal operations > [Wed Jan 15 14:29:55 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache/suexec) > [Wed Jan 15 14:31:49 2003] [error] (8)Exec format error: exec of /usr/lib/cgi-bin/test.php failed > [Wed Jan 15 14:31:49 2003] [error] [client 192.168.124.1] Premature end of script headers: /usr/lib/cgi-bin/test.php > > You are placing html files in cgi-bin directories. Don't do that, > because cgi-bin directories are reserved only for cgi scripts, not html > or php files. Just place the .php file in /var/www and I think it should > work. > > -- > Tot ziens, > Bart-Jan Vrielink -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Apache / PHP4 config problem (newbee on PHP)
Dear all, Hope I am at the right place/list. Got a (supposed) config problem with PHP4/Apache. OS: Debian potato 2.2r7, kernel 2.2.19 Apache 1.3.9 (Debian implementation) PHP4 4.0.3pl1-0p Attached are both the httpd.conf and srm.conf files, along with the access.log, error.log, php script involved and the output of apache -V (apachev file). I think that this should not be a tough problem, but all FAQs and manuals I have read already are stating different things which seem not be compatible. That is why I turn to you, Debian gurus ;-) Any clue highly appreciated ! Caracal - G. Hostettler6, ch. du Raidillon1522 Lucens Tél: 079 342 97 66 e-mail travaux généraux : [EMAIL PROTECTED]e-mail travaux webmaster : [EMAIL PROTECTED]e-mail personnel : [EMAIL PROTECTED] test.php Description: Binary data apachev Description: Binary data error.log Description: Binary data httpd.conf Description: Binary data srm.conf Description: Binary data access.log Description: Binary data
Re: GRE, VPN and suchlike
What do you want to do ? Simply use your Debian box as a firewall or use it as a VPN-accessible host ? In the first case, just follow the directions given by Brendan. It means opening the correct ports in ipchains and forward to your VPN server. In the second case, I have no experience of making a Debian box a VPN-aware server. Just ask Brendan (Sorry for the burden, Brendan ;-). Here is a copy of what he wrote: > Win2k clients come with Microsoft's PPTP VPN client. To set up a PPTP > server on debian you must install Poptop - http://www.poptop.org/ > > Then read up on how to patch pppd and the 2.2 kernel for it: > > http://www.vibrationresearch.com/pptpd/ > > Or the Howto under 2.4 (including iptables rules): > > http://home.swbell.net/berzerke/2.4_Kernel_PPTPD-HOWTO.txt > > Hope this helps. > > Brendan > Good luck ! Gregoire - Original Message - From: "Mezei Áron" <[EMAIL PROTECTED]> To: "'Gregory Hostettler'" <[EMAIL PROTECTED]> Sent: Sunday, April 07, 2002 3:58 AM Subject: RE: GRE, VPN and suchlike Hi! Can you help me a bit? I've read I think all available HOWTOs and document about masq-ing a PPTP based VPN, but I couldn't get it work. Maybe my PPTP server's config is not ok, but the following is the setup and this happens: WindowsXP | | debian masq'ing between an office network and the internet | | debian with pptpd installed I've created a pptp connection in the XP to the serverver with pptpd. in the server's ppp.log the following appears: Apr 7 03:52:14 algernon pptpd[6254]: CTRL: Client control connection started Apr 7 03:52:14 algernon pptpd[6254]: CTRL: Starting call (launching pppd, opening GRE) Apr 7 03:52:14 algernon pppd[6255]: pppd 2.4.1 started by root, uid 0 Apr 7 03:52:14 algernon pppd[6255]: using channel 25 Apr 7 03:52:14 algernon pppd[6255]: Using interface ppp0 Apr 7 03:52:14 algernon pppd[6255]: Connect: ppp0 <--> /dev/pts/2 Apr 7 03:52:14 algernon pppd[6255]: sent [LCP ConfReq id=0x1 ] Apr 7 03:52:17 algernon pppd[6255]: sent [LCP ConfReq id=0x1 ] Apr 7 03:52:20 algernon pppd[6255]: sent [LCP ConfReq id=0x1 ] Apr 7 03:52:23 algernon pppd[6255]: sent [LCP ConfReq id=0x1 ] Apr 7 03:52:26 algernon pppd[6255]: sent [LCP ConfReq id=0x1 ] Apr 7 03:52:29 algernon pppd[6255]: sent [LCP ConfReq id=0x1 ] Apr 7 03:52:32 algernon pppd[6255]: sent [LCP ConfReq id=0x1 ] Apr 7 03:52:35 algernon pppd[6255]: sent [LCP ConfReq id=0x1 ] Apr 7 03:52:38 algernon pppd[6255]: sent [LCP ConfReq id=0x1 ] Apr 7 03:52:41 algernon pppd[6255]: sent [LCP ConfReq id=0x1 ] Apr 7 03:52:44 algernon pppd[6255]: LCP: timeout sending Config-Requests Apr 7 03:52:44 algernon pppd[6255]: Connection terminated. Apr 7 03:52:44 algernon pppd[6255]: Exit. Apr 7 03:52:44 algernon pptpd[6254]: Error reading from pppd: Input/output error Apr 7 03:52:44 algernon pptpd[6254]: CTRL: GRE read or PTY write failed (gre,pty)=(6,5) Apr 7 03:52:44 algernon pptpd[6254]: CTRL: Client control connection finished So I don't know what could be the problem. If you can help me and if you have some time for my problem please answer me. Thanks a lot! Aron Mezei -Eredeti üzenet- Feladó: Gregory Hostettler [mailto:[EMAIL PROTECTED]] Küldve: 2002. április 5. 15:58 Címzett: Brendan Lewis Másolatot kap: [EMAIL PROTECTED] Tárgy: Re: GRE, VPN and suchlike It was so simple ! Just use [iptables] ipchains to setup the rules and we have a nice passthrough ! THANKS a lot, everything works perfectly now ! Greg > Hi Gregiore, > > Gregoire Hostettler wrote: > > Thank you, Brendan, > > > > This is a good starting point. > > > > But will this package implement GRE (port 47) ? Just because I need > > to install the Linmux box as a firewall. In fact it is already a fw. > > What I need is just to make VPN encapsulated packets to go through > > the firewall to the VPN server which is located in the inside LAN. > > If all you want to do is forward PPTP packets to an internal (public > IP) PPTP VPN server that's easy. Under kernel 2.4: > > # For the initial PPTP authentication > iptables -A INPUT -p TCP -s --dport 1723 -j ACCEPT > iptables -A INPUT -p TCP -d --sport 1723 -j ACCEPT > > # Then for forwarding GRE > iptables -A INPUT -p 47 -s -j ACCEPT iptables -A > INPUT -p 47 -d -j ACCEPT > > If you want to masquerade PPTP packets to an internal (private IP) > PPTP server then read this howto: > > http://www.linuxdoc.org/HOWTO/VPN-Masquerade-HOWTO.html > > However, this only covers kernels 2.0 and 2.2. I haven't tried doing > this under 2.4 yet. > > > > > And do I need samba ? I want to keep my Debian fw with as few > > daemons as possible, as you can guess ;-) > > >
GRE, VPN and suchlike
Thank you, Brendan, This is a good starting point. But will this package implement GRE (port 47) ? Just because I need to install the Linmux box as a firewall. In fact it is already a fw. What I need is just to make VPN encapsulated packets to go through the firewall to the VPN server which is located in the inside LAN. And do I need samba ? I want to keep my Debian fw with as few daemons as possible, as you can guess ;-) Anyway THANK YOU for your help ! Greg Subject: Re: GRE, VPN and suchlike > Gregoire Hostettler wrote: > > Dear all, > > > > > > > > I hope I am posting to the right list, if not, I apologize... > > > > > > > > My problem is to setup a VPN between 4 W2K sites. > > > > I am using on regular basis Debian ipchains for firewalling, and so far > > it works great. > > > > > > > > But now it is time to setup GRE, tunneling, L2TP etc... And I cannot > > find a reference to this GRE-port-47 thing in the Debian doc. > > > > > > > > Has anybody any idea ? > > Win2k clients come with Microsoft's PPTP VPN client. To set up a PPTP > server on debian you must install Poptop - http://www.poptop.org/ > > Then read up on how to patch pppd and the 2.2 kernel for it: > > http://www.vibrationresearch.com/pptpd/ > > Or the Howto under 2.4 (including iptables rules): > > http://home.swbell.net/berzerke/2.4_Kernel_PPTPD-HOWTO.txt > > Hope this helps. > > Brendan > > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
GRE, VPN and suchlike
Dear all, I hope I am posting to the right list, if not, I apologize... My problem is to setup a VPN between 4 W2K sites. I am using on regular basis Debian ipchains for firewalling, and so far it works great. But now it is time to setup GRE, tunneling, L2TP etc... And I cannot find a reference to this GRE-port-47 thing in the Debian doc. Has anybody any idea ? Any help greatly appreciated Kind regards, Caracal - G. Hostettler6, ch. du Raidillon1522 Lucens Tél: 079 342 97 66 e-mail travaux généraux : [EMAIL PROTECTED]e-mail travaux webmaster : [EMAIL PROTECTED]e-mail personnel : [EMAIL PROTECTED]