Re: [newbie] Apache not starting?
On Fri, 2004-11-26 at 15:06 -0500, Peter Davis wrote: I'm running 10.0, but Apache seems to be having a problem starting. When I try to browse to localhost, I just get a Google search page. Even using 127.0.0.1 doesn't work. The system log says: Syntax error on line 56 of /etc/httpd/2.0/conf/commonnhttpd.conf: Invalid command 'lfModule', perhaps mis-spelled or defined by a module not included in the server configuration It should be IfModule (an I instead of l). Change that and start Apache. It should work. Adolfo Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Apache not starting?
Adolfo Bello wrote: On Fri, 2004-11-26 at 15:06 -0500, Peter Davis wrote: I'm running 10.0, but Apache seems to be having a problem starting. When I try to browse to "localhost", I just get a Google search page. Even using 127.0.0.1 doesn't work. The system log says: Syntax error on line 56 of /etc/httpd/2.0/conf/commonnhttpd.conf: Invalid command 'lfModule', perhaps mis-spelled or defined by a module not included in the server configuration It should be "IfModule" (an I instead of l). Change that and start Apache. It should work. Thanks. I'm trying that now. That's pretty puzzling, though. The config file had lfModule mod_access.c . . /lfModule So it was wrong in two places. I don't know how that could have happened. Thanks, -pd -- Peter Davis Funny stuff at http://www.pfdstudio.com List of resources for children's writers and illustrators at: http://www.pfdstudio.com/cwrl.html
Re: [newbie] Apache not starting?
On Saturday 27 November 2004 03:06 am, Peter Davis wrote: I'm running 10.0, but Apache seems to be having a problem starting. When I try to browse to localhost, I just get a Google search page. Even using 127.0.0.1 doesn't work. The system log says: Syntax error on line 56 of /etc/httpd/2.0/conf/commonnhttpd.conf: Invalid command 'lfModule', perhaps mis-spelled or defined by a module not included in the server configuration The module in question is mod_access.c I'm pretty certain this used to work when I first installed the system, so possibly something I've done since has broken it. I haven't messed with Apache at all, but I tried to install UW IMAP, and later Courier IMAP. Hi Peter, I think the easiest way is to uninstall apache and re-install it again. -- Fajar Priyanto | Reg'd Linux User #327841 | http://linux2.arinet.org 04:36:43 up 8:16, Mandrakelinux release 10.1 (Official) for i586 public key: https://www.arinet.org/fajar-pub.key Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Apache not starting?
Fajar Priyanto wrote: On Saturday 27 November 2004 03:06 am, Peter Davis wrote: I'm running 10.0, but Apache seems to be having a problem starting. When I try to browse to "localhost", I just get a Google search page. Even using 127.0.0.1 doesn't work. The system log says: Syntax error on line 56 of /etc/httpd/2.0/conf/commonnhttpd.conf: Invalid command 'lfModule', perhaps mis-spelled or defined by a module not included in the server configuration The module in question is mod_access.c I'm pretty certain this used to work when I first installed the system, so possibly something I've done since has broken it. I haven't messed with Apache at all, but I tried to install UW IMAP, and later Courier IMAP. Hi Peter, I think the easiest way is to uninstall apache and re-install it again. Yes, I could try that. I didn't install it in the first place. It was pre-installed on the system. But it's worth a try. How to you un-install something? -pd -- Peter Davis Funny stuff at http://www.pfdstudio.com List of resources for children's writers and illustrators at: http://www.pfdstudio.com/cwrl.html
Re: [newbie] Apache not starting?
On Fri, 26 Nov 2004 17:43:58 -0500 Peter Davis disseminated the following: How to you un-install something? urpme packagename -- JoeHill / RLU #282046 / www.freeyourmachine.org 18:24:44 up 5 days, 9:34, 10 users, load average: 0.22, 0.17, 0.08 +++ Where the state begins, individual liberty ceases, and vice versa. -- Bakunin Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Apache or Mandrake permissions problems?
On Tue, 2004-11-16 at 16:54, Jaime Magiera wrote: I'm stumped on this problem. I've created a virtual host in my apache vhosts config (pointing to a home directory). However, I'm still getting permission denied errors. I've read and re-read the Apache docs, which leads me to believe this is something I don't understand about Mandrake 10. If I chmod 755 the person's home directory folder (for testing purposes only), the problem is aleviated. I don't get it, because the URL's in the directives below are correct. Isn't the directive supposed to supersede the permission of the upper level folders (/home/person) ? Here's the configuration... DocumentRoot /home/person/public_html ServerName person.com ServerAlias www.person.com Options ExecCGI FollowSymLinks Includes IncludesNOEXEC Indexes MultiViews SymLinksIfOwnerMatch DirectoryIndex index.html index.php Directory /home/person/public_html Options All -Includes +Indexes +MultiViews +ExecCGI AllowOverride All IfModule mod_access.c order allow,deny allow from all /IfModule /Directory ErrorLog /var/log/httpd/permission_error_log LogLevel emerg TransferLog /var/log/httpd/permission_access_log LogFormat combined thanks, Jaime Er, wouldn't this be better posted on the Apache list than on the Mandrake list? -- stephen kuhn mobile: 0410-728-389 illawarra and regional new south wales --- GNU/Linux/OpenSource Solutions and Alternatives 100% Microsoft Free and no viruses Registered Linux User # 267497 Windows: Where do you want to go today? MacOS: Where do you want to be tomorrow? Linux: Are you coming or what? --- This fortune intentionally left blank. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Apache or Mandrake permissions problems?
Not if it's related to permission conflicts on the server, such as those imposed by msec. Hence, in the subject Apache or Mandrake. On Nov 16, 2004, at 12:11 PM, Stephen Kühn wrote: Er, wouldn't this be better posted on the Apache list than on the Mandrake list? Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Apache or Mandrake permissions problems?
On Tue, Nov 16, 2004 at 12:39:19PM -0500, Jaime Magiera wrote: Not if it's related to permission conflicts on the server, such as those imposed by msec. Hence, in the subject Apache or Mandrake. I think permissions on /home/user/public_html should be 711. I wouldn't change permissions on /home/user (unless you're tightening it up). You might try turning on the /home/*/public_html option in httpd.conf and just testing a user. If you can do that ok, then your problem might not be permissions but your VirtualHost entry. Todd Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Apache or Mandrake permissions problems?
On Wed, 17 Nov 2004 04:11:47 +1100 Stephen Kühn [EMAIL PROTECTED] wrote: Er, wouldn't this be better posted on the Apache list than on the Mandrake list? Picky in your old age, Stephen? I bring all my problems here. Where else can you find so many opinions? Lee Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Apache or Mandrake permissions problems?
On Tuesday 16 November 2004 06:39 am, Lee Wiggers wrote: On Wed, 17 Nov 2004 04:11:47 +1100 Stephen Kühn [EMAIL PROTECTED] wrote: Er, wouldn't this be better posted on the Apache list than on the Mandrake list? Picky in your old age, Stephen? I bring all my problems here. Where else can you find so many opinions? [insert John Kerry joke here] Lee -- When a citizen gives his suffrage to a man of known immorality he abuses his trust; he sacrifices not only his own interest, but that of his neighbor, he betrays the interest of his country. --Noah Webster. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Apache or Mandrake permissions problems?
On Wed, 2004-11-17 at 01:39, Lee Wiggers wrote: On Wed, 17 Nov 2004 04:11:47 +1100 Stephen Kühn [EMAIL PROTECTED] wrote: Er, wouldn't this be better posted on the Apache list than on the Mandrake list? Picky in your old age, Stephen? I bring all my problems here. Where else can you find so many opinions? Lee Picky? Er, yeahtrue...getting cranky as well... -- stephen kuhn mobile: 0410-728-389 illawarra and regional new south wales --- GNU/Linux/OpenSource Solutions and Alternatives 100% Microsoft Free and no viruses Registered Linux User # 267497 Windows: Where do you want to go today? MacOS: Where do you want to be tomorrow? Linux: Are you coming or what? --- My life is a patio of fun! Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Apache and blocking Referrer spam
Bryan Phinney wrote: Don't know if anyone else here is running Apache with web logs, or 'blogs' and has had trouble with referrer spam but I thought I would mention my latest experience. Blogs are one of the more interesting developments of the Internet and there are a lot of packages out there that allow people to maintain their own blogs. If you run Apache and host these packages, you may have noticed a lot of traffic recently as marketers try to adverise their web sites by throwing traffic at a blog and thereby moving their site to the top of the referrer's list. They are also hoping to increase their Google rank by increasing the number of sites that advertise links to their own sites. Mostly porn sites currently, but several others have been doing this. I recently got hit by someone operating (out of Texas, I think) who had several sites hosted at EV1 and was using various open proxies to refer traffic to my blog and increase his rank. Initially, I just figured out how to ban his sites from my referrer listing but I was really unsatisfied with that response since he kept hitting my site anyway with robots and it just wasn't very gratifying to me. I would have had problems blocking his traffic altogether since he was using various open proxies and switching them regularly, so I wanted to be able to focus exclusively on his traffic. He was also rotating the browser agent and so on, so blocking that would have been problematic as well. So, I finally did some research and figured out how to deny access to requests that contained certain keywords (including his web site domain names) in the request (referrer) which effectively resulted in him getting 403 errors rather than actually getting into my web page. After 2-3 days of him not getting into the site, I sent an email (to the admin account at one of the domains) and pointed out to him that he was wasting his time since I was blocking his spam bots and that he might do better to find an easier target. As of today, all the spam referrer traffic has stopped which I suspect means that he has given up. If anyone else is having this problem and runs Apache to host their own site, I can quickly show you how to do this (add a few lines to httpd2.conf) and you can block these out yourself. Yup, please do.. I have had about 200 comment spams added to my site in the last couple of months.. so I setup my router withi a blacklist and I've just been adding the nasty IP to that blacklist. I also changed the blog over to comment moderation.. I'd prefer a better answer though, so I'd love to read about yours. In fact if you like I can even turn it into something of a tute and put it on the site for others to find. rgds Franki Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Apache and blocking Referrer spam
On Wednesday 13 October 2004 06:19, frankieh wrote: Bryan Phinney wrote: If anyone else is having this problem and runs Apache to host their own site, I can quickly show you how to do this (add a few lines to httpd2.conf) and you can block these out yourself. Yup, please do.. I have had about 200 comment spams added to my site in the last couple of months.. so I setup my router withi a blacklist and I've just been adding the nasty IP to that blacklist. Okay, in the httpd.conf file, add this line somewhere near the top, not within the virtual directory line: SetEnvIfNoCase Referer .*(casino|gambling|poker|porn|viagra).* BadReferrer All on one line, ignore any wrapping from the newsreader. Add terms as needed to block additional referrer blacklisted terms. This will tell Apache to set an environment variable of badreferrer when it receives a request that contains the blacklisted term. Now, within the virtual directory for your blog, site or whatever, add these lines: allow from all order allow,deny Deny from env=BadReferrer Any order, it doesn't matter but Apache will explicitly deny when it sees the badreferrer environment variable. Restart Apache and if you check your access_log, you should see 403 results for any request that contains a blacklisted term. Simply add, as necessary, additional terms and they will no longer be allowed access. Once you have locked it down, consider sending a polite request to the insert favorite epithet here and tell him that they might as well give it up and they should realize the futility of wasting traffic and go away. -- Bryan Phinney Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Apache and blocking Referrer spam
On Wed, 2004-10-13 at 06:19, frankieh wrote: Bryan Phinney wrote: Don't know if anyone else here is running Apache with web logs, or 'blogs' and has had trouble with referrer spam but I thought I would mention my latest experience. Blogs are one of the more interesting developments of the Internet and there are a lot of packages out there that allow people to maintain their own blogs. If you run Apache and host these packages, you may have noticed a lot of traffic recently as marketers try to adverise their web sites by throwing traffic at a blog and thereby moving their site to the top of the referrer's list. They are also hoping to increase their Google rank by increasing the number of sites that advertise links to their own sites. Mostly porn sites currently, but several others have been doing this. I recently got hit by someone operating (out of Texas, I think) who had several sites hosted at EV1 and was using various open proxies to refer traffic to my blog and increase his rank. Initially, I just figured out how to ban his sites from my referrer listing but I was really unsatisfied with that response since he kept hitting my site anyway with robots and it just wasn't very gratifying to me. I would have had problems blocking his traffic altogether since he was using various open proxies and switching them regularly, so I wanted to be able to focus exclusively on his traffic. He was also rotating the browser agent and so on, so blocking that would have been problematic as well. So, I finally did some research and figured out how to deny access to requests that contained certain keywords (including his web site domain names) in the request (referrer) which effectively resulted in him getting 403 errors rather than actually getting into my web page. After 2-3 days of him not getting into the site, I sent an email (to the admin account at one of the domains) and pointed out to him that he was wasting his time since I was blocking his spam bots and that he might do better to find an easier target. As of today, all the spam referrer traffic has stopped which I suspect means that he has given up. If anyone else is having this problem and runs Apache to host their own site, I can quickly show you how to do this (add a few lines to httpd2.conf) and you can block these out yourself. Yup, please do.. I have had about 200 comment spams added to my site in the last couple of months.. so I setup my router withi a blacklist and I've just been adding the nasty IP to that blacklist. I also changed the blog over to comment moderation.. I'd prefer a better answer though, so I'd love to read about yours. In fact if you like I can even turn it into something of a tute and put it on the site for others to find. rgds Franki Interesting thread; I'd like to learn how to do this as well LX -- Trouble with sound? Dump Alsa with an upgrade to the best: get your free high quality OSS drivers at www.opensound.com Superior features, superior API, better support. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Apache and blocking Referrer spam
On Wed, Oct 13, 2004 at 06:19:23PM +0800, frankieh wrote: Bryan Phinney wrote: Don't know if anyone else here is running Apache with web logs, or 'blogs' and has had trouble with referrer spam but I thought I would mention my latest experience. snip If anyone else is having this problem and runs Apache to host their own site, I can quickly show you how to do this (add a few lines to httpd2.conf) and you can block these out yourself. Yup, please do.. I have had about 200 comment spams added to my site in the last couple of months.. so I setup my router withi a blacklist and I've just been adding the nasty IP to that blacklist. I also changed the blog over to comment moderation.. I'd prefer a better answer though, so I'd love to read about yours. In fact if you like I can even turn it into something of a tute and put it on the site for others to find. I have issues with comment spam but not referrer spam, but if I understand Bryan's strategy it will not block comment spammers, right? WordPress has some nice comment spam-fighting features built in, but I have yet to find the perfect blogging software. Todd Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Apache and blocking Referrer spam
On Wednesday 13 October 2004 08:36, Todd Slater wrote: I have issues with comment spam but not referrer spam, but if I understand Bryan's strategy it will not block comment spammers, right? WordPress has some nice comment spam-fighting features built in, but I have yet to find the perfect blogging software. I am currently using B2Evolution and it does have the ability to block domains from both referrers and comments within the blog. Of course, they can create another domain but it is obviously trivial to add additional domains to the block list which will get expensive for them eventually. B2evolution also has a built-in spam block feature that downloads shared lists of other B2evolution users so that you can update your list and proactively block referrer and comment spam. You might give it a look. -- Bryan Phinney Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Apache and blocking Referrer spam
On Wed, Oct 13, 2004 at 11:36:26AM -0400, Bryan Phinney wrote: On Wednesday 13 October 2004 08:36, Todd Slater wrote: I have issues with comment spam but not referrer spam, but if I understand Bryan's strategy it will not block comment spammers, right? WordPress has some nice comment spam-fighting features built in, but I have yet to find the perfect blogging software. I am currently using B2Evolution and it does have the ability to block domains from both referrers and comments within the blog. Of course, they can create another domain but it is obviously trivial to add additional domains to the block list which will get expensive for them eventually. B2evolution also has a built-in spam block feature that downloads shared lists of other B2evolution users so that you can update your list and proactively block referrer and comment spam. You might give it a look. Cool, I used to use b2evolution (after b2/cafelog) but was under the impression development had stopped and everybody was jumping to WordPress, which I currently use. WP has comment moderation--comments can be held based on number of links, occurrence of words, and ip addys. The idea of d/l'ing a shared list sounds like a good idea. I'm trying out pLog at work, which has regex and bayesian capability, but unfortunately no forced moderation. Thanks for the info, Todd Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Apache and blocking Referrer spam
On Wednesday 13 October 2004 12:34, Todd Slater wrote: Cool, I used to use b2evolution (after b2/cafelog) but was under the impression development had stopped and everybody was jumping to WordPress, which I currently use. WP has comment moderation--comments can be held based on number of links, occurrence of words, and ip addys. The idea of d/l'ing a shared list sounds like a good idea. I'm trying out pLog at work, which has regex and bayesian capability, but unfortunately no forced moderation. Well, last time I checked, it appeared that a lot of people were just then upgrading to a new version, so I assumed that the latest was fairly new for B2evolution. It works well for me at least, supports a lot of stuff that I am not really using anyway. Only 2 readers anyway, my two different personalities. ;} -- Bryan Phinney Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Apache and blocking Referrer spam
On Tuesday 12 October 2004 13:20, Bryan Phinney wrote: snip If anyone else is having this problem and runs Apache to host their own site, I can quickly show you how to do this (add a few lines to httpd2.conf) and you can block these out yourself. Good for you Bryan. A service for the world. -- Regards; Hoyt Registered Linux User #363264 http://counter.li.org Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Apache
On Thu, 9 Sep 2004 21:57:48 -0400 (EDT) [EMAIL PROTECTED] wrote: there is an file index.html at http://www.mysite.org/mypage and it loads fine without the trailing / There is also an index.php file under /mypage. When I type in http://www.mysite.org, the browser appends a / in the address bar when the page loads. On another server, I have Squirrelmail running and can access that by typing http://www.mysite.org/squirrelmail. Same story, the browser appends a / in the address bar when the page loads But when I try type in http://www.mysite.org/mypage I get the error message. Obviously, something is happening on the other server if I can type the directory name without the trailing / and apache knows to look for the index.php file in that directory. sorry no fix, just saying what happens on my end; http://www.mysite.org/mypage shows what appears to be your complete web page (rm-rf) - with all the images and one link. The Unix Manual link is red. If I hold my cursor over it, it disappears (the words Unix Manual disappears, but the link still works) and; http://www.mysite.org/mypage/ shows the same web page at first glance, except it is missing the Apache, PHP and mod_ssl images. Sun's is still working though. And the Unix Manual link is blue, underlined and does not disappear when hovering over it. Not sure if any of this is caused by my browsers settings though. which is Epiphany 1.0.7. -- Linux user #280097 Machines #162480 #191825 http://counter.li.org Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
RE: [newbie] Apache
I suspect that the reason these images aren't appearing on http://www.mysite.org/mypage/ is because they are linked to images/... if you changed this to /images/... then they would work. The reason they work for http://www.mysite.org/mypage is because images/ is actually the same as /images/ as you are in the document root directory. Where as /mypage/ you are in the /mypage directory under the document root. The same goes for the stylesheet you are linking to (and why the manual link isn't red) Hope this helps Jamie -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Jeppesen Sent: 10 September 2004 11:18 To: [EMAIL PROTECTED] Subject: Re: [newbie] Apache On Thu, 9 Sep 2004 21:57:48 -0400 (EDT) [EMAIL PROTECTED] wrote: there is an file index.html at http://www.mysite.org/mypage and it loads fine without the trailing / There is also an index.php file under /mypage. When I type in http://www.mysite.org, the browser appends a / in the address bar when the page loads. On another server, I have Squirrelmail running and can access that by typing http://www.mysite.org/squirrelmail. Same story, the browser appends a / in the address bar when the page loads But when I try type in http://www.mysite.org/mypage I get the error message. Obviously, something is happening on the other server if I can type the directory name without the trailing / and apache knows to look for the index.php file in that directory. sorry no fix, just saying what happens on my end; http://www.mysite.org/mypage shows what appears to be your complete web page (rm-rf) - with all the images and one link. The Unix Manual link is red. If I hold my cursor over it, it disappears (the words Unix Manual disappears, but the link still works) and; http://www.mysite.org/mypage/ shows the same web page at first glance, except it is missing the Apache, PHP and mod_ssl images. Sun's is still working though. And the Unix Manual link is blue, underlined and does not disappear when hovering over it. Not sure if any of this is caused by my browsers settings though. which is Epiphany 1.0.7. -- Linux user #280097 Machines #162480 #191825 http://counter.li.org ** E-mail Disclaimer ** This e-mail message is confidential and for use by the addressee only. If you are not the intended addressee, please reply to the sender and then delete the message from your computer. Please note that any views or opinions presented in this e-mail are those of the author and do not necessarily represent the views or opinions of The Benenden Healthcare Society Limited. You should check this e-mail and any attachments for the presence of viruses. The Benenden Healthcare Society Limited accepts no liability for any damages caused by any virus transmitted my this e-mail or its attachments. The Benenden Healthcare Society Limited is an incorporated friendly society, registered under the Friendly Societies Act 1992, registered number 480F. The Societys contractual business (the provision of tuberculosis benefit) is authorised by the FSA. The remainder of The Societys business is undertaken on a discretionary basis. The Society is subject to FSA requirement for prudential management. Registered Office Address: The Benenden Healthcare Society Limited, Holgate Park Drive, York. YO26 4GG. Tel: 0870 7545 700 Fax: 0870 7545 822 www.benenden.org.uk Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Apache
On Thu, 9 Sep 2004 21:57:48 -0400 (EDT) [EMAIL PROTECTED] wrote: there is an file index.html at http://www.mysite.org/mypage and it loads fine without the trailing / There is also an index.php file under /mypage. When I type in http://www.mysite.org, the browser appends a / in the address bar when the page loads. On another server, I have Squirrelmail running and can access that by typing http://www.mysite.org/squirrelmail. Same story, the browser appends a / in the address bar when the page loads But when I try type in http://www.mysite.org/mypage I get the error message. Obviously, something is happening on the other server if I can type the directory name without the trailing / and apache knows to look for the index.php file in that directory. sorry no fix, just saying what happens on my end; http://www.mysite.org/mypage shows what appears to be your complete web page (rm-rf) - with all the images and one link. The Unix Manual link is red. If I hold my cursor over it, it disappears (the words Unix Manual disappears, but the link still works) and; http://www.mysite.org/mypage/ shows the same web page at first glance, except it is missing the Apache, PHP and mod_ssl images. Sun's is still working though. And the Unix Manual link is blue, underlined and does not disappear when hovering over it. Not sure if any of this is caused by my browsers settings though. which is Epiphany 1.0.7. Actually, that's not my website at all. I just used http://www.mysite.org/mypage as a generic example to illustrate the problem I'm having with the trailing / in the URL. I guess I should have first verified that there wasn't an actuall site called http://www.mysite.org/mypage before I used it as an example. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Apache
On Thu, 9 Sep 2004 17:25:55 -0400 (EDT) [EMAIL PROTECTED] disseminated the following: Does anyone happen to know what needs to be configured in Apache so that the trailing / doesn't need to be in a URL in order for the page to load? currently, if I type in http://www.mysite.org/mypage, I get an error message saying that I don't have access to /mypage. If I type in http://www.mysite.org/mypage/ the page loads just fine. Any ideas on how to fix this? You need to have a default page to load, probably. Should be called 'index.html', off the root of the server, ie. /var/www/html/index.html (or .php or whatever). -- JoeHill RLU #282046 / www.freeyourmachine.org 18:17:11 up 36 days, 18:02, 8 users, load average: 0.09, 0.06, 0.18 +++ When you give food to the poor, they call you a saint. When you ask why the poor have no food, they call you a communist. -- Archbishop Helder Camara Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Apache
On Thu, 9 Sep 2004 18:19:03 -0400 JoeHill disseminated the following: Does anyone happen to know what needs to be configured in Apache so that the trailing / doesn't need to be in a URL in order for the page to load? currently, if I type in http://www.mysite.org/mypage, I get an error message saying that I don't have access to /mypage. If I type in http://www.mysite.org/mypage/ the page loads just fine. Any ideas on how to fix this? You need to have a default page to load, probably. Should be called 'index.html', off the root of the server, ie. /var/www/html/index.html (or .php or whatever). ...sorry, not off the root of the server...me not reading good :-\ The thing is, http://www.mysite.org/mypage is looking for a page to load called 'mypage', which of course does not exist, it's a directory. Loading www.mysite.org automagically looks for 'index.html' or the like, but as soon as you add a dir off the root, you need to add that trailing /. I'm not sure this is something to be 'fixed', I believe it is normal behaviour. Blast me to hell if I am wrong ;-) -- JoeHill RLU #282046 / www.freeyourmachine.org 18:26:38 up 36 days, 18:12, 8 users, load average: 0.05, 0.02, 0.09 +++ Behind every great fortune is a crime. -- Balzac Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Apache
On Thu, 9 Sep 2004 18:19:03 -0400 JoeHill disseminated the following: Does anyone happen to know what needs to be configured in Apache so that the trailing / doesn't need to be in a URL in order for the page to load? currently, if I type in http://www.mysite.org/mypage, I get an error message saying that I don't have access to /mypage. If I type in http://www.mysite.org/mypage/ the page loads just fine. Any ideas on how to fix this? You need to have a default page to load, probably. Should be called 'index.html', off the root of the server, ie. /var/www/html/index.html (or .php or whatever). there is an file index.html at http://www.mysite.org/mypage and it loads fine without the trailing / There is also an index.php file under /mypage. ...sorry, not off the root of the server...me not reading good :-\ The thing is, http://www.mysite.org/mypage is looking for a page to load called 'mypage', which of course does not exist, it's a directory. Loading www.mysite.org automagically looks for 'index.html' or the like, but as soon as you add a dir off the root, you need to add that trailing /. I'm not sure this is something to be 'fixed', I believe it is normal behaviour. Blast me to hell if I am wrong ;-) When I type in http://www.mysite.org, the browser appends a / in the address bar when the page loads. On another server, I have Squirrelmail running and can access that by typing http://www.mysite.org/squirrelmail. Same story, the browser appends a / in the address bar when the page loads But when I try type in http://www.mysite.org/mypage I get the error message. Obviously, something is happening on the other server if I can type the directory name without the trailing / and apache knows to look for the index.php file in that directory. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Apache
On Thursday 09 September 2004 18:31, JoeHill wrote: On Thu, 9 Sep 2004 18:19:03 -0400 JoeHill disseminated the following: Does anyone happen to know what needs to be configured in Apache so that the trailing / doesn't need to be in a URL in order for the page to load? currently, if I type in http://www.mysite.org/mypage, I get an error message saying that I don't have access to /mypage. If I type in http://www.mysite.org/mypage/ the page loads just fine. Any ideas on how to fix this? You need to have a default page to load, probably. Should be called 'index.html', off the root of the server, ie. /var/www/html/index.html (or .php or whatever). ...sorry, not off the root of the server...me not reading good :-\ The thing is, http://www.mysite.org/mypage is looking for a page to load called 'mypage', which of course does not exist, it's a directory. Loading www.mysite.org automagically looks for 'index.html' or the like, but as soon as you add a dir off the root, you need to add that trailing /. I'm not sure this is something to be 'fixed', I believe it is normal behaviour. Blast me to hell if I am wrong ;-) Read about trailing slash at http://httpd.apache.org/docs-2.0/mod/mod_dir.html.en#directoryslash -- Yankl Tiny IT guy. 100 % Micro$oft free. Registered linux users 181086 URL: http://yankele.com --- To mess up a Linux box, you need to work at it; to mess up your Windows box, you just need to work on it. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Apache and mod_php
On Sun, 5 Sep 2004 19:26:27 -0400 Ryan Steffes disseminated the following: I had to recently rebuild my system as a result of my own stupidity and now I can't get php to work with apache. I don't remember doing anything other than urpmi before, so I have no clue why it wouldn't work. urpmi apache-mod-php -- JoeHill RLU #282046 / www.freeyourmachine.org 19:38:25 up 32 days, 19:23, 11 users, load average: 0.21, 0.19, 0.14 +++ Whatever you do will be insignificant, but it is very important that you do it. -- Gandhi Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Apache and mod_php
On Sun, 5 Sep 2004 19:38:51 -0400, JoeHill [EMAIL PROTECTED] wrote: On Sun, 5 Sep 2004 19:26:27 -0400 Ryan Steffes disseminated the following: I had to recently rebuild my system as a result of my own stupidity and now I can't get php to work with apache. I don't remember doing anything other than urpmi before, so I have no clue why it wouldn't work. urpmi apache-mod-php -- JoeHill RLU #282046 / www.freeyourmachine.org 19:38:25 up 32 days, 19:23, 11 users, load average: 0.21, 0.19, 0.14 +++ Whatever you do will be insignificant, but it is very important that you do it. -- Gandhi Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com [07:55:13 rbsteffes]$ urpmi apache-mod_php no package named apache-mod_php [07:55:38 rbsteffes]$ urpmi apache-mod-php no package named apache-mod-php There's one for apache2, but not for apache. I said what the heck and let urpmi install apache2 since basically all I need the server for is mythweb and nothing changed except the packages I have installed. [08:01:17 rbsteffes]$ rpm -qa|grep apache apache-1.3.29-1.2.100mdk apache2-common-2.0.48-6.3.100mdk apache-conf-2.0.48-2mdk apache-mod_perl-1.3.29_1.29-3.1.100mdk apache2-modules-2.0.48-6.3.100mdk apache2-mod_php-2.0.48_4.3.4-1mdk apache-modules-1.3.29-1.2.100mdk apache2-2.0.48-6.3.100mdk [08:01:44 rbsteffes]$ rpm -qa|grep php mod_php-4.3.4-1mdk apache2-mod_php-2.0.48_4.3.4-1mdk php-ini-4.3.4-1mdk libphp_common432-4.3.4-4.1.100mdk [08:01:52 rbsteffes]$ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Apache and mod_php
On Sun, 5 Sep 2004 20:02:09 -0400 Ryan Steffes disseminated the following: [07:55:13 rbsteffes]$ urpmi apache-mod_php no package named apache-mod_php [07:55:38 rbsteffes]$ urpmi apache-mod-php no package named apache-mod-php There's one for apache2, but not for apache. I said what the heck and let urpmi install apache2 since basically all I need the server for is mythweb and nothing changed except the packages I have installed. ...ah, yes, didn't notice you were not using Apache2. Now that you've got Apache2 running and apache2-mod-php installed, you may need to do a 'service httpd restart'. -- JoeHill RLU #282046 / www.freeyourmachine.org 20:22:37 up 32 days, 20:07, 10 users, load average: 1.52, 0.41, 0.18 +++ Well, he might as well have been bombing Denmark. -- Gore Vidal, on the bombing of Afghanistan after 9/11 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Apache and mod_php
On Sun, 5 Sep 2004 20:28:39 -0400, JoeHill [EMAIL PROTECTED] wrote: On Sun, 5 Sep 2004 20:02:09 -0400 Ryan Steffes disseminated the following: [07:55:13 rbsteffes]$ urpmi apache-mod_php no package named apache-mod_php [07:55:38 rbsteffes]$ urpmi apache-mod-php no package named apache-mod-php There's one for apache2, but not for apache. I said what the heck and let urpmi install apache2 since basically all I need the server for is mythweb and nothing changed except the packages I have installed. ...ah, yes, didn't notice you were not using Apache2. Now that you've got Apache2 running and apache2-mod-php installed, you may need to do a 'service httpd restart'. -- JoeHill RLU #282046 / www.freeyourmachine.org 20:22:37 up 32 days, 20:07, 10 users, load average: 1.52, 0.41, 0.18 +++ Well, he might as well have been bombing Denmark. -- Gore Vidal, on the bombing of Afghanistan after 9/11 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com Well, it's solved, but I'm not entirely sure. I uninstalled everything apache and php related that I could see, and went back from scratch and it worked just as automagically as before. I like automagical installs, when they work! Thanks for the help. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Apache and mod_php
On Sun, 5 Sep 2004 22:02:10 -0400 Ryan Steffes disseminated the following: Well, it's solved, but I'm not entirely sure. I uninstalled everything apache and php related that I could see, and went back from scratch and it worked just as automagically as before. I like automagical installs, when they work! That was my next recommendation, really ;-) Thanks for the help. I am but a grasshopper, you are very welcome. BTW, minor list-nazi thing, maybe consider snipping your replies a bit to preserve only the relevant info. Now the list-nazi thing I am a *master* ;-) -- JoeHill RLU #282046 / www.freeyourmachine.org 22:12:01 up 32 days, 21:57, 10 users, load average: 1.53, 1.40, 1.36 +++ Well, he might as well have been bombing Denmark. -- Gore Vidal, on the bombing of Afghanistan after 9/11 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Apache Startup problems
After a complete reinstall everything seems to be working now. Not sure what was broken, but at this point I am not complaining. Hopefully it will stay working. On Sat, 12 Jun 2004 05:16:49 -0400 (EDT) Job Evers wrote: I cannot get Apache to start. I also don't have any idea what is going wrong since it says that it starts ok. Any advice would be lovely. [EMAIL PROTECTED] jobevers]# apachectl status Apache is *not* running. Use /usr/sbin/apachectl extendedstatus for more information. [EMAIL PROTECTED] jobevers]# apachectl start Starting httpd2:[ OK [EMAIL PROTECTED] jobevers]# apachectl status Apache is *not* running. Use /usr/sbin/apachectl extendedstatus for more information. -- Job Evers Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Apache Startup problems
On Saturday 12 Jun 2004 10:16, Job Evers wrote: I cannot get Apache to start. I also don't have any idea what is going wrong since it says that it starts ok. Any advice would be lovely. [EMAIL PROTECTED] jobevers]# apachectl status Apache is *not* running. Use /usr/sbin/apachectl extendedstatus for more information. [EMAIL PROTECTED] jobevers]# apachectl start Starting httpd2:[ OK ] [EMAIL PROTECTED] jobevers]# apachectl status Apache is *not* running. Use /usr/sbin/apachectl extendedstatus for more information. Do your Mandrake Updates.There was a bug in libapr0 that stopped Apache working on some hardware. derek -- www.jennings.homelinux.net http://twiki.mdklinuxfaq.org Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Apache Startup problems
On Sat, 12 Jun 2004, Derek Jennings wrote: Do your Mandrake Updates. There was a bug in libapr0 that stopped Apache working on some hardware. I am fully updated but apache still does not want to start up Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Apache
OOzy wrote: How do I know that Apache is installed and is up and running? I have already installed it and when I type whereis apache2 it finds it for me? service httpd status Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Apache
How? where? what should I do? On Thu, 2004-06-10 at 18:39, Mikkel L. Ellertson wrote: OOzy wrote: How do I know that Apache is installed and is up and running? I have already installed it and when I type whereis apache2 it finds it for me? service httpd status __ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Apache
OOzy wrote: How? where? what should I do? As root, at a command prompt, type service httpd status. This will tell you if Apache is running. Mikkel -- Do not meddle in the affairs of dragons, for you are crunchy and taste good with Ketchup! Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
RE: [newbie] apache making me batty
chmod o+x /home/* is all you need for the users. It allows the world to enter the directories but not list them. I would recommend: find /home -type d -name public_html -exec chmod 2750 {} \; find /home -type d -name public_html -exec chown -R .apache {} \; which sets the group sticky bit on the public_html directories. All new files/directories created in public_html will have group apache. HTH, Bill Shirley PS. It is secure if everything in ~/ has the correct permissions. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Todd Slater Sent: Monday, May 10, 2004 4:30 PM To: Mandrake Newbie Subject: Re: [newbie] apache making me batty On Mon, May 10, 2004 at 03:27:10PM -0400, Todd Slater wrote: On a 9.1 box running highest level security with Apache 1.3. I'm trying to access the ~/username directory but keep getting 403 forbidden error. ~/public_html is readable by all ~/public_html/index.html is readable by all In /etc/httpd/conf/commonhttpd.conf I have: Directory /home/*/public_html AllowOverride All Options MultiViews -Indexes Includes FollowSymLinks IfModule mod_access.c Order allow,deny Allow from all /IfModule /Directory which seems to be pretty standard. I don't see anything in the apache logs other than the 403 errors. Anybody know what's up with that? Well it seems that ~/ needs to be +x, too, so chmod 755 ~/. It works, but do you reckon it's safe? Also, msec's bound to change permissions any second now, back to the archives! Todd -- Name that tune #18: When you own a big chunk of the bloody third world the babies just come with the scenery. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] apache making me batty
On Mon, May 10, 2004 at 03:27:10PM -0400, Todd Slater wrote: On a 9.1 box running highest level security with Apache 1.3. I'm trying to access the ~/username directory but keep getting 403 forbidden error. ~/public_html is readable by all ~/public_html/index.html is readable by all In /etc/httpd/conf/commonhttpd.conf I have: Directory /home/*/public_html AllowOverride All Options MultiViews -Indexes Includes FollowSymLinks IfModule mod_access.c Order allow,deny Allow from all /IfModule /Directory which seems to be pretty standard. I don't see anything in the apache logs other than the 403 errors. Anybody know what's up with that? Well it seems that ~/ needs to be +x, too, so chmod 755 ~/. It works, but do you reckon it's safe? Also, msec's bound to change permissions any second now, back to the archives! Todd -- Name that tune #18: When you own a big chunk of the bloody third world the babies just come with the scenery. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Apache Virtual Hosting
There really isn't that much to tell.. Install apache2, then go to /etc/httpd/conf/vhosts and edit Vhosts.conf For each virt domain, add something like this: VirtualHost 123.123.123.123 ServerAdmin [EMAIL PROTECTED] DocumentRoot /home/httpd/webstuff/www/web ServerName somewhere.com ServerAlias www.somewhere.com ScriptAlias /cgi-bin/ /home/httpd/webstuff/www/cgi-bin/ Directory /home/httpd/webstuff/www/web/ Options -Indexes FollowSymLinks MultiViews AllowOverride All Order deny,allow Allow from all /Directory Directory /home/httpd/webstuff/www/cgi-bin/ AllowOverride All Options ExecCGI Order deny,allow Allow from all /Directory ErrorLog /home/httpd/webstuff/server_logs/error_log #CustomLog /home/httpd/webstuff/server_logs/access_log common /VirtualHost where 123.123.123.123 is the IP address of the interface serving the domain.. on apache1.3 I could just have that as an *, but for some reason that doesn't work with apache2. you can serve the pages for each domain anywhere you want.. just create the dir structure, make sure its readable by apache and edit the above parts to suit. hope that helps.. rgds Franki Lee Wiggers wrote: Hi all I followed a thread a few weeks ago that explained step by step how to set up apache2 with virtual hosts. I was ready to move aeis.tv there to play with it, and somehow deleted the excellent instructions. (usual procrastination) Could some kind person go over it slowly for me? I get frustrated translating the Apache instructions because, as usual, I don't know as much as they assumelike: What directory does Apache serve from and what entrys in conf need to be changed how? Thanks Lee Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache 2.x server configuration question
Thanks Derek, That did the trick. Troy T. Hall Registered Linux User #342150 - Original Message - From: Derek Jennings [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, January 11, 2004 0619 N6REJ Subject: Re: [newbie] Apache 2.x server configuration question On Sunday 11 Jan 2004 11:42 am, Troy T. Hall wrote: I'm wanting to use the apache server to host 2 domains from the same dynamic ip, that is so far staying very static ( 3 months ). But it is nat'd. ( 192.168.123.197 ). the thing I'm not sure of is how do I tell apache to distinguish between the default setup which has all the nice documentation links and a ton of directories that I'm just starting to investigate so don't want to lose yet, and the two seperate places where I'll put the other domain files? I tried creating a directory for www.camplighthouse.org ( the server name is Genesis.camplighthouse.org as /home/camplighthouse/public_html and told apache to use it as a virtual host, but when I go there I still see the same default webpage even though I've put a junk index.html page there. Would someone please point me in the right general direction? Troy T. Hall In /etc/httpd/2.0/conf/vhosts For each virtual host add stanzas like this :- NameVirtualHost www.yourdomain.net VirtualHost www.yourdomain.net ServerName www.yourdomain.net ServerAlias www.yourdomain.net *.yourdomain.net yourdomain.net #ServerPath /domain DocumentRoot /var/www/html /VirtualHost VirtualHost www.camplighthouse.org.net ServerName www.camplighthouse.org ServerAlias camplighthouse.org *www.camplighthouse.org #ServerPath /domain DocumentRoot /var/www/html/camplighthouse /VirtualHost Put your web pages in /var/www/html/camplighthouse derek -- -- www.jennings.homelinux.net http://twiki.mdklinuxfaq.org Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.560 / Virus Database: 352 - Release Date: 1/8/04 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] apache and php help needed
on 17/11/03 3:34 PM, Charlie at [EMAIL PROTECTED] wrote: The Apache root directory /etc/httpd2 does not exist. If you have Apache installed, adjust the module configuration to use the correct paths Edit your httpd.conf file. You might nede to put in the PHP stuff as well. -- Mike yomcat Welsh NZ Tuatara http://www.nztuatara.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] apache and php help needed
On Mon, 2003-11-17 at 04:29, Mike 'yomcat' Welsh wrote: on 17/11/03 3:34 PM, Charlie at [EMAIL PROTECTED] wrote: The Apache root directory /etc/httpd2 does not exist. If you have Apache installed, adjust the module configuration to use the correct paths Edit your httpd.conf file. You might nede to put in the PHP stuff as well. Add the lines: LoadModule php4_modulemodules/libphp4.so AddType application/x-httpd-php .php Adolfo Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] apache and php help needed
On Monday 17 November 2003 10:33 am, Adolfo Bello wrote: On Mon, 2003-11-17 at 04:29, Mike 'yomcat' Welsh wrote: on 17/11/03 3:34 PM, Charlie at [EMAIL PROTECTED] wrote: The Apache root directory /etc/httpd2 does not exist. If you have Apache installed, adjust the module configuration to use the correct paths Edit your httpd.conf file. You might nede to put in the PHP stuff as well. Add the lines: LoadModule php4_modulemodules/libphp4.so AddType application/x-httpd-php .php Adolfo first off, he is running apache 1.3, so naturally there is no /etc/httpd2, and Mandrake sets up /var/www/http as the doc root if he sets /var/www/http as the doc root, and sets webmin to find httpd instead of httpd2, or installs apache2 he might have better luck... Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] apache and php help needed
On Sunday 16 November 2003 10:34 pm, Charlie wrote: Running mandrake 9.1, mysql 4.0.11a, apache 1.3.27 and php 4.3.0, all right of the mandrake 9.1 CD's. I'm trying to set up PHP to view data pulled from mysql database. I have the mysql database up and running fine. (this is on a small home network) I have apache and php installed but something is not right. Apache service shows as running in Mandrake control center, but not in webmin. In webmin it says The Apache root directory /etc/httpd2 does not exist. If you have Apache installed, adjust the module configuration to use the correct paths. You need to click the Module Config link on the Apache tab and tell it to use the correct httpd.conf file instead of httpd2.conf. My guess would be that you have both Apache 2 and Apache 1.3 installed but are running 1.3. Webmin tries to figure out which version you are running and defaults to 2 if it is there, I think. -- Bryan Phinney Software Test Engineer Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache woes...
On Fri, 2003-09-12 at 23:44, Trey Sizemore wrote: On Fri, 2003-09-12 at 22:49, ed tharp wrote: On Fri, 2003-09-12 at 18:00, Trey Sizemore wrote: I had Apache2 working on my 9.1 box, but just had to go and upgrade it from Cooker. Now it will not start. I should say that MCC says it's running (set to start at boot), but pointing to http://localhost takes my to the clever Australian hosting company. When I stop and restart via MCC, a message is displayed that a verifiable hostname could not be found. I have looked at the http.conf file and it has localhost set as the server name. Where else should I be looking to ensure that everything is set correctly. An explicit Apache2/PHP4/MySQL tutorial would be good (emphasis on Apache2 as it's changed quite a bit since 1.3.x). what does your /etc/hosts file say for localhost? 127.0.0.1 localhost is this the only NIC in the box? have you tried any other browsers to see if it is the browser adding the extension? h, have you tried to restart httpd from a console to see if you get any errors? (as root service httpd restart) in MCC did you put the folder for the document root? (should be /var/www/html) and does that document root have an index file? (as default the Apache that ships with MDK has automagic indexes turned off) and do you have in /etc/httpd/conf/httpd2.conf a line at the top defining the server name as anything but localhost? mine looks like this in the first lines ServerRoot /etc/httpd/2.0 ServerName ed-tharp.is-a-geek.org HTH ET -- ++ Mandrake HowTo's More: http://twiki.mdklinuxfaq.org Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache woes...
On Fri, 12 Sep 2003 18:00:54 -0400 Trey Sizemore [EMAIL PROTECTED] uttered: I had Apache2 working on my 9.1 box, but just had to go and upgrade it from Cooker. I think that was a bad idea. The Apache Cooker packages would depend on other Cooker packages, no? I'm surprised it even did the install without a complaint...you know, the whole dependency thing. Or are you saying you upgraded your whole system from cooker? -- HaywireMac Registered Linux user #282046 Homepage: www.orderinchaos.org ++ Mandrake HowTo's More: http://twiki.mdklinuxfaq.org ++ There is no sin but ignorance. -- Christopher Marlowe Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache woes...
On Fri, 2003-09-12 at 18:24, HaywireMac wrote: On Fri, 12 Sep 2003 18:00:54 -0400 Trey Sizemore [EMAIL PROTECTED] uttered: I had Apache2 working on my 9.1 box, but just had to go and upgrade it from Cooker. I think that was a bad idea. The Apache Cooker packages would depend on other Cooker packages, no? I'm surprised it even did the install without a complaint...you know, the whole dependency thing. Or are you saying you upgraded your whole system from cooker? No, but perhaps I'll give it a try. What's the command again to update everything if I have Cooker sources? Thanks. -- Cheers, Trey --- The beauty of the soul shines out when a man bears with composure one heavy mischance after another, not because he does not feel them, but because he is a man of high and heroic temper. - Aristotle Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache woes...
On Fri, 12 Sep 2003 20:29:26 -0400 Trey Sizemore [EMAIL PROTECTED] uttered: No, but perhaps I'll give it a try. What's the command again to update everything if I have Cooker sources? If *all* your sources are cooker, IIRC, urpmi --update --auto-select -- HaywireMac Registered Linux user #282046 Homepage: www.orderinchaos.org ++ Mandrake HowTo's More: http://twiki.mdklinuxfaq.org ++ Depend on the rabbit's foot if you will, but remember, it didn't help the rabbit. -- R.E. Shay Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache woes...
On Fri, 2003-09-12 at 18:00, Trey Sizemore wrote: I had Apache2 working on my 9.1 box, but just had to go and upgrade it from Cooker. Now it will not start. I should say that MCC says it's running (set to start at boot), but pointing to http://localhost takes my to the clever Australian hosting company. When I stop and restart via MCC, a message is displayed that a verifiable hostname could not be found. I have looked at the http.conf file and it has localhost set as the server name. Where else should I be looking to ensure that everything is set correctly. An explicit Apache2/PHP4/MySQL tutorial would be good (emphasis on Apache2 as it's changed quite a bit since 1.3.x). what does your /etc/hosts file say for localhost? -- ++ Mandrake HowTo's More: http://twiki.mdklinuxfaq.org Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache woes...
On Fri, 2003-09-12 at 22:49, ed tharp wrote: On Fri, 2003-09-12 at 18:00, Trey Sizemore wrote: I had Apache2 working on my 9.1 box, but just had to go and upgrade it from Cooker. Now it will not start. I should say that MCC says it's running (set to start at boot), but pointing to http://localhost takes my to the clever Australian hosting company. When I stop and restart via MCC, a message is displayed that a verifiable hostname could not be found. I have looked at the http.conf file and it has localhost set as the server name. Where else should I be looking to ensure that everything is set correctly. An explicit Apache2/PHP4/MySQL tutorial would be good (emphasis on Apache2 as it's changed quite a bit since 1.3.x). what does your /etc/hosts file say for localhost? 127.0.0.1 localhost -- Cheers, Trey --- At a given moment I open my eyes and exist. And before that, during all eternity, what was there? Nothing. - Ugo Betti Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache: where to begin?
_nasturtium wrote: First, my apologies, but I've been reading too much Chaucer. On Sun, 31 Aug 2003 09:51 am, Brant Fitzsimmons wrote: You can also place files in your home directory to be served by Apache. Create a directory called pubic_html in your home directory and start adding files. You don't even need root access to do this. May I suggest public_html instead? You can then view those file by going to http://localhost/~yourhomedirectoryname/ Have fun. Regards, _nasturtium ROTFLMAO! :-D Sorry. :-[ -- Brant Fitzsimmons [EMAIL PROTECTED] ___ Linux user #322847 | Linux machine #207465 | http://counter.li.org/ AMD Duron 1.3GHz | Mandrake 9.1 | Kernel 2.4.21-0.16mm-mdk KDE 3.1.3 | Mozilla 1.4 Mail Client Uptime: 17:05:00 up 3 days, 22:06, 1 user, load average: 0.02, 0.03, 0.01 ___ All truth passes through three stages. First, it is ridiculed. Second, it is violently opposed. Third, it is accepted as being self-evident. -Arthur Schopenhauer (1788-1860) Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache: where to begin?
Stephen Kuhn wrote: On Sat, 2003-08-30 at 21:40, Marco Verheul wrote: Hi all, I just installed Apache2 and when I enter http://localhost in my browser it shows me the apache page, so installation was succesfull. To which directory does http://localhost point? In other words, where do I load my webpages so i can use PHP locally on my PC? I installed with the regular RPM's from de Mandrake (9.1) cd's. Marco All yer web stuff lives in /var/www ...if you browse through that directory you'll find [EMAIL PROTECTED] www]$ ls -CFal total 9 drwxr-xr-x7 root root 168 Aug 27 22:56 ./ drwxr-xr-x 21 root root 536 Aug 27 23:27 ../ drwxr-xr-x2 root root 72 Aug 27 22:56 cgi-bin/ drwxr-xr-x3 root root 1024 Aug 27 22:56 error/ drwxr-xr-x3 root root 208 Aug 27 22:56 html/ drwxr-xr-x3 root root 4952 Aug 27 22:56 icons/ drwxr-xr-x3 root root 152 Aug 27 22:59 perl/ So...whatever you want to start digging into - well, it's there...the obvious place to start would be in the html directory... Here's a hint, though, mate...if you're just playing around and testing, why not create subdirectories off like: /var/www/html/test/mysite01 /var/www/html/test/mysite02 ...and so on - this gives you the ability to maintain some semblance of order and neatness in the /var/www/html directory - and you can very easily delete your failures without affecting anything else...ay? You can also place files in your home directory to be served by Apache. Create a directory called pubic_html in your home directory and start adding files. You don't even need root access to do this. You can then view those file by going to http://localhost/~yourhomedirectoryname/ Have fun. -- Brant Fitzsimmons [EMAIL PROTECTED] ___ Linux user #322847 | Linux machine #207465 | http://counter.li.org/ AMD Duron 1.3GHz | Mandrake 9.1 | Kernel 2.4.21-0.16mm-mdk KDE 3.1.3 | Mozilla 1.4 Mail Client Uptime: 19:45:01 up 2 days, 46 min, 1 user, load average: 0.22, 0.16, 0.07 ___ All truth passes through three stages. First, it is ridiculed. Second, it is violently opposed. Third, it is accepted as being self-evident. -Arthur Schopenhauer (1788-1860) Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache: where to begin?
On Saturday 30 Aug 2003 12:40 pm, Marco Verheul wrote: Hi all, I just installed Apache2 and when I enter http://localhost in my browser it shows me the apache page, so installation was succesfull. To which directory does http://localhost point? In other words, where do I load my webpages so i can use PHP locally on my PC? I installed with the regular RPM's from de Mandrake (9.1) cd's. Marco /var/www/html If you want to use php you will also need apache2-mod_php RPM installed derek -- -- www.jennings.homelinux.net Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache: where to begin?
webroot is var/www/html. su then go get your files. Lee On Sat, 30 Aug 2003 11:40:00 + Marco Verheul [EMAIL PROTECTED] wrote: Hi all, I just installed Apache2 and when I enter http://localhost in my browser it shows me the apache page, so installation was succesfull. To which directory does http://localhost point? In other words, where do I load my webpages so i can use PHP locally on my PC? I installed with the regular RPM's from de Mandrake (9.1) cd's. Marco -- Tell me about these oppressed masses. What's got them so worked up ? They're upset, sir, because they are so poor that they are forced to have children merely to provide a cheap alternative to turkey at Christmas. Registered Linux user #268279 * This message is composed on a 100% Microsoft free computer * Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache: where to begin?
On Sat, 30 Aug 2003 11:40:00 + Marco Verheul [EMAIL PROTECTED] uttered: I just installed Apache2 and when I enter http://localhost in my browser it shows me the apache page, so installation was succesfull. To which directory does http://localhost point? In other words, where do I load my webpages so i can use PHP locally on my PC? I installed with the regular RPM's from de Mandrake (9.1) cd's Okay, I'm not going to say RTFM, I never do, but I'm gonna make ya do *some* work after giving you a good hint. Look in /etc... when you want to know where the config file is for almost anything, look in /etc (everything that controls...) ;-) -- HaywireMac Registered Linux user #282046 Homepage: nodex.sytes.net ++ One learns to itch where one can scratch. -- Ernest Bramah Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache: where to begin?
On Sat, Aug 30, 2003 at 11:40:00AM +, Marco Verheul wrote: Hi all, I just installed Apache2 and when I enter http://localhost in my browser it shows me the apache page, so installation was succesfull. To which directory does http://localhost point? In other words, where do I load my webpages so i can use PHP locally on my PC? /var/www/html t -- Zinn-Chomsky 2004 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache: where to begin?
On Sat, 2003-08-30 at 21:40, Marco Verheul wrote: Hi all, I just installed Apache2 and when I enter http://localhost in my browser it shows me the apache page, so installation was succesfull. To which directory does http://localhost point? In other words, where do I load my webpages so i can use PHP locally on my PC? I installed with the regular RPM's from de Mandrake (9.1) cd's. Marco All yer web stuff lives in /var/www ...if you browse through that directory you'll find [EMAIL PROTECTED] www]$ ls -CFal total 9 drwxr-xr-x7 root root 168 Aug 27 22:56 ./ drwxr-xr-x 21 root root 536 Aug 27 23:27 ../ drwxr-xr-x2 root root 72 Aug 27 22:56 cgi-bin/ drwxr-xr-x3 root root 1024 Aug 27 22:56 error/ drwxr-xr-x3 root root 208 Aug 27 22:56 html/ drwxr-xr-x3 root root 4952 Aug 27 22:56 icons/ drwxr-xr-x3 root root 152 Aug 27 22:59 perl/ So...whatever you want to start digging into - well, it's there...the obvious place to start would be in the html directory... Here's a hint, though, mate...if you're just playing around and testing, why not create subdirectories off like: /var/www/html/test/mysite01 /var/www/html/test/mysite02 ...and so on - this gives you the ability to maintain some semblance of order and neatness in the /var/www/html directory - and you can very easily delete your failures without affecting anything else...ay? -- Sat Aug 30 21:40:01 EST 2003 21:40:01 up 5 days, 11:26, 3 users, load average: 0.79, 0.87, 0.77 - |____ | illawarra computer services| | /-oo /| |'-. | http://kma.0catch.com | | .\__/ || | | || | _ / `._ \|_|_.-' | stephen kuhn | | | / \__.`=._) (_ | email: [EMAIL PROTECTED] | - linux user #:267497 linux machine #:194239 * MDK 9.1+ RH 9 Mandrake Linux Kernel 2.4.21-13mdk Cooker for i586 - * This message was composed on a 100% Microsoft free computer * panic(kmem_cache_init(): Offsets are wrong - I've been messed with!); 2.2.16 /usr/src/linux/mm/slab.c Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache/MySQL/PHP triad
On Thu, Aug 07, 2003 at 11:06:30PM +, Marco Verheul wrote: Hi all, Is there anything like Apache2Triad ( see http://sourceforge.net/projects/apache2triad/ ) available for Linux, or do we need to install and configure it all piece by piece? I don't mind reading a book about it and i know i got it all on my cd's, but i don't quite know where to get started. I want to get into building dynamic websites and i want to have a local setup on my pc so i can run it there and test the whole lot. I'm just a bit overwelmed about the fast amount of red-tape to get started (which versions to use, wich packages to install or ignore etc.). Can anybody recommend something...? Marco If you installed the server packages, you already have everything you need. You may need to start yourSQL, but there's no great need to configure perl, php, or yourSQL. Apache may need some configurin', though. I don't know how much you know about apache etc. but the webroot on Mandrake is /var/www/html/. The apache conf files are in /etc/httpd/conf/. Todd -- Anybody but a Republican or Democrat 2004 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache/MySQL/PHP triad
On Fri, 2003-08-08 at 00:40, Todd Slater wrote: On Thu, Aug 07, 2003 at 11:06:30PM +, Marco Verheul wrote: Hi all, Is there anything like Apache2Triad ( see http://sourceforge.net/projects/apache2triad/ ) available for Linux, or do we need to install and configure it all piece by piece? I don't mind reading a book about it and i know i got it all on my cd's, but i don't quite know where to get started. I want to get into building dynamic websites and i want to have a local setup on my pc so i can run it there and test the whole lot. I'm just a bit overwelmed about the fast amount of red-tape to get started (which versions to use, wich packages to install or ignore etc.). Can anybody recommend something...? Marco If you installed the server packages, you already have everything you need. You may need to start yourSQL, but there's no great need to configure perl, php, or yourSQL. Apache may need some configurin', though. I don't know how much you know about apache etc. but the webroot on Mandrake is /var/www/html/. The apache conf files are in /etc/httpd/conf/. Todd Thanks Todd, I guess i will survive. I will just do all the installations and go from there. I ordered a nice book with handy 'projects' in it. If i read previous mails on the topic right it seems Apache 2 works out of the box. But i guess i will be doing some tweaking anyway. Bye, Marco -- Registered Linux user #268279 * This message is composed on a 100% Microsoft free computer * Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
RE: [newbie] apache setup and archives
hmmm, well I have the same thing, eth0 for internal, eth1 for external.. I have apache advx working for the most part, although I did suffer with some probs running mod_perl apps, they only work with :8200 in the url, (I use virtual named hosting). other then that, I have half a dozen domains running php on this box. I don't use MCC for much of anything, I have my smb.conf and do everything else by hand, most importantly the network connections. AS for the firewall, I have never used shorewall, i keep meaning to, then I read posts like this one about it and decide to stick with gShield. (with is a simple text config you answer yes or no to each quesiton and it just works.) Sad as it is to me, I'd like to say nice things about msec, as its a fantastic idea in theory.. but even on the servers I set them to normal and tighten things by hand.. every time I try a server setting, I have no end of trouble getting things to work.. The problem as I see it, is that mandrake have alot of really good programmers, but no really good software designers... I also think mandrake should make a bunch of webmin modules for mandrake specific tools.. msec should be a bumch oc checkboxes where you can choose custom and just tick the items you want enforced. I winge about mandrake alot, but i have to say that having tried several of the alternatives, its still IMHO the best of the bunch for most things. just my thoughts.. rgds Franki -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dennis Myers Sent: Monday, 4 August 2003 10:46 AM To: [EMAIL PROTECTED] Subject: Re: [newbie] apache setup and archives On Sunday 03 August 2003 08:38 pm, John Wilson wrote: On August 3, 2003 05:44 pm, Todd Slater wrote: On Sun, Aug 03, 2003 at 04:58:53PM -0700, John Wilson wrote: On August 2, 2003 08:44 am, Todd Slater wrote: snip You haven't disappointed me at all, John. I don't work for Mandrake, they don't pay me any money, so I could really care less whether you use it or not--use Suse, Red Hat, or IIS if it floats your boat. You haven't provided any details about what you tried and the result, only vague complaints. Obviously, you don't really care to learn or you would have taken the time to try to compose a sensible request for help. With regard to MCC, I've had it bork my system far too many times to trust it to do anything right. I was about to recommend to a friend that she run her business on Mandrake but until a lot of things are fixed, including MCC and a useable firewall that isn't Shorewall comes with the distro I think I'll let sleeping dogs lie and let her go to SuSE instead. I'm glad I haven't. :-) Actually, rereading it I seem to have come off a bit more cranky than I meant to. The reality is that in many cases a lot of networking aps don't work out of the box if you've done something the least bit strange from MCC's point of view. In my own situation it's the use of eth1 to go to the outside world and eth0 on the internal network. This throws all the wizards with respect to networking out of whack on MCC which wants to insist on eth0 as the outward bound device and eth1 + as inward facing. My suspicion is that this is hard coded in the script rather than making use of variables and responding appropriately. When I said MCC borked my system I wasn't kidding. It took three days of rewriting conf files to get things back to normal again. During that time most of the machine's functionality was lost. I could have reinstalled but I'd have learned nothing so I went ahead and did it all by hand making very many mistakes and learning a fair bit in the process. Not the least of which is how interconnected things are in Linux. :-) As for Apache...it seems the default scripts that Mandrake places made the same assumptions about which device did what as the MCC scripts did. Not a big problem. Replace and go for it. Figure out how to get Shorewall to open port 80 on the internal network only, which wasn't fun. (With Shorewall I'm strating to think that there's something in my braincells that doesn't make a connection with howtos and examples that don't match the actual configuration screens. In any event, it works now.) Set up BIND and DNS to handle things there and beat Samba into submission so that the Windoze boxes, now only laptops, can read it. Upload a web page with the entirely original phrase Hello World written on it in dull script. Can't get there from here..even though I can ping it. Even more annoying and puzzling is that the Win 98 laptop has no problem but the Linux machines all error out. Anyway..the point I'm at now is having Apache log everything and looking for what it might be. Ditto DNS and BIND. This never happened on 8.2 :-) However, learning is fun if frustrating at times. The only reason for the recommendation to my friend is that she's in a hurry and I
Re: [newbie] apache setup and archives
On Mon, Aug 04, 2003 at 06:22:36PM +0800, Frankie wrote: hmmm, well I have the same thing, eth0 for internal, eth1 for external.. I have apache advx working for the most part, although I did suffer with some probs running mod_perl apps, they only work with :8200 in the url, (I use virtual named hosting). You must be running 8.2 or 9.0 because this has changed in 9.1, i.e. you don't have to specify the port number. I used Mod_survey in 8.2 and had to specify the port but on my 9.1 install I didn't have to, which caused me a few moments of head-banging. Todd Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
RE: [newbie] apache setup and archives
yeah, thats a mandrake 9.0 box... I have been dreading the switch to apache 2... can you tell me how much differnce there is in the config files of 1.3x and 2.x? I mean like vhosts.conf stuff, does it use the same format?? rgds Franki -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Todd Slater Sent: Monday, 4 August 2003 8:06 PM To: [EMAIL PROTECTED] Subject: Re: [newbie] apache setup and archives On Mon, Aug 04, 2003 at 06:22:36PM +0800, Frankie wrote: hmmm, well I have the same thing, eth0 for internal, eth1 for external.. I have apache advx working for the most part, although I did suffer with some probs running mod_perl apps, they only work with :8200 in the url, (I use virtual named hosting). You must be running 8.2 or 9.0 because this has changed in 9.1, i.e. you don't have to specify the port number. I used Mod_survey in 8.2 and had to specify the port but on my 9.1 install I didn't have to, which caused me a few moments of head-banging. Todd Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] apache setup and archives
I don't know as I don't use vhosts, but I actually like the set up of 2.x better. The configuration seems a bit more modular. I'll poke around and see if I can find a sample vhosts file on here somewhere; I'm guessing it uses the same format. Todd On Mon, Aug 04, 2003 at 09:52:33PM +0800, Frankie wrote: yeah, thats a mandrake 9.0 box... I have been dreading the switch to apache 2... can you tell me how much differnce there is in the config files of 1.3x and 2.x? I mean like vhosts.conf stuff, does it use the same format?? rgds Franki Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] apache setup and archives
On August 3, 2003 07:40 pm, Dennis Myers wrote: Not sure what the problem was for you, but Apache Extranet server supplied with 9.0 and 9.1 and 9.2 did most definitely work out of the box for me. All I had to do was put my html in the cgi-bin and it was off and running. Shorewall was not a problem, I just checked the box for web server and all was accessible. I did have to tell my ISP that the IP address in question should be resolved to my web page name and after a day I could access the site with just the .com name. Apache Extranet took no extra work to config it just worked. Gotta love the Mandrake. Oh, I do love the Mandrake! I'm increasingly suspecting the Dell box that I've got it all on as the culprit for a lot of the problems I'm having. Just for a lark I installed everything on a much newer Sony and it all came up without a hitch, except for having to hand configure the things that MCC was about to bork again. The MCC issue is kinda curious. It detects the NICs correctly and, unlike XP, even identifies them properly. It sees the ISP on eth1 and the internal network on eth0 but the moment I let it go it reverses everything. I'm also wondering if it's little issue is that they're both DHCP assigned. Still it's a pain in the buttocks. I'll have another look at it all in September when I stop working 6 days a week and grab a couple of weeks off. :-) ttfn John Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] apache setup and archives
On Sunday 03 August 2003 08:38 pm, John Wilson wrote: On August 3, 2003 05:44 pm, Todd Slater wrote: On Sun, Aug 03, 2003 at 04:58:53PM -0700, John Wilson wrote: On August 2, 2003 08:44 am, Todd Slater wrote: snip You haven't disappointed me at all, John. I don't work for Mandrake, they don't pay me any money, so I could really care less whether you use it or not--use Suse, Red Hat, or IIS if it floats your boat. You haven't provided any details about what you tried and the result, only vague complaints. Obviously, you don't really care to learn or you would have taken the time to try to compose a sensible request for help. With regard to MCC, I've had it bork my system far too many times to trust it to do anything right. I was about to recommend to a friend that she run her business on Mandrake but until a lot of things are fixed, including MCC and a useable firewall that isn't Shorewall comes with the distro I think I'll let sleeping dogs lie and let her go to SuSE instead. I'm glad I haven't. :-) Actually, rereading it I seem to have come off a bit more cranky than I meant to. The reality is that in many cases a lot of networking aps don't work out of the box if you've done something the least bit strange from MCC's point of view. In my own situation it's the use of eth1 to go to the outside world and eth0 on the internal network. This throws all the wizards with respect to networking out of whack on MCC which wants to insist on eth0 as the outward bound device and eth1 + as inward facing. My suspicion is that this is hard coded in the script rather than making use of variables and responding appropriately. When I said MCC borked my system I wasn't kidding. It took three days of rewriting conf files to get things back to normal again. During that time most of the machine's functionality was lost. I could have reinstalled but I'd have learned nothing so I went ahead and did it all by hand making very many mistakes and learning a fair bit in the process. Not the least of which is how interconnected things are in Linux. :-) As for Apache...it seems the default scripts that Mandrake places made the same assumptions about which device did what as the MCC scripts did. Not a big problem. Replace and go for it. Figure out how to get Shorewall to open port 80 on the internal network only, which wasn't fun. (With Shorewall I'm strating to think that there's something in my braincells that doesn't make a connection with howtos and examples that don't match the actual configuration screens. In any event, it works now.) Set up BIND and DNS to handle things there and beat Samba into submission so that the Windoze boxes, now only laptops, can read it. Upload a web page with the entirely original phrase Hello World written on it in dull script. Can't get there from here..even though I can ping it. Even more annoying and puzzling is that the Win 98 laptop has no problem but the Linux machines all error out. Anyway..the point I'm at now is having Apache log everything and looking for what it might be. Ditto DNS and BIND. This never happened on 8.2 :-) However, learning is fun if frustrating at times. The only reason for the recommendation to my friend is that she's in a hurry and I can't really get to this problem until I get some time off the day job in September to chase down what is undoubtedly my own screw up. Working 6 days a week will do that. I'll talk to her again on Tuesday and see if I can't slow her down a bit. All in all I'd rather she use Mandrake for an enormous number of reasons mostly having to do with the small fact that it's the best, IMHO, and often least expensive. Now I'll go eat and do penance for being cranky by fighting with my cats over just who will eat the chicken. :-) ttfn John Again I am baffled, I use eth0 as internal and eth1 as the external devices since I didn't know any better. It works just dandy all through my system. MCC has caused me no problems, (well with the exception of the current beta, it is not playing nice in beta 1) So the old YMMV continues to be a reasonable statement. I would suggest that your friends business would run just fine on MandrakeLinux, ours does. Only problems we have are squirrels getting fried on the transformers and knocking out our power for about 4ns. The seem to vaporize quickly. -- Dennis M. linux user #180842 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] apache setup and archives
On Sat, 02 Aug 2003 08:05:57 + Bill Winegarden [EMAIL PROTECTED] wrote: Hi Everyone, I am trying to set up a simple apache (2.0) webserver so I would normally try to search the archives. I continue to get error messages whenever I try to access them. For most mailing list archives, I use http://marc.theaimsgroup.com/. Use your browser's find function to locate mandrake-newbie. As an alternative, does anyone have a good newbie site for the steps involved? Not much to do, it should work out of the box. Verify that httpd is running (you can do that through mcc system services--you can also start it from there if it's not running). To start it from a terminal, as root do service httpd start. Note that if you make any configuration changes to /etc/httpd/conf/*.conf, you'll have to restart httpd. Also, on my 9.1 installation with default security settings, is the standard port open or closed? How can I tell. You can go to mcc security firewall and check that you want to allow Web Server. As you can see, I'm pretty new to webserving so all assistance is appreciated. Best regards from burning BC Bill W. Todd -- Name that tune #4: I said, There is no justice! as they led me out the door; and the judge said, This isn't a court of justice, son, this is a court of law. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache 2, virtual hosts and SSL
It did not work for me, sorry. When I add a new host to the sss.default-vhost.conf file, it appears in WebMin as just another virtual host which manages the named virtual host. Actually, the only way in which i can use HTTPS with my Apache 2 system is by using https://localhost/; and this makes use of the default vhost present in the ssl.default-vhost.conf file. Clearly this prevents me from accessing my WebServer from another machine by using HTTPS. Also, one strange thing is that when in Webmin I try to use the SSL options associated to any virtual host, the SSLEngine on directive is properly written in the Vhost.conf file but apachectl is unable to restart, i.e. this directive makes httpd2 not able to start. Now, it seems to me that this should be something very basic... i.e. HOW COULD I USE HTTPS on a Virtual Host! Using HTTPS on localhost does not add that much, right ? /stefano Troy Davidson wrote: Stefano, I was reading up on Virtual Domains and Apache and found this. Seems they are doing what you want and show how to make it work. http://archives.mandrakelinux.com/qmail/2002-07/msg00011.php Hope this helps. Troy Davidson Linux User #311107 ++ Follow the adventures of a real life computer and gaming nerd! www.clandaith.com ++ ** This messages was composed on a 100% Microsoft free computer ** Quoting Stefano Pogliani [EMAIL PROTECTED]: I am running MDK 9.1 with Apache 2. I have multiple Virtual hosts, all described in the vhosts/Vhosts.conf file. Unfortunately, SSL only works with https://localhost/ . None of the other alias (https://mymachine.madomain.net/ , https://myvirtual.host.org/ , https://othervirtual.host.org) work with SSL. Certainly there is something I am missing. Using Webmin, I discovered that there is the ssl directory where the _default_:443 virtual host is defined. What do I have to do in order to set any other of my Virtual Hosts to accept SSL connection ? Thanks a lot. Best regards /stefano Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache will not allow http: - only https://
On Fri, 2003-08-01 at 00:56, Jim Thorpe wrote: Hi The 127.0.0.1 localhost.localdomain localhost line didn't work either. I do have a network card connected to my laptop that the apache server runs on. Thanks Jim also, can you connect with http://127.0.0.1:80 ? On Fri, 2003-08-01 at 15:39, ed tharp wrote: On Thu, 2003-07-31 at 22:36, Jim Thorpe wrote: Hi contents of /etc/hosts 127.0.0.1 localhost That's all Thanks Jim should work, but try this line instead, 127.0.0.1 localhost.localdomain localhost also do you have a network card? or dialup? On Fri, 2003-08-01 at 13:43, ed tharp wrote: On Thu, 2003-07-31 at 21:23, Jim Thorpe wrote: Hi The permissions are set to drwxrwxrwx (all the way from root to the required dir). I have also tried to view pages specifying the port like so: http://localhost:80/dirname to try to get away from the secure port 443 but I still get the same message. As I'm running all of this on my laptop I have very low security set. You can even do directory browsing (if there is no index.html page) Thanks Jim what does your /etc/hosts file say for localhost? On Fri, 2003-08-01 at 13:16, Haywiremac wrote: On 01 Aug 2003 12:15:33 +1200 Jim Thorpe [EMAIL PROTECTED] uttered: The DocumentRoot has changed and I can view many websites that I have on my machine using https://localhost/dirname but not using http:// I bet that's the issue. you have to make sure the permissions are correct on the directories where the pages are located. make sure they are searchable like this: drwxr-xr-x Looking back I have never been able to view pages using http: - only https: Is this how Apache is set-up by default? Not at all, by default it will answer on port 80, http. __ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com __ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com __ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com __ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com __ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache will not allow http: - only https://
On 01 Aug 2003 16:56:10 +1200 Jim Thorpe [EMAIL PROTECTED] uttered: Hi The 127.0.0.1 localhost.localdomain localhost line didn't work either. I do have a network card connected to my laptop that the apache server runs on. just to make sure, in your httpd2.conf, comment out all the directories you configured and just go with the default /var/www/html and create an index.html in there or leave the default page, then see if it will serve on the default port. Changing the default doc dir, in my experience, is not as simple as you might think. If I were Stephen Kuhn, I would also recommend configuring using Webmin, but I'm not, so... -- HaywireMac The more laws and order are made prominent, the more thieves and robbers there will be. -- Lao Tsu Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache will not allow http: - only https://
On Fri, 2003-08-01 at 00:56, Jim Thorpe wrote: Hi The 127.0.0.1 localhost.localdomain localhost line didn't work either. did you restart the network and apache after editing? I do have a network card connected to my laptop that the apache server runs on. Thanks Jim On Fri, 2003-08-01 at 15:39, ed tharp wrote: On Thu, 2003-07-31 at 22:36, Jim Thorpe wrote: Hi contents of /etc/hosts 127.0.0.1 localhost That's all Thanks Jim should work, but try this line instead, 127.0.0.1 localhost.localdomain localhost also do you have a network card? or dialup? On Fri, 2003-08-01 at 13:43, ed tharp wrote: On Thu, 2003-07-31 at 21:23, Jim Thorpe wrote: Hi The permissions are set to drwxrwxrwx (all the way from root to the required dir). I have also tried to view pages specifying the port like so: http://localhost:80/dirname to try to get away from the secure port 443 but I still get the same message. As I'm running all of this on my laptop I have very low security set. You can even do directory browsing (if there is no index.html page) Thanks Jim what does your /etc/hosts file say for localhost? On Fri, 2003-08-01 at 13:16, Haywiremac wrote: On 01 Aug 2003 12:15:33 +1200 Jim Thorpe [EMAIL PROTECTED] uttered: The DocumentRoot has changed and I can view many websites that I have on my machine using https://localhost/dirname but not using http:// I bet that's the issue. you have to make sure the permissions are correct on the directories where the pages are located. make sure they are searchable like this: drwxr-xr-x Looking back I have never been able to view pages using http: - only https: Is this how Apache is set-up by default? Not at all, by default it will answer on port 80, http. __ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com __ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com __ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com __ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com __ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache will not allow http: - only https://
On 01 Aug 2003 07:11:52 -0400 ed tharp [EMAIL PROTECTED] uttered: did you restart the network and apache after editing? whoa! shite, didn't think of that, thanks Ed. -- HaywireMac The more laws and order are made prominent, the more thieves and robbers there will be. -- Lao Tsu Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache
On Thu, 2003-07-31 at 14:16, Lee Wiggers wrote: I really need some more frustration in my life. Can anyone point me to a newbie friendly tutorial on setting up a server. So far I figured out how to register my domain. We're talking real newbie stuff here. Lee __ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com mandrake comes with a default setup for Apache Advanced Extranet server, really sweet. as root, in a text console, without the quotes urpmi apache and let it install, make sure you have port 80 open on your firewall. then ask again. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache will not allow http: - only https://
On 01 Aug 2003 11:00:08 +1200 Jim Thorpe [EMAIL PROTECTED] uttered: Bad Request Your browser sent a request that this server could not understand. Reason: You're speaking plain HTTP to an SSL-enabled server port. Instead use the HTTPS scheme to access this URL, please. Hint: https://localhost/ Apache-AdvancedExtranetServer/2.0.44 (Mandrake Linux/11mdk) mod_perl/1.99_08 Perl/v5.8.0 mod_ssl/2.0.44 OpenSSL/0.9.7a PHP/4.3.1 Server at localhost Port 443 Does anyone know how to set-up Apache so that you can view webpages using the http: protocol and not the https: protocol? I got that too. Have you been making changes to Vhosts.conf? -- HaywireMac Finding out what goes on in the C.I.A. is like performing acupuncture on a rock. -- New York Times, Jan. 20, 1981 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache will not allow http: - only https://
On Fri, 2003-08-01 at 11:33, Haywiremac wrote: On 01 Aug 2003 11:00:08 +1200 Jim Thorpe [EMAIL PROTECTED] uttered: Bad Request Your browser sent a request that this server could not understand. Reason: You're speaking plain HTTP to an SSL-enabled server port. Instead use the HTTPS scheme to access this URL, please. Hint: https://localhost/ Apache-AdvancedExtranetServer/2.0.44 (Mandrake Linux/11mdk) mod_perl/1.99_08 Perl/v5.8.0 mod_ssl/2.0.44 OpenSSL/0.9.7a PHP/4.3.1 Server at localhost Port 443 Does anyone know how to set-up Apache so that you can view webpages using the http: protocol and not the https: protocol? I got that too. Have you been making changes to Vhosts.conf? The Vhosts.conf is unchanged. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache will not allow http: - only https://
On 01 Aug 2003 11:43:25 +1200 Jim Thorpe [EMAIL PROTECTED] uttered: The Vhosts.conf is unchanged. Have you made any changes at all to the configuration, like the document root (/var/www/html)? Have you replaced the default page? What are you putting in the browser address field to access the server, it's IP or name? Are you doing this *on* the server or from another machine? -- HaywireMac The greatest love is a mother's, then a dog's, then a sweetheart's. -- Polish proverb Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache will not allow http: - only https://
On Thursday 31 July 2003 06:33 pm, Haywiremac wrote: On 01 Aug 2003 11:00:08 +1200 Jim Thorpe [EMAIL PROTECTED] uttered: Bad Request Your browser sent a request that this server could not understand. Reason: You're speaking plain HTTP to an SSL-enabled server port. Instead use the HTTPS scheme to access this URL, please. Hint: https://localhost/ Apache-AdvancedExtranetServer/2.0.44 (Mandrake Linux/11mdk) mod_perl/1.99_08 Perl/v5.8.0 mod_ssl/2.0.44 OpenSSL/0.9.7a PHP/4.3.1 Server at localhost Port 443 Does anyone know how to set-up Apache so that you can view webpages using the http: protocol and not the https: protocol? I got that too. Have you been making changes to Vhosts.conf? Which port are you looking at? I get Apache with http: on port 80. I get https: on port 443. HTH -- Dennis M. linux user #180842 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache will not allow http: - only https://
Have you made any changes at all to the configuration, like the document root (/var/www/html)? Have you replaced the default page? What are you putting in the browser address field to access the server, it's IP or name? Are you doing this *on* the server or from another machine? -- HaywireMac The DocumentRoot has changed and I can view many websites that I have on my machine using https://localhost/dirname but not using http:// That is when I get the message saying I should use https:// I have Apache2 running on Mandrake9.1 all on my laptop. Looking back I have never been able to view pages using http: - only https: Is this how Apache is set-up by default? Thanks for any help Jim On Fri, 2003-08-01 at 11:43, Jim Thorpe wrote: On Fri, 2003-08-01 at 11:33, Haywiremac wrote: On 01 Aug 2003 11:00:08 +1200 Jim Thorpe [EMAIL PROTECTED] uttered: Bad Request Your browser sent a request that this server could not understand. Reason: You're speaking plain HTTP to an SSL-enabled server port. Instead use the HTTPS scheme to access this URL, please. Hint: https://localhost/ Apache-AdvancedExtranetServer/2.0.44 (Mandrake Linux/11mdk) mod_perl/1.99_08 Perl/v5.8.0 mod_ssl/2.0.44 OpenSSL/0.9.7a PHP/4.3.1 Server at localhost Port 443 Does anyone know how to set-up Apache so that you can view webpages using the http: protocol and not the https: protocol? I got that too. Have you been making changes to Vhosts.conf? The Vhosts.conf is unchanged. __ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache will not allow http: - only https://
On 01 Aug 2003 12:15:33 +1200 Jim Thorpe [EMAIL PROTECTED] uttered: The DocumentRoot has changed and I can view many websites that I have on my machine using https://localhost/dirname but not using http:// I bet that's the issue. you have to make sure the permissions are correct on the directories where the pages are located. make sure they are searchable like this: drwxr-xr-x Looking back I have never been able to view pages using http: - only https: Is this how Apache is set-up by default? Not at all, by default it will answer on port 80, http. -- HaywireMac Mundus vult decipi decipiatur ergo. -- Xaviera Hollander [The world wants to be cheated, so cheat.] Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache will not allow http: - only https://
Hi contents of /etc/hosts 127.0.0.1 localhost That's all Thanks Jim On Fri, 2003-08-01 at 13:43, ed tharp wrote: On Thu, 2003-07-31 at 21:23, Jim Thorpe wrote: Hi The permissions are set to drwxrwxrwx (all the way from root to the required dir). I have also tried to view pages specifying the port like so: http://localhost:80/dirname to try to get away from the secure port 443 but I still get the same message. As I'm running all of this on my laptop I have very low security set. You can even do directory browsing (if there is no index.html page) Thanks Jim what does your /etc/hosts file say for localhost? On Fri, 2003-08-01 at 13:16, Haywiremac wrote: On 01 Aug 2003 12:15:33 +1200 Jim Thorpe [EMAIL PROTECTED] uttered: The DocumentRoot has changed and I can view many websites that I have on my machine using https://localhost/dirname but not using http:// I bet that's the issue. you have to make sure the permissions are correct on the directories where the pages are located. make sure they are searchable like this: drwxr-xr-x Looking back I have never been able to view pages using http: - only https: Is this how Apache is set-up by default? Not at all, by default it will answer on port 80, http. __ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com __ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache will not allow http: - only https://
On Thu, 2003-07-31 at 22:36, Jim Thorpe wrote: Hi contents of /etc/hosts 127.0.0.1 localhost That's all Thanks Jim should work, but try this line instead, 127.0.0.1 localhost.localdomain localhost also do you have a network card? or dialup? On Fri, 2003-08-01 at 13:43, ed tharp wrote: On Thu, 2003-07-31 at 21:23, Jim Thorpe wrote: Hi The permissions are set to drwxrwxrwx (all the way from root to the required dir). I have also tried to view pages specifying the port like so: http://localhost:80/dirname to try to get away from the secure port 443 but I still get the same message. As I'm running all of this on my laptop I have very low security set. You can even do directory browsing (if there is no index.html page) Thanks Jim what does your /etc/hosts file say for localhost? On Fri, 2003-08-01 at 13:16, Haywiremac wrote: On 01 Aug 2003 12:15:33 +1200 Jim Thorpe [EMAIL PROTECTED] uttered: The DocumentRoot has changed and I can view many websites that I have on my machine using https://localhost/dirname but not using http:// I bet that's the issue. you have to make sure the permissions are correct on the directories where the pages are located. make sure they are searchable like this: drwxr-xr-x Looking back I have never been able to view pages using http: - only https: Is this how Apache is set-up by default? Not at all, by default it will answer on port 80, http. __ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com __ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com __ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache will not allow http: - only https://
Hi The 127.0.0.1 localhost.localdomain localhost line didn't work either. I do have a network card connected to my laptop that the apache server runs on. Thanks Jim On Fri, 2003-08-01 at 15:39, ed tharp wrote: On Thu, 2003-07-31 at 22:36, Jim Thorpe wrote: Hi contents of /etc/hosts 127.0.0.1 localhost That's all Thanks Jim should work, but try this line instead, 127.0.0.1 localhost.localdomain localhost also do you have a network card? or dialup? On Fri, 2003-08-01 at 13:43, ed tharp wrote: On Thu, 2003-07-31 at 21:23, Jim Thorpe wrote: Hi The permissions are set to drwxrwxrwx (all the way from root to the required dir). I have also tried to view pages specifying the port like so: http://localhost:80/dirname to try to get away from the secure port 443 but I still get the same message. As I'm running all of this on my laptop I have very low security set. You can even do directory browsing (if there is no index.html page) Thanks Jim what does your /etc/hosts file say for localhost? On Fri, 2003-08-01 at 13:16, Haywiremac wrote: On 01 Aug 2003 12:15:33 +1200 Jim Thorpe [EMAIL PROTECTED] uttered: The DocumentRoot has changed and I can view many websites that I have on my machine using https://localhost/dirname but not using http:// I bet that's the issue. you have to make sure the permissions are correct on the directories where the pages are located. make sure they are searchable like this: drwxr-xr-x Looking back I have never been able to view pages using http: - only https: Is this how Apache is set-up by default? Not at all, by default it will answer on port 80, http. __ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com __ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com __ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com __ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache 2, virtual hosts and SSL
Stefano, I was reading up on Virtual Domains and Apache and found this. Seems they are doing what you want and show how to make it work. http://archives.mandrakelinux.com/qmail/2002-07/msg00011.php Hope this helps. Troy Davidson Linux User #311107 ++ Follow the adventures of a real life computer and gaming nerd! www.clandaith.com ++ ** This messages was composed on a 100% Microsoft free computer ** Quoting Stefano Pogliani [EMAIL PROTECTED]: I am running MDK 9.1 with Apache 2. I have multiple Virtual hosts, all described in the vhosts/Vhosts.conf file. Unfortunately, SSL only works with https://localhost/ . None of the other alias (https://mymachine.madomain.net/ , https://myvirtual.host.org/ , https://othervirtual.host.org) work with SSL. Certainly there is something I am missing. Using Webmin, I discovered that there is the ssl directory where the _default_:443 virtual host is defined. What do I have to do in order to set any other of my Virtual Hosts to accept SSL connection ? Thanks a lot. Best regards /stefano Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] apache rewrite regex
. means every character * means zero, one or more instances of the previous character. ^ means beginning of the line (or negation in some situations) $ means end of line The part of the regexp between the brackets will be returned as $1 So the first regexp ^(.*\/perl\/.*)$ says: - If a line starts (^) with zero, one or more instances of any character - followed by /perl/ (the slashes are backslashed because it are special characters) - followed by zero, one or more instances of any character result == the whole line without any end-of-line characters, if it contains /perl/, Nothing if it doesn't contain /perl/ So a wild guess for the string you want to write: ^\/perl\/dl.pl(\/.*)$ http://127.0.0.1:8200/perl/dl.pl$1 But I guess the regexp you wrote first will work to ! Steven On Wed, 2003-06-11 at 09:05, Frankie wrote: Hi guys I am hoping that on this list is a regex/apache guru... Currently, I have mdk9.0 running mod_perl/apache via virtual named hosts.. works great. I can run mod_perl scripts in either of the following methods: http://mydomain.com/perl/script.pl or http://mydomain.com:8200/perl/script.pl so the basic proxying works.. However only the latter URL works when passed params.. like so: http://mydomain.com:8200/perl/script.pl?id=somethingfunction=stuff (that one works) This one doesn't: http://mydomain.com/perl/script.pl?id=somethingfunction=stuff when I try that I always get the message that script.pl can't be found. Since its an internal proxy, I can't see what the regex has grabbed. This is the regex in question in the vhosts file: RewriteRule ^(.*\/perl\/.*)$ http://127.0.0.1:8200$1 [P] I tried adding this one too in an effort to be more specific.. but it didn't work either: RewriteRule /perl\/dl.pl/(.*) http://127.0.0.1:8200/perl/dl.pl$1 [P] What I don't understand is this: .* In my mind means '0' or more of 'anything' so why is it not catching params?? Can anyone point me in the right direction here? regards Franki __ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] apache rewrite regex
So a wild guess for the string you want to write: ^\/perl\/dl.pl(\/.*)$ http://127.0.0.1:8200/perl/dl.pl$1 But I guess the regexp you wrote first will work to ! Steven forgot some comments. - I don't think the regexp I wrote is 100% correct - Also try: RewriteRule ^.*(\/perl\/.*)$ http://127.0.0.1:8200$1 [P] (the .* outside of the brackets) Maybe that will work ? Steven Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
RE: [newbie] apache rewrite regex
yeah, I got that.. its pretty much the same as Perl regex. However.. I am not sure now that the regex is the issue... After hours and hours of googling on the issue I believe its a deficiency in apache.. one that mandrakes apache with virt named hosting setup brings to the fore. The issue is more or less specific to me, virtual named hosting with proxied mod perl using proxy redirects. To give you an idea, both of these work: http://mydomain.com:8200/perl/dl.pl?login=yes http://mydomain.com/perl/dl.pl/?login=yes (the second one works (notice the /?), but not as modperl for some reason it seems to be executing as cgi or something. and rewriting the regex to add the / into the proxy address has the same effect (as slow as cgi perl). (I know its not using mod perl because its the HTTP process that shows up in 'top' when it is run, whereas http-perl shows up when run the first way.) As before, this: http://mydomain.com/perl/dl.pl?login=yes results in this: [Wed Jun 11 18:40:11 2003] [error] [client 192.168.0.6] File does not exist: proxy:http://127.0.0.1:8200/perl/dl.pl?login=yes Appearing in the log, and a page not found error appearing on the browser. So in essense, mod_rewrite doing the proxy doesn't appear to pass the params on.. instead it seem to be implying they are part of the filename.. Go figure, the two things I wanted to do with apache/Perl, are both broken with named virtual hosting. (mod_perl SSI and this.) Does anyone know a method by which I might achieve the same result? (I can't use port 8200 links in the pages because we have already experianced problems with some routers not allowing that.) regards Franki -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Steven Broos Sent: Wednesday, 11 June 2003 6:08 PM To: [EMAIL PROTECTED] Subject: Re: [newbie] apache rewrite regex . means every character * means zero, one or more instances of the previous character. ^ means beginning of the line (or negation in some situations) $ means end of line The part of the regexp between the brackets will be returned as $1 So the first regexp ^(.*\/perl\/.*)$ says: - If a line starts (^) with zero, one or more instances of any character - followed by /perl/ (the slashes are backslashed because it are special characters) - followed by zero, one or more instances of any character result == the whole line without any end-of-line characters, if it contains /perl/, Nothing if it doesn't contain /perl/ So a wild guess for the string you want to write: ^\/perl\/dl.pl(\/.*)$ http://127.0.0.1:8200/perl/dl.pl$1 But I guess the regexp you wrote first will work to ! Steven On Wed, 2003-06-11 at 09:05, Frankie wrote: Hi guys I am hoping that on this list is a regex/apache guru... Currently, I have mdk9.0 running mod_perl/apache via virtual named hosts.. works great. I can run mod_perl scripts in either of the following methods: http://mydomain.com/perl/script.pl or http://mydomain.com:8200/perl/script.pl so the basic proxying works.. However only the latter URL works when passed params.. like so: http://mydomain.com:8200/perl/script.pl?id=somethingfunction=stuff (that one works) This one doesn't: http://mydomain.com/perl/script.pl?id=somethingfunction=stuff when I try that I always get the message that script.pl can't be found. Since its an internal proxy, I can't see what the regex has grabbed. This is the regex in question in the vhosts file: RewriteRule ^(.*\/perl\/.*)$ http://127.0.0.1:8200$1 [P] I tried adding this one too in an effort to be more specific.. but it didn't work either: RewriteRule /perl\/dl.pl/(.*) http://127.0.0.1:8200/perl/dl.pl$1 [P] What I don't understand is this: .* In my mind means '0' or more of 'anything' so why is it not catching params?? Can anyone point me in the right direction here? regards Franki __ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache question
On Tue, 10 Jun 2003 09:53:04 -0300 Yves Arsenault [EMAIL PROTECTED] uttered: But what I would like is that when I type the IP of the server, I get the apache page, which I could change to something else. For that, you can either just replace the default Apache page with your own index.whatever (html, php, etc.) *or* change the DocumentRoot from /var/www/html to another dir and create your own index in there. -- Joehill Registered Linux user #282046 Homepage: http://nodex.sytes.net 15:07:12 up 7 days, 13:11, 2 users, load average: 0.00, 0.00, 0.00 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache question
On Tue, 2003-06-10 at 08:53, Yves Arsenault wrote: Hello, Well, I would like to host a couple of sites on the server type the name (www.domain.com) and get the site (my virtual host is working)... But what I would like is that when I type the IP of the server, I get the apache page, which I could change to something else. Yves if it is on the local machine, 127.0.0.1 should still get to whatever you have set as the local machines document root. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Broos Sent: June 9, 2003 5:18 PM To: [EMAIL PROTECTED] Subject: Re: [newbie] Apache question What exactly do you want to come up, when you type in what IP ? Maybe you can give an example or so ? Steven On Mon, 2003-06-09 at 20:27, Yves Arsenault wrote: Hello again, I'm pleased to report that my site now comes up, Bind works well, Apache works well. Now when I type in the IP address in my browser the website comes up by default... How do I set the IP to point to another page? Thanks again, Yves Arsenault Carrefour Infotech 5,promenade Acadian Charlottetown, IPE C1C 1M2 [EMAIL PROTECTED] (902)368-1895 ext.242 ICQ #117650823 __ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache question
What exactly do you want to come up, when you type in what IP ? Maybe you can give an example or so ? Steven On Mon, 2003-06-09 at 20:27, Yves Arsenault wrote: Hello again, I'm pleased to report that my site now comes up, Bind works well, Apache works well. Now when I type in the IP address in my browser the website comes up by default... How do I set the IP to point to another page? Thanks again, Yves Arsenault Carrefour Infotech 5,promenade Acadian Charlottetown, IPE C1C 1M2 [EMAIL PROTECTED] (902)368-1895 ext.242 ICQ #117650823 __ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache security
On 08 Jun 2003 00:13:48 +0200 Steven Broos [EMAIL PROTECTED] uttered: Then you can disable PHP easily if you really want to, and let a script create a HTML-file which contains the uptime. ah, I'm not that concerned. it's just: ?php include uptime.txt; ? I see the usual attempts at running windows scripts, but one thing stumps me. I see this occasionally as well, from different addresses on the same subnet as me (64.x.x.x): 64.229.89.4 - - [07/Jun/2003:23:59:37 -0400] GET /default.ida?XX XXX XXX %u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3%u780 1%u9090%u6858%ucbd3%u7801%u9090%u9090%u8190%u00c3%u0003%u8b00%u531b%u53 ff%u0078%u%u00=a HTTP/1.0 404 393 - - it doesn't correspond with any visitors to the server. I'm Googling now, but anyone know what this is? -- Joehill Registered Linux user #282046 Homepage: http://nodex.sytes.net 11:40:05 up 5 days, 9:43, 4 users, load average: 0.00, 0.00, 0.00 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache security
On 08 Jun 2003 00:13:48 +0200 Steven Broos [EMAIL PROTECTED] uttered: On Sat, 2003-06-07 at 23:28, JoeHill wrote: ah, ignore my immediately previous question. I found it, it's Code Red trying to spoof. Pt, keep trying bud...LOL. -- Joehill Registered Linux user #282046 Homepage: http://nodex.sytes.net 11:46:43 up 5 days, 9:50, 4 users, load average: 0.05, 0.05, 0.00 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache security
http://www.apacheweek.com/features/codered Some stupid worm. Nothing to be concerned about, if you're running apache. At least if you don't need to administer the stations where the requests come from :-) Steven On Sun, 2003-06-08 at 17:45, JoeHill wrote: On 08 Jun 2003 00:13:48 +0200 Steven Broos [EMAIL PROTECTED] uttered: Then you can disable PHP easily if you really want to, and let a script create a HTML-file which contains the uptime. ah, I'm not that concerned. it's just: ?php include uptime.txt; ? I see the usual attempts at running windows scripts, but one thing stumps me. I see this occasionally as well, from different addresses on the same subnet as me (64.x.x.x): 64.229.89.4 - - [07/Jun/2003:23:59:37 -0400] GET /default.ida?XX XXX XXX %u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3%u780 1%u9090%u6858%ucbd3%u7801%u9090%u9090%u8190%u00c3%u0003%u8b00%u531b%u53 ff%u0078%u%u00=a HTTP/1.0 404 393 - - it doesn't correspond with any visitors to the server. I'm Googling now, but anyone know what this is? -- Joehill Registered Linux user #282046 Homepage: http://nodex.sytes.net 11:40:05 up 5 days, 9:43, 4 users, load average: 0.00, 0.00, 0.00 __ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache security
At 11:45 AM 6/8/2003 -0400, you wrote: I see the usual attempts at running windows scripts, but one thing stumps me. I see this occasionally as well, from different addresses on the same subnet as me (64.x.x.x): 64.229.89.4 - - [07/Jun/2003:23:59:37 -0400] GET /default.ida?XX XXX XXX %u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3%u780 1%u9090%u6858%ucbd3%u7801%u9090%u9090%u8190%u00c3%u0003%u8b00%u531b%u53 ff%u0078%u%u00=a HTTP/1.0 404 393 - - it doesn't correspond with any visitors to the server. I'm Googling now, but anyone know what this is? -- Joehill at a guess...malformed packet. Apache IIRC discards them at port entry. WIndows doesn't tries to read it less you have zonealarm or another good firewall. Linux by itself will try to read it too. This results (with enough of them) in a crash of the OS. This ofc assumes I'm correct. I also assume a spoofed IP addy from a script kiddy. - FemmeFatale, aka The Skirt Good Decisions Your boss Made: We'll do as you suggest and go with Linux. I've always liked that character from Peanuts. - Source: Dilbert Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache security
On Sun, 08 Jun 2003 16:41:49 -0600 FemmeFatale [EMAIL PROTECTED] uttered: This ofc assumes I'm correct. I also assume a spoofed IP addy from a script kiddy. yup, you missed my reply to myself! it's code red in all its glory... -- Joehill Registered Linux user #282046 Homepage: http://nodex.sytes.net 19:02:43 up 5 days, 17:06, 4 users, load average: 0.00, 0.00, 0.00 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache security
I think it's a little bit paranoia to say you may not run PHP. I find it weird CGI is OK, but PHP isn't... Both are dangerous for your system when they are not administered well. Apache has one parent-instance owned by root. The child-rpocesses are run from the account you specified. I wouldn't worry about that. A lot of security related issues depend on how you use your machine. Is it a webserver, or a personal desktop PC ? In the second case, do you have a permanent internet connection ? Is there a router or firewall in between ? ... Maybe you want to read some information about IPtables... ? Steven On Sat, 2003-06-07 at 19:31, JoeHill wrote: I read the Seven Deadly Sins of Linux security, and one item concerns me: On Toxen's don'ts list: Don't use PHP, even though it's convenient. Don't run DNS, auth (ident) or Apache as root. But, do use suEXEC, a tool first introduced in Apache 1.2, that increases security by allowing users to develop and run private CGI or SSI programs. I will look into suEXEC, but I see that on my server, httpd2 is run by apache, except for *one* httpd2 process that is run as root. Is that necessary, and if not, can I kill it? Also, why would PHP be a security risk? because it is executed on the server and not on the client's browser...? Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache and PHP variables
Yep, I remembered about the suite of $PHP_ variables after I sent the email. Seems like I invariably (arf) remember something AFTER I request help. I think my brain must be wired that way... I'm still wondering where on earth that $URL variable came from, because I sure didn't make it up. I never capitalize my own variables... On Wednesday 12 February 2003 02:42 pm, Benjamin Pflugmann wrote: On Tue 2003-02-11 at 22:17:38 -0600, [EMAIL PROTECTED] wrote: OK, so this is beyond the scope of a Mandrake forum, so forgive me for asking. I have transitioned my web server from Win2k to Linux. Everything seems to be working OK except I just noticed a page that is supposed to not show the banner, but does. In win2k, the PHP variable $URL was returning the name of the file for the page, and I have a structure to not display when the $URL is a certain set of values. php.ini has the global variables option turned on, so that's not the issue. Does anyone know if the variable is passed to PHP by the server or if it is strictly a PHP value? Was it an IIS varaible that's not in Apache2? Any ideas? Don't know, but did you try to simply print out the new value and look in which way it has changed? Aside from that, does $_SERVER[$PHP_SELF] or what you need? It is the recommended way to find out about (the local part) of the URL. HTH, Benjamin. -- A. Contreras My CR webpages: http://www.elnonio.dns04.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache and PHP variables
On Tue 2003-02-11 at 22:17:38 -0600, [EMAIL PROTECTED] wrote: OK, so this is beyond the scope of a Mandrake forum, so forgive me for asking. I have transitioned my web server from Win2k to Linux. Everything seems to be working OK except I just noticed a page that is supposed to not show the banner, but does. In win2k, the PHP variable $URL was returning the name of the file for the page, and I have a structure to not display when the $URL is a certain set of values. php.ini has the global variables option turned on, so that's not the issue. Does anyone know if the variable is passed to PHP by the server or if it is strictly a PHP value? Was it an IIS varaible that's not in Apache2? Any ideas? Don't know, but did you try to simply print out the new value and look in which way it has changed? Aside from that, does $_SERVER[$PHP_SELF] or what you need? It is the recommended way to find out about (the local part) of the URL. HTH, Benjamin. msg119261/pgp0.pgp Description: PGP signature
Re: [newbie] apache configure for local use
I'm a newbie to Linux, just migrated a few weeks ago after over 10 years of Dos and Windows useI even didn't install a Windows partition. It is actually more difficult to learn Linux becasue of your Windows experience :-) total newbies find Linux quite easy. But don't despair, many people moved from Win to Linux, including myself. 1 Mandrake Linux 9.0, including all updates is installed 2 Apache is installed default with the ML installation 3 It is running (I can get the default page by requesting localhost) And, I presume, apache is listed as httpd when you issue ps ax. How did you start apache? 4 As root I even can get the apachectl starting; stopping etc. 5 I would like to point to another standard folder, but if I do that in httpdconf = no result, I tried all options I could think of (even in combination Which line did you change in httpd.conf? 6 Even after first stopping Apache (as root) and then editing didn't result in the way I would like it You can safely edit httpd.conf with apache running. Apache only reads this file when it starts or when the root user tells it to re-read the httpd.conf file. 7 Renaming the index.shtml in de default folder als does not result in presenting the content of the default folder, it does result in a 403 page. That is correct behaviour of any web server. 8 Can I configure Apache for multiple users? SO I do not need to login as root (which is pretty risc-full with the GUI's). You did not say what you need to login as root for. - Do you need to login as root to browse localhost web pages? - Or do you need to login as root to start apache? 9 Is there -at this moment- a way to check if PHP is working. Yes, there is a way to check this. 10 And if not, how do I get it working? Check if mod_php is installed. -- Milos Prudek Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] apache configure for local use
On Tue, 2003-01-07 at 18:44, Erik Janssen wrote: Hi all, I'm a newbie to Linux, just migrated a few weeks ago after over 10 years of Dos and Windows useI even didn't install a Windows partition. As webmaster of a website I need Apache running for local testing of scripts, php etc. And this is one of the few problems I can not solveCould you help / give me an URL to a former discussed topic that's similar? Thanks in advance, Erik The problem: ___ 1 Mandrake Linux 9.0, including all updates is installed 2 Apache is installed default with the ML installation 3 It is running (I can get the default page by requesting localhost) 4 As root I even can get the apachectl starting; stopping etc. 5 I would like to point to another standard folder, but if I do that in httpdconf = no result, I tried all options I could think of (even in combination with that other conf file and after the include line of that file). If you use the Apache controls via Webmin (https://localhost:1) you should be able to setup a virtual server pointing to whichever directory structures you desire - along with associated mime-types and default extentions (HTML, SHTML, ML, whatever) - the PHP modules, once you fire up the Apache server configuration tool in Webmin, will be automatically configured at that point - so any changes you want to make to the modules (PHP and all the others) can be done as well. 6 Even after first stopping Apache (as root) and then editing didn't result in the way I would like it Editing the conf files isn't always a fun affair... 7 Renaming the index.shtml in de default folder als does not result in presenting the content of the default folder, it does result in a 403 page. Give it a go through Webmin and let's see how far it gets... 8 Can I configure Apache for multiple users? SO I do not need to login as root (which is pretty risc-full with the GUI's). With Apache configured via Webmin, you'll be able to setup the virtual servers literally however you want - per user or per IP (virtual) or per port 9 Is there -at this moment- a way to check if PHP is working. 10 And if not, how do I get it working? Best way to see if PHP is working is to get a PHP set of pages setup in a directory under /var/www/html - make a directory for them - and then fire up a browser pointing to that directory. Being that PHP is installed by default, you shouldn't have a problem - but overall, get the Apache configuration going in Webmin first so that all the modules are confirmed and configured. -- kuhn media australia - kma.0catch.com - stephen katherine kuhn -PC/Mac/Linux/Consulting/eMarketing- * linux user: 267497 * rh 7.3+ * Fan: Aha ha, fan beats man. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] apache configure for local use
On Tue, 07 Jan 2003 10:25:26 +0100 Milos Prudek [EMAIL PROTECTED] wrote: 7 Renaming the index.shtml in de default folder als does not result in presenting the content of the default folder, it does result in a 403 page. That is correct behaviour of any web server. If that is normal, how DO you get it to display the contents of a folder as in, for example, the following page... http://speakeasy.rpmfind.net/linux/Mandrake/9.0/contrib/RPMS/ ? Jerry. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com